add securityContext in magicleaps
This commit is contained in:
parent
215f71e0bf
commit
4aceb54bbf
@ -28,6 +28,10 @@ spec:
|
|||||||
- name: "backend"
|
- name: "backend"
|
||||||
image: "{{ coalesce .Values.backend.image.registry .Values.global.registry "docker.io"}}/{{ coalesce .Values.backend.image.repository .Values.global.repository }}/{{ .Values.backend.image.name }}:{{ .Values.backend.image.tag | default "latest" }}"
|
image: "{{ coalesce .Values.backend.image.registry .Values.global.registry "docker.io"}}/{{ coalesce .Values.backend.image.repository .Values.global.repository }}/{{ .Values.backend.image.name }}:{{ .Values.backend.image.tag | default "latest" }}"
|
||||||
imagePullPolicy: {{ .Values.backend.image.imagePullPolicy | default "IfNotPresent" }}
|
imagePullPolicy: {{ .Values.backend.image.imagePullPolicy | default "IfNotPresent" }}
|
||||||
|
{{- if .Values.backend.securityContext }}
|
||||||
|
securityContext:
|
||||||
|
{{- toYaml .Values.backend.securityContext | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
{{- range $port := .Values.backend.ports }}
|
{{- range $port := .Values.backend.ports }}
|
||||||
- containerPort: {{ $port.containerPort }}
|
- containerPort: {{ $port.containerPort }}
|
||||||
|
|||||||
@ -72,6 +72,12 @@ backend:
|
|||||||
name: magicleaps-backend
|
name: magicleaps-backend
|
||||||
tag: snapshot-004a6c7
|
tag: snapshot-004a6c7
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
runAsUser: 0
|
||||||
|
runAsGroup: 0
|
||||||
|
allowPrivilegeEscalation: true
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 8081
|
containerPort: 8081
|
||||||
|
|||||||
@ -72,6 +72,12 @@ backend:
|
|||||||
name: magicleaps-backend
|
name: magicleaps-backend
|
||||||
tag: 1.0.0
|
tag: 1.0.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
runAsUser: 0
|
||||||
|
runAsGroup: 0
|
||||||
|
allowPrivilegeEscalation: true
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 8081
|
containerPort: 8081
|
||||||
|
|||||||
@ -73,6 +73,12 @@ backend:
|
|||||||
name: magicleaps-backend
|
name: magicleaps-backend
|
||||||
tag: 1.0.0
|
tag: 1.0.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
runAsUser: 0
|
||||||
|
runAsGroup: 0
|
||||||
|
allowPrivilegeEscalation: true
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 8081
|
containerPort: 8081
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user