Open antoinetran opened 6 months ago
This is because of missing emptyDir in case no pvc is deployed. As a workaround, this merge works (but because the merge cannot merge list, there is a duplication below):
container:
merge:
volumeMounts:
# nats config
- name: config
mountPath: /etc/nats-config
# PID volume
- name: pid
mountPath: /var/run/nats
# Override
- mountPath: /data
name: js-data
podTemplate:
# merge or patch the pod template
# https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#pod-v1-core
merge:
spec:
volumes:
- configMap:
name: my-nats-config
name: config
- emptyDir: {}
name: pid
# Override
- emptyDir: {}
name: js-data
What version were you using?
nats helm chart 1.1.10
What environment was the server running in?
OpenShift , amd64
Is this defect reproducible?
Yes. In a OpenShift cluster with non root policy.
Given the capability you are leveraging, describe your expectation?
Helm chart deploys OK. nats pod deplomeny is OK.
Given the expectation, what is the defect you are observing?
nats pods deployment failed with logs: