Skip to content

Commit

Permalink
Writable /tmp
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Marko Mikulicic committed Jul 25, 2019
1 parent 5e5ffca commit df9faf3
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 df9faf3

Please sign in to comment.