Fix nats-bootstrap: run from /tmp so the nats CLI works under readOnlyRootFS #311
@@ -59,6 +59,11 @@ spec:
|
||||
containers:
|
||||
- name: nats-bootstrap
|
||||
image: artifactapi.k8s.syd1.au.unkin.net/dockerhub/natsio/nats-box:0.18.0
|
||||
# nats CLI stats the working directory when loading its response
|
||||
# schemas; under readOnlyRootFilesystem + runAsUser 1000 the image's
|
||||
# default WORKDIR is not accessible ("stat .: permission denied"), so
|
||||
# run from the writable /tmp emptyDir.
|
||||
workingDir: /tmp
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
readOnlyRootFilesystem: true
|
||||
|
||||
Reference in New Issue
Block a user