diff --git a/chart/templates/deployment-webhook.yaml b/chart/templates/deployment-webhook.yaml index f5239f5..59ec311 100644 --- a/chart/templates/deployment-webhook.yaml +++ b/chart/templates/deployment-webhook.yaml @@ -31,6 +31,8 @@ spec: - name: longhorn-conversion-webhook image: {{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} imagePullPolicy: IfNotPresent + securityContext: + runAsUser: 2000 command: - longhorn-manager - conversion-webhook @@ -97,10 +99,15 @@ spec: - name: wait-longhorn-conversion-webhook image: {{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} command: ['sh', '-c', 'while [ $(curl -m 1 -s -o /dev/null -w "%{http_code}" -k https://longhorn-conversion-webhook:9443/v1/healthz) != "200" ]; do echo waiting; sleep 2; done'] + imagePullPolicy: IfNotPresent + securityContext: + runAsUser: 2000 containers: - name: longhorn-admission-webhook image: {{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} imagePullPolicy: IfNotPresent + securityContext: + runAsUser: 2000 command: - longhorn-manager - admission-webhook