OSH-Infra: Add emptydirs for tmp
This PS adds emptydirs backing the /tmp directory in pods, which is required in most cases for full operation when using a read only filesystem backing the container. Additionally some yaml indent issues are resolved. Change-Id: I8b7f1614da059783254aa6efc09facf23fca3cad Signed-off-by: Pete Birley <pete@port.direct>
This commit is contained in:
@@ -134,12 +134,16 @@ spec:
|
||||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
volumeMounts:
|
||||
- name: pod-tmp
|
||||
mountPath: /tmp
|
||||
- name: packetbeat-etc
|
||||
mountPath: /etc/packetbeat/packetbeat.yml
|
||||
subPath: packetbeat.yml
|
||||
readOnly: true
|
||||
{{ if $mounts_packetbeat.volumeMounts }}{{ toYaml $mounts_packetbeat.volumeMounts | indent 12 }}{{ end }}
|
||||
volumes:
|
||||
- name: pod-tmp
|
||||
emptyDir: {}
|
||||
- name: packetbeat-etc
|
||||
configMap:
|
||||
defaultMode: 0444
|
||||
|
||||
Reference in New Issue
Block a user