Add tmp mount so that server can run locked down (#105)
This pr adds a tmp mount to the spire server pod so that it can run with read only root. Signed-off-by: Kevin Fox <[email protected]>
This commit is contained in:
@@ -132,6 +132,9 @@ spec:
|
|||||||
mountPath: /controller-manager-config.yaml
|
mountPath: /controller-manager-config.yaml
|
||||||
subPath: controller-manager-config.yaml
|
subPath: controller-manager-config.yaml
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
- name: spire-controller-manager-tmp
|
||||||
|
mountPath: /tmp
|
||||||
|
readOnly: false
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if gt (len .Values.extraContainers) 0 }}
|
{{- if gt (len .Values.extraContainers) 0 }}
|
||||||
{{- toYaml .Values.extraContainers | nindent 8 }}
|
{{- toYaml .Values.extraContainers | nindent 8 }}
|
||||||
@@ -158,6 +161,8 @@ spec:
|
|||||||
name: {{ include "spire-server.fullname" . }}
|
name: {{ include "spire-server.fullname" . }}
|
||||||
- name: spire-server-socket
|
- name: spire-server-socket
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
- name: spire-controller-manager-tmp
|
||||||
|
emptyDir: {}
|
||||||
{{- if eq (.Values.upstreamAuthority.disk.enabled | toString) "true" }}
|
{{- if eq (.Values.upstreamAuthority.disk.enabled | toString) "true" }}
|
||||||
- name: upstream-ca
|
- name: upstream-ca
|
||||||
secret:
|
secret:
|
||||||
|
|||||||
Reference in New Issue
Block a user