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