Add extra-volume mount for plugins downloads

Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
Arthur Silva Sens
2022-02-07 20:20:20 +00:00
committed by GitHub
parent e4aae0fbb7
commit 43879b5217
2 changed files with 14 additions and 0 deletions

View File

@@ -100,7 +100,16 @@ function(params)
readOnlyRootFilesystem: true,
capabilities: { drop: ['ALL'] },
},
volumeMounts+: [{
mountPath: '/tmp',
name: 'tmp-plugins',
readOnly: false,
}],
}, super.containers),
volumes+: [{
name: 'tmp-plugins',
emptyDir: {},
}],
},
},
},

View File

@@ -137,6 +137,9 @@ spec:
- mountPath: /etc/grafana
name: grafana-config
readOnly: false
- mountPath: /tmp
name: tmp-plugins
readOnly: false
nodeSelector:
kubernetes.io/os: linux
securityContext:
@@ -228,3 +231,5 @@ spec:
- name: grafana-config
secret:
secretName: grafana-config
- emptyDir: {}
name: tmp-plugins