Hi everyone.
I am trying to deploy zeebe-cluster but I am getting the following error:
Warning Failed 91s (x12 over 3m16s) kubelet Error: container has runAsNonRoot and image will run as root
To resolve this error, switch to the image:
camunda/zeebe:0.23.1-non-root
But I started getting this error
container has runAsNonRoot and image has non-numeric user (nonroot), cannot verify user is non-root
I fixed this error by manually placing in the deployment and statefulset
securityContext:
runAsUser: 1000
I would like to know where to place the securityContext and then deploy it with helm and have these values or if it is not possible. The steps that I execute:
helm repo add zeebe https://helm.zeebe.io
helm install cluster-zeebe zeebe/zeebe-cluster -f zeebe-values.yaml
My zeebe-values.yaml:
image:
repository: camunda/zeebe
tag: 0.23.1-non-root
pullPolicy: Always
clusterSize: "3"
# PVC
pvcSize: 10Gi
pvcStorageClassName: microservicios-storage
#elastic search
elasticsearch:
enabled: false
# KIBANA
kibana:
enabled: false
# PROMETHEUS
prometheus:
enabled: false
servicemonitor:
enabled: false
securityContext:
runAsUser: 1000
I’m trying to put the securityContext in the zeebe-values.yaml file but it doesn’t take the values.