mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-23 21:40:20 +00:00
e2e: add securityContext.runAsUser to vault-init-job
Kubelet sometimes reports the following error: failed to "StartContainer" for "vault-init-job" with CreateContainerConfigError: container has runAsNonRoot and image will run as root Setting securityContext.runAsUser resolves this. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
e3c7dea7d6
commit
96bb8bfd0e
@ -128,6 +128,8 @@ spec:
|
||||
containers:
|
||||
- name: vault-init-job
|
||||
image: docker.io/library/vault:latest
|
||||
securityContext:
|
||||
runAsUser: 100
|
||||
volumeMounts:
|
||||
- mountPath: /init-scripts
|
||||
name: init-scripts-volume
|
||||
|
Loading…
Reference in New Issue
Block a user