Skip to content

Commit

Permalink
Merge #202
Browse files Browse the repository at this point in the history
202: Writable /tmp r=mkmik a=mkmik

Our deployment template uses the `readOnlyRootFilesystem` but the k8s `klog` library
likes to write logs in `/tmp`.

Let's mount a writable `/tmp` dir.

Closes #200

Co-authored-by: Marko Mikulicic <mkm@bitnami.com>
  • Loading branch information
bors[bot] and Marko Mikulicic committed Jul 25, 2019
2 parents 5e5ffca + df9faf3 commit f556cf5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions controller-norbac.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ local v1beta1_Deployment(name) = kube.Deployment(name) {
runAsNonRoot: true,
runAsUser: 1001,
},
volumeMounts_+: {
tmp: {
mountPath: '/tmp',
},
},
},
},
volumes_+: {
tmp: {
emptyDir: {},
},
},
},
Expand Down

0 comments on commit f556cf5

Please sign in to comment.