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:
Pete Birley 2019-04-20 07:58:42 -05:00 committed by Pete Birley
parent 5e1ecd9840
commit 2abf62ff4d
120 changed files with 796 additions and 251 deletions

View File

@ -102,6 +102,8 @@ spec:
- --listen-peer-urls={{ tuple "etcd" "internal" "peer" . | include "helm-toolkit.endpoints.keystone_endpoint_scheme_lookup" }}://0.0.0.0:{{ tuple "etcd" "internal" "peer" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} - --listen-peer-urls={{ tuple "etcd" "internal" "peer" . | include "helm-toolkit.endpoints.keystone_endpoint_scheme_lookup" }}://0.0.0.0:{{ tuple "etcd" "internal" "peer" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
- --auto-compaction-retention=1 - --auto-compaction-retention=1
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: var-etcd - name: var-etcd
mountPath: /var/etcd mountPath: /var/etcd
{{ if .Values.conf.etcd.credentials.ca }} {{ if .Values.conf.etcd.credentials.ca }}
@ -123,6 +125,8 @@ spec:
readOnly: true readOnly: true
{{ end }} {{ end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: var-etcd - name: var-etcd
hostPath: hostPath:
path: /var/etcd path: /var/etcd

View File

@ -180,6 +180,8 @@ spec:
key: tls.crt key: tls.crt
{{ end }} {{ end }}
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- mountPath: /host/etc/calico - mountPath: /host/etc/calico
name: calico-cert-dir name: calico-cert-dir
- mountPath: /host/opt/cni/bin - mountPath: /host/opt/cni/bin
@ -230,6 +232,8 @@ spec:
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: cni-bin-dir - name: cni-bin-dir
mountPath: /host/opt/cni/bin mountPath: /host/opt/cni/bin
- name: cni-net-dir - name: cni-net-dir
@ -253,6 +257,8 @@ spec:
readOnly: true readOnly: true
{{ end }} {{ end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
# Used by calico/node. # Used by calico/node.
- name: lib-modules - name: lib-modules
hostPath: hostPath:
@ -368,6 +374,8 @@ spec:
- -felix-ready - -felix-ready
periodSeconds: 10 periodSeconds: 10
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- mountPath: /lib/modules - mountPath: /lib/modules
name: lib-modules name: lib-modules
readOnly: true readOnly: true

View File

@ -144,6 +144,8 @@ spec:
# etcd tls mounts # etcd tls mounts
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: calico-etcd-secrets - name: calico-etcd-secrets
mountPath: {{ .Values.endpoints.etcd.auth.client.path.ca }} mountPath: {{ .Values.endpoints.etcd.auth.client.path.ca }}
subPath: tls.ca subPath: tls.ca
@ -169,6 +171,8 @@ spec:
- /usr/bin/check-status - /usr/bin/check-status
- -r - -r
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: calico-etcd-secrets - name: calico-etcd-secrets
secret: secret:
secretName: calico-etcd-secrets secretName: calico-etcd-secrets

View File

@ -76,6 +76,8 @@ spec:
command: command:
- /tmp/calico-settings.sh - /tmp/calico-settings.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: calico-bin - name: calico-bin
mountPath: /tmp/calico-settings.sh mountPath: /tmp/calico-settings.sh
subPath: calico-settings.sh subPath: calico-settings.sh
@ -93,6 +95,8 @@ spec:
subPath: tls.key subPath: tls.key
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: calico-bin - name: calico-bin
configMap: configMap:
name: calico-bin name: calico-bin

View File

@ -87,6 +87,8 @@ spec:
command: command:
- /tmp/utils-checkPGs.sh - /tmp/utils-checkPGs.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-client-bin - name: ceph-client-bin
mountPath: /tmp/utils-checkPGs.py mountPath: /tmp/utils-checkPGs.py
subPath: utils-checkPGs.py subPath: utils-checkPGs.py
@ -118,6 +120,8 @@ spec:
restartPolicy: Never restartPolicy: Never
hostNetwork: true hostNetwork: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ceph-client-bin - name: ceph-client-bin
configMap: configMap:
name: ceph-client-bin name: ceph-client-bin

View File

@ -99,11 +99,15 @@ spec:
command: command:
- /tmp/_start.sh - /tmp/_start.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-client-bin - name: ceph-client-bin
mountPath: /tmp/_start.sh mountPath: /tmp/_start.sh
subPath: utils-checkDNS_start.sh subPath: utils-checkDNS_start.sh
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ceph-client-bin - name: ceph-client-bin
configMap: configMap:
name: ceph-client-bin name: ceph-client-bin

View File

@ -58,6 +58,8 @@ spec:
- name: CLUSTER - name: CLUSTER
value: "ceph" value: "ceph"
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-client-bin - name: ceph-client-bin
mountPath: /tmp/init-dirs.sh mountPath: /tmp/init-dirs.sh
subPath: init-dirs.sh subPath: init-dirs.sh
@ -98,6 +100,8 @@ spec:
port: 6800 port: 6800
timeoutSeconds: 5 timeoutSeconds: 5
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-client-bin - name: ceph-client-bin
mountPath: /tmp/mds-start.sh mountPath: /tmp/mds-start.sh
subPath: mds-start.sh subPath: mds-start.sh
@ -125,6 +129,8 @@ spec:
mountPath: /run mountPath: /run
readOnly: false readOnly: false
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ceph-client-etc - name: ceph-client-etc
configMap: configMap:
name: ceph-client-etc name: ceph-client-etc

View File

@ -61,6 +61,8 @@ spec:
- name: CLUSTER - name: CLUSTER
value: "ceph" value: "ceph"
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-client-bin - name: ceph-client-bin
mountPath: /tmp/init-dirs.sh mountPath: /tmp/init-dirs.sh
subPath: init-dirs.sh subPath: init-dirs.sh
@ -126,6 +128,8 @@ spec:
initialDelaySeconds: 30 initialDelaySeconds: 30
timeoutSeconds: 5 timeoutSeconds: 5
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-client-bin - name: ceph-client-bin
mountPath: /mgr-start.sh mountPath: /mgr-start.sh
subPath: mgr-start.sh subPath: mgr-start.sh
@ -167,6 +171,8 @@ spec:
subPath: utils-checkPGs.sh subPath: utils-checkPGs.sh
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: pod-etc-ceph - name: pod-etc-ceph
emptyDir: {} emptyDir: {}
- name: ceph-client-bin - name: ceph-client-bin

View File

@ -45,6 +45,8 @@ spec:
command: command:
- /tmp/bootstrap.sh - /tmp/bootstrap.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-client-bin - name: ceph-client-bin
mountPath: /tmp/bootstrap.sh mountPath: /tmp/bootstrap.sh
subPath: bootstrap.sh subPath: bootstrap.sh
@ -58,6 +60,8 @@ spec:
subPath: ceph.client.admin.keyring subPath: ceph.client.admin.keyring
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ceph-client-bin - name: ceph-client-bin
configMap: configMap:
name: ceph-client-bin name: ceph-client-bin

View File

@ -51,6 +51,8 @@ spec:
command: command:
- /tmp/pool-init.sh - /tmp/pool-init.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-client-bin - name: ceph-client-bin
mountPath: /tmp/pool-init.sh mountPath: /tmp/pool-init.sh
subPath: pool-init.sh subPath: pool-init.sh
@ -74,6 +76,8 @@ spec:
mountPath: /run mountPath: /run
readOnly: false readOnly: false
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ceph-client-etc - name: ceph-client-etc
configMap: configMap:
name: ceph-client-etc name: ceph-client-etc

View File

@ -58,6 +58,8 @@ spec:
command: command:
- /tmp/helm-tests.sh - /tmp/helm-tests.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-client-bin - name: ceph-client-bin
mountPath: /tmp/helm-tests.sh mountPath: /tmp/helm-tests.sh
subPath: helm-tests.sh subPath: helm-tests.sh
@ -71,6 +73,8 @@ spec:
subPath: ceph.conf subPath: ceph.conf
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ceph-client-bin - name: ceph-client-bin
configMap: configMap:
name: ceph-client-bin name: ceph-client-bin

View File

@ -83,6 +83,8 @@ spec:
- name: CLUSTER - name: CLUSTER
value: "ceph" value: "ceph"
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-mon-bin - name: ceph-mon-bin
mountPath: /tmp/init-dirs.sh mountPath: /tmp/init-dirs.sh
subPath: init-dirs.sh subPath: init-dirs.sh
@ -103,6 +105,8 @@ spec:
- ceph:root - ceph:root
- /var/log/ceph - /var/log/ceph
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: pod-var-log - name: pod-var-log
mountPath: /var/log/ceph mountPath: /var/log/ceph
readOnly: false readOnly: false
@ -164,6 +168,8 @@ spec:
initialDelaySeconds: 60 initialDelaySeconds: 60
periodSeconds: 60 periodSeconds: 60
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-mon-bin - name: ceph-mon-bin
mountPath: /tmp/mon-start.sh mountPath: /tmp/mon-start.sh
subPath: mon-start.sh subPath: mon-start.sh
@ -214,6 +220,8 @@ spec:
mountPath: /var/log/ceph mountPath: /var/log/ceph
readOnly: false readOnly: false
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: pod-var-log - name: pod-var-log
hostPath: hostPath:
path: {{ print "/var/log/ceph/" $envAll.Release.Name }} path: {{ print "/var/log/ceph/" $envAll.Release.Name }}

View File

@ -68,6 +68,8 @@ spec:
ports: ports:
- containerPort: {{ tuple "ceph_mon" "internal" "mon" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" }} - containerPort: {{ tuple "ceph_mon" "internal" "mon" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-mon-bin - name: ceph-mon-bin
mountPath: /tmp/moncheck-start.sh mountPath: /tmp/moncheck-start.sh
subPath: moncheck-start.sh subPath: moncheck-start.sh
@ -99,6 +101,8 @@ spec:
mountPath: /run mountPath: /run
readOnly: false readOnly: false
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ceph-mon-etc - name: ceph-mon-etc
configMap: configMap:
name: ceph-mon-etc name: ceph-mon-etc

View File

@ -45,6 +45,8 @@ spec:
command: command:
- /tmp/bootstrap.sh - /tmp/bootstrap.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-mon-bin - name: ceph-mon-bin
mountPath: /tmp/bootstrap.sh mountPath: /tmp/bootstrap.sh
subPath: bootstrap.sh subPath: bootstrap.sh
@ -58,6 +60,8 @@ spec:
subPath: ceph.client.admin.keyring subPath: ceph.client.admin.keyring
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ceph-mon-bin - name: ceph-mon-bin
configMap: configMap:
name: ceph-mon-bin name: ceph-mon-bin

View File

@ -96,6 +96,8 @@ spec:
command: command:
- /tmp/keys-bootstrap-keyring-manager.sh - /tmp/keys-bootstrap-keyring-manager.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-mon-bin - name: ceph-mon-bin
mountPath: /tmp/keys-bootstrap-keyring-manager.sh mountPath: /tmp/keys-bootstrap-keyring-manager.sh
subPath: keys-bootstrap-keyring-manager.sh subPath: keys-bootstrap-keyring-manager.sh
@ -108,6 +110,8 @@ spec:
mountPath: /tmp/templates mountPath: /tmp/templates
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ceph-mon-bin - name: ceph-mon-bin
configMap: configMap:
name: ceph-mon-bin name: ceph-mon-bin

View File

@ -89,6 +89,8 @@ spec:
command: command:
- /tmp/keys-storage-keyring-manager.sh - /tmp/keys-storage-keyring-manager.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-mon-bin - name: ceph-mon-bin
mountPath: /tmp/keys-storage-keyring-manager.sh mountPath: /tmp/keys-storage-keyring-manager.sh
subPath: keys-storage-keyring-manager.sh subPath: keys-storage-keyring-manager.sh
@ -101,6 +103,8 @@ spec:
mountPath: /tmp/templates mountPath: /tmp/templates
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ceph-mon-bin - name: ceph-mon-bin
configMap: configMap:
name: ceph-mon-bin name: ceph-mon-bin

View File

@ -84,9 +84,12 @@ spec:
fieldPath: metadata.namespace fieldPath: metadata.namespace
- name: KUBECTL_PARAM - name: KUBECTL_PARAM
value: {{ tuple $envAll "ceph" "ceph-defragosd" | include "helm-toolkit.snippets.kubernetes_kubectl_params" | indent 10 }} value: {{ tuple $envAll "ceph" "ceph-defragosd" | include "helm-toolkit.snippets.kubernetes_kubectl_params" | indent 10 }}
command: ["/tmp/utils-defragOSDs.sh"] command:
args: ["cron"] - /tmp/utils-defragOSDs.sh
- cron
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-osd-bin - name: ceph-osd-bin
mountPath: /tmp/utils-defragOSDs.sh mountPath: /tmp/utils-defragOSDs.sh
subPath: utils-defragOSDs.sh subPath: utils-defragOSDs.sh
@ -94,6 +97,8 @@ spec:
restartPolicy: Never restartPolicy: Never
hostNetwork: true hostNetwork: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ceph-osd-bin - name: ceph-osd-bin
configMap: configMap:
name: {{ printf "%s-%s" $envAll.Release.Name "bin" | quote }} name: {{ printf "%s-%s" $envAll.Release.Name "bin" | quote }}

View File

@ -76,6 +76,8 @@ spec:
- name: MON_PORT - name: MON_PORT
value: {{ tuple "ceph_mon" "internal" "mon" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" | quote }} value: {{ tuple "ceph_mon" "internal" "mon" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" | quote }}
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-osd-bin - name: ceph-osd-bin
mountPath: /tmp/init-dirs.sh mountPath: /tmp/init-dirs.sh
subPath: init-dirs.sh subPath: init-dirs.sh
@ -123,6 +125,8 @@ spec:
- ceph:root - ceph:root
- /var/log/ceph - /var/log/ceph
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: pod-var-log - name: pod-var-log
mountPath: /var/log/ceph mountPath: /var/log/ceph
readOnly: false readOnly: false
@ -157,6 +161,8 @@ spec:
command: command:
- /tmp/osd-init.sh - /tmp/osd-init.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-osd-bin - name: ceph-osd-bin
mountPath: /tmp/osd-init.sh mountPath: /tmp/osd-init.sh
subPath: osd-init.sh subPath: osd-init.sh
@ -248,6 +254,8 @@ spec:
initialDelaySeconds: 60 initialDelaySeconds: 60
periodSeconds: 60 periodSeconds: 60
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-osd-bin - name: ceph-osd-bin
mountPath: /tmp/osd-start.sh mountPath: /tmp/osd-start.sh
subPath: osd-start.sh subPath: osd-start.sh
@ -314,6 +322,8 @@ spec:
mountPath: /var/log/ceph mountPath: /var/log/ceph
readOnly: false readOnly: false
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: devices - name: devices
hostPath: hostPath:
path: /dev path: /dev

View File

@ -45,6 +45,8 @@ spec:
command: command:
- /tmp/bootstrap.sh - /tmp/bootstrap.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-osd-bin - name: ceph-osd-bin
mountPath: /tmp/bootstrap.sh mountPath: /tmp/bootstrap.sh
subPath: bootstrap.sh subPath: bootstrap.sh
@ -58,6 +60,8 @@ spec:
subPath: ceph.client.admin.keyring subPath: ceph.client.admin.keyring
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ceph-osd-bin - name: ceph-osd-bin
configMap: configMap:
name: {{ printf "%s-%s" $envAll.Release.Name "bin" | quote }} name: {{ printf "%s-%s" $envAll.Release.Name "bin" | quote }}

View File

@ -43,6 +43,8 @@ spec:
command: command:
- /tmp/helm-tests.sh - /tmp/helm-tests.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-osd-bin - name: ceph-osd-bin
mountPath: /tmp/helm-tests.sh mountPath: /tmp/helm-tests.sh
subPath: helm-tests.sh subPath: helm-tests.sh
@ -56,6 +58,8 @@ spec:
subPath: ceph.conf subPath: ceph.conf
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ceph-osd-bin - name: ceph-osd-bin
configMap: configMap:
name: {{ printf "%s-%s" $envAll.Release.Name "bin" | quote }} name: {{ printf "%s-%s" $envAll.Release.Name "bin" | quote }}

View File

@ -172,11 +172,15 @@ spec:
command: command:
- /tmp/provisioner-cephfs-start.sh - /tmp/provisioner-cephfs-start.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-provisioners-bin - name: ceph-provisioners-bin
mountPath: /tmp/provisioner-cephfs-start.sh mountPath: /tmp/provisioner-cephfs-start.sh
subPath: provisioner-cephfs-start.sh subPath: provisioner-cephfs-start.sh
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ceph-provisioners-bin - name: ceph-provisioners-bin
configMap: configMap:
name: {{ printf "%s-%s" $envAll.Release.Name "ceph-prov-bin" | quote }} name: {{ printf "%s-%s" $envAll.Release.Name "ceph-prov-bin" | quote }}

View File

@ -162,11 +162,15 @@ spec:
command: command:
- /tmp/provisioner-rbd-start.sh - /tmp/provisioner-rbd-start.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-provisioners-bin - name: ceph-provisioners-bin
mountPath: /tmp/provisioner-rbd-start.sh mountPath: /tmp/provisioner-rbd-start.sh
subPath: provisioner-rbd-start.sh subPath: provisioner-rbd-start.sh
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ceph-provisioners-bin - name: ceph-provisioners-bin
configMap: configMap:
name: {{ printf "%s-%s" $envAll.Release.Name "ceph-prov-bin" | quote }} name: {{ printf "%s-%s" $envAll.Release.Name "ceph-prov-bin" | quote }}

View File

@ -45,6 +45,8 @@ spec:
command: command:
- /tmp/bootstrap.sh - /tmp/bootstrap.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-provisioners-bin - name: ceph-provisioners-bin
mountPath: /tmp/bootstrap.sh mountPath: /tmp/bootstrap.sh
subPath: bootstrap.sh subPath: bootstrap.sh
@ -58,6 +60,8 @@ spec:
subPath: ceph.client.admin.keyring subPath: ceph.client.admin.keyring
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ceph-provisioners-bin - name: ceph-provisioners-bin
configMap: configMap:
name: {{ printf "%s-%s" $envAll.Release.Name "ceph-prov-bin" | quote }} name: {{ printf "%s-%s" $envAll.Release.Name "ceph-prov-bin" | quote }}

View File

@ -114,11 +114,15 @@ spec:
command: command:
- /tmp/provisioner-cephfs-client-key-manager.sh - /tmp/provisioner-cephfs-client-key-manager.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-provisioners-bin - name: ceph-provisioners-bin
mountPath: /tmp/provisioner-cephfs-client-key-manager.sh mountPath: /tmp/provisioner-cephfs-client-key-manager.sh
subPath: provisioner-cephfs-client-key-manager.sh subPath: provisioner-cephfs-client-key-manager.sh
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ceph-provisioners-bin - name: ceph-provisioners-bin
configMap: configMap:
name: {{ printf "%s-%s" $envAll.Release.Name "ceph-prov-bin" | quote }} name: {{ printf "%s-%s" $envAll.Release.Name "ceph-prov-bin" | quote }}

View File

@ -81,11 +81,15 @@ spec:
command: command:
- /tmp/provisioner-rbd-namespace-client-key-cleaner.sh - /tmp/provisioner-rbd-namespace-client-key-cleaner.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-provisioners-bin-clients - name: ceph-provisioners-bin-clients
mountPath: /tmp/provisioner-rbd-namespace-client-key-cleaner.sh mountPath: /tmp/provisioner-rbd-namespace-client-key-cleaner.sh
subPath: provisioner-rbd-namespace-client-key-cleaner.sh subPath: provisioner-rbd-namespace-client-key-cleaner.sh
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ceph-provisioners-bin-clients - name: ceph-provisioners-bin-clients
configMap: configMap:
name: {{ printf "%s-%s" $envAll.Release.Name "ceph-prov-bin-clients" | quote }} name: {{ printf "%s-%s" $envAll.Release.Name "ceph-prov-bin-clients" | quote }}

View File

@ -112,11 +112,15 @@ spec:
command: command:
- /tmp/provisioner-rbd-namespace-client-key-manager.sh - /tmp/provisioner-rbd-namespace-client-key-manager.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-provisioners-bin-clients - name: ceph-provisioners-bin-clients
mountPath: /tmp/provisioner-rbd-namespace-client-key-manager.sh mountPath: /tmp/provisioner-rbd-namespace-client-key-manager.sh
subPath: provisioner-rbd-namespace-client-key-manager.sh subPath: provisioner-rbd-namespace-client-key-manager.sh
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ceph-provisioners-bin-clients - name: ceph-provisioners-bin-clients
configMap: configMap:
name: {{ printf "%s-%s" $envAll.Release.Name "ceph-prov-bin-clients" | quote }} name: {{ printf "%s-%s" $envAll.Release.Name "ceph-prov-bin-clients" | quote }}

View File

@ -69,6 +69,8 @@ spec:
- name: CLUSTER - name: CLUSTER
value: "ceph" value: "ceph"
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-rgw-bin - name: ceph-rgw-bin
mountPath: /tmp/init-dirs.sh mountPath: /tmp/init-dirs.sh
subPath: init-dirs.sh subPath: init-dirs.sh
@ -102,6 +104,8 @@ spec:
command: command:
- /tmp/rgw-init.sh - /tmp/rgw-init.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: pod-etc-ceph - name: pod-etc-ceph
mountPath: /etc/ceph mountPath: /etc/ceph
- name: ceph-rgw-bin - name: ceph-rgw-bin
@ -137,6 +141,8 @@ spec:
port: {{ tuple "object_store" "internal" "api" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" }} port: {{ tuple "object_store" "internal" "api" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
timeoutSeconds: 5 timeoutSeconds: 5
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-rgw-bin - name: ceph-rgw-bin
mountPath: /tmp/rgw-start.sh mountPath: /tmp/rgw-start.sh
subPath: rgw-start.sh subPath: rgw-start.sh
@ -158,6 +164,8 @@ spec:
mountPath: /run mountPath: /run
readOnly: false readOnly: false
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: pod-etc-ceph - name: pod-etc-ceph
emptyDir: {} emptyDir: {}
- name: ceph-rgw-bin - name: ceph-rgw-bin

View File

@ -71,6 +71,8 @@ spec:
command: command:
- /tmp/ceph-admin-keyring.sh - /tmp/ceph-admin-keyring.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: etcceph - name: etcceph
mountPath: /etc/ceph mountPath: /etc/ceph
- name: ceph-rgw-bin - name: ceph-rgw-bin
@ -95,6 +97,8 @@ spec:
command: command:
- /tmp/storage-init.sh - /tmp/storage-init.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-rgw-bin - name: ceph-rgw-bin
mountPath: /tmp/storage-init.sh mountPath: /tmp/storage-init.sh
subPath: storage-init.sh subPath: storage-init.sh
@ -113,6 +117,8 @@ spec:
subPath: key subPath: key
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ceph-rgw-bin - name: ceph-rgw-bin
configMap: configMap:
name: ceph-rgw-bin name: ceph-rgw-bin

View File

@ -76,6 +76,8 @@ spec:
command: command:
- /tmp/ceph-admin-keyring.sh - /tmp/ceph-admin-keyring.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: etcceph - name: etcceph
mountPath: /etc/ceph mountPath: /etc/ceph
- name: ceph-rgw-bin - name: ceph-rgw-bin
@ -110,6 +112,8 @@ spec:
command: command:
- /tmp/rgw-s3-admin.sh - /tmp/rgw-s3-admin.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: etcceph - name: etcceph
mountPath: /etc/ceph mountPath: /etc/ceph
- name: ceph-rgw-bin - name: ceph-rgw-bin
@ -125,6 +129,8 @@ spec:
subPath: key subPath: key
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: etcceph - name: etcceph
emptyDir: {} emptyDir: {}
- name: ceph-rgw-bin - name: ceph-rgw-bin

View File

@ -53,6 +53,8 @@ spec:
command: command:
- /tmp/helm-tests.sh - /tmp/helm-tests.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: etcceph - name: etcceph
mountPath: /etc/ceph mountPath: /etc/ceph
- name: ceph-rgw-bin - name: ceph-rgw-bin
@ -67,7 +69,30 @@ spec:
mountPath: /etc/ceph/ceph.conf mountPath: /etc/ceph/ceph.conf
subPath: ceph.conf subPath: ceph.conf
readOnly: true readOnly: true
{{- end }}
{{ if .Values.conf.rgw_s3.enabled }}
- name: ceph-rgw-s3-validation
{{ tuple $envAll "ceph_rgw" | include "helm-toolkit.snippets.image" | indent 6 }}
{{ tuple $envAll $envAll.Values.pod.resources.tests | include "helm-toolkit.snippets.kubernetes_resources" | indent 6 }}
env:
{{- with $env := dict "s3AdminSecret" $envAll.Values.secrets.rgw_s3.admin }}
{{- include "helm-toolkit.snippets.rgw_s3_admin_env_vars" $env | indent 8 }}
{{- end }}
- name: RGW_HOST
value: {{ tuple "ceph_object_store" "internal" "api" $envAll | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" }}
command:
- /tmp/helm-tests.sh
volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ceph-rgw-bin
mountPath: /tmp/helm-tests.sh
subPath: helm-tests.sh
readOnly: true
{{- end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: etcceph - name: etcceph
emptyDir: {} emptyDir: {}
- name: ceph-rgw-bin - name: ceph-rgw-bin
@ -82,28 +107,3 @@ spec:
name: ceph-rgw-etc name: ceph-rgw-etc
defaultMode: 0444 defaultMode: 0444
{{- end }} {{- end }}
{{ if .Values.conf.rgw_s3.enabled }}
containers:
- name: ceph-rgw-s3-validation
{{ tuple $envAll "ceph_rgw" | include "helm-toolkit.snippets.image" | indent 6 }}
{{ tuple $envAll $envAll.Values.pod.resources.tests | include "helm-toolkit.snippets.kubernetes_resources" | indent 6 }}
env:
{{- with $env := dict "s3AdminSecret" $envAll.Values.secrets.rgw_s3.admin }}
{{- include "helm-toolkit.snippets.rgw_s3_admin_env_vars" $env | indent 8 }}
{{- end }}
- name: RGW_HOST
value: {{ tuple "ceph_object_store" "internal" "api" $envAll | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" }}
command:
- /tmp/helm-tests.sh
volumeMounts:
- name: ceph-rgw-bin
mountPath: /tmp/helm-tests.sh
subPath: helm-tests.sh
readOnly: true
volumes:
- name: ceph-rgw-bin
configMap:
name: ceph-rgw-bin
defaultMode: 0555
{{- end }}
{{- end }}

View File

@ -109,6 +109,8 @@ spec:
name: {{ $esUserSecret }} name: {{ $esUserSecret }}
key: ELASTICSEARCH_PASSWORD key: ELASTICSEARCH_PASSWORD
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: elastic-apm-server-etc - name: elastic-apm-server-etc
mountPath: /usr/share/apm-server/apm-server.yml mountPath: /usr/share/apm-server/apm-server.yml
readOnly: true readOnly: true
@ -117,6 +119,8 @@ spec:
mountPath: /usr/share/apm-server/data mountPath: /usr/share/apm-server/data
{{ if $mounts_elastic_apm_server.volumeMounts }}{{ toYaml $mounts_elastic_apm_server.volumeMounts | indent 8 }}{{ end }} {{ if $mounts_elastic_apm_server.volumeMounts }}{{ toYaml $mounts_elastic_apm_server.volumeMounts | indent 8 }}{{ end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: elastic-apm-server-etc - name: elastic-apm-server-etc
configMap: configMap:
name: elastic-apm-server-etc name: elastic-apm-server-etc

View File

@ -127,6 +127,8 @@ spec:
name: {{ $esUserSecret }} name: {{ $esUserSecret }}
key: ELASTICSEARCH_PASSWORD key: ELASTICSEARCH_PASSWORD
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: data - name: data
mountPath: /usr/share/filebeat/data mountPath: /usr/share/filebeat/data
- name: varlog - name: varlog
@ -140,6 +142,8 @@ spec:
subPath: filebeat.yml subPath: filebeat.yml
{{ if $mounts_filebeat.volumeMounts }}{{ toYaml $mounts_filebeat.volumeMounts | indent 8 }}{{ end }} {{ if $mounts_filebeat.volumeMounts }}{{ toYaml $mounts_filebeat.volumeMounts | indent 8 }}{{ end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: varlog - name: varlog
hostPath: hostPath:
path: /var/log path: /var/log

View File

@ -134,6 +134,8 @@ spec:
fieldRef: fieldRef:
fieldPath: metadata.namespace fieldPath: metadata.namespace
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: metricbeat-etc - name: metricbeat-etc
mountPath: /etc/metricbeat.yml mountPath: /etc/metricbeat.yml
subPath: metricbeat.yml subPath: metricbeat.yml
@ -156,20 +158,22 @@ spec:
readOnly: true readOnly: true
{{ if $mounts_metricbeat.volumeMounts }}{{ toYaml $mounts_metricbeat.volumeMounts | indent 12 }}{{ end }} {{ if $mounts_metricbeat.volumeMounts }}{{ toYaml $mounts_metricbeat.volumeMounts | indent 12 }}{{ end }}
volumes: volumes:
- name: proc - name: pod-tmp
hostPath: emptyDir: {}
path: /proc - name: proc
- name: cgroup hostPath:
hostPath: path: /proc
path: /sys/fs/cgroup - name: cgroup
- name: dockersock hostPath:
hostPath: path: /sys/fs/cgroup
path: /var/run/docker.sock - name: dockersock
- name: metricbeat-etc hostPath:
configMap: path: /var/run/docker.sock
defaultMode: 0444 - name: metricbeat-etc
name: metricbeat-etc configMap:
- name: data defaultMode: 0444
emptyDir: {} name: metricbeat-etc
- name: data
emptyDir: {}
{{ if $mounts_metricbeat.volumes }}{{ toYaml $mounts_metricbeat.volumes | indent 8 }}{{ end }} {{ if $mounts_metricbeat.volumes }}{{ toYaml $mounts_metricbeat.volumes | indent 8 }}{{ end }}
{{- end }} {{- end }}

View File

@ -83,6 +83,8 @@ spec:
fieldRef: fieldRef:
fieldPath: metadata.namespace fieldPath: metadata.namespace
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: metricbeat-etc - name: metricbeat-etc
mountPath: /etc/metricbeat.yml mountPath: /etc/metricbeat.yml
subPath: metricbeat.yml subPath: metricbeat.yml
@ -100,6 +102,8 @@ spec:
subPath: rabbitmq.yml subPath: rabbitmq.yml
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: metricbeat-etc - name: metricbeat-etc
configMap: configMap:
name: metricbeat-etc name: metricbeat-etc

View File

@ -134,12 +134,16 @@ spec:
fieldRef: fieldRef:
fieldPath: spec.nodeName fieldPath: spec.nodeName
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: packetbeat-etc - name: packetbeat-etc
mountPath: /etc/packetbeat/packetbeat.yml mountPath: /etc/packetbeat/packetbeat.yml
subPath: packetbeat.yml subPath: packetbeat.yml
readOnly: true readOnly: true
{{ if $mounts_packetbeat.volumeMounts }}{{ toYaml $mounts_packetbeat.volumeMounts | indent 12 }}{{ end }} {{ if $mounts_packetbeat.volumeMounts }}{{ toYaml $mounts_packetbeat.volumeMounts | indent 12 }}{{ end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: packetbeat-etc - name: packetbeat-etc
configMap: configMap:
defaultMode: 0444 defaultMode: 0444

View File

@ -59,6 +59,8 @@ spec:
name: {{ $esUserSecret }} name: {{ $esUserSecret }}
key: ELASTICSEARCH_URI key: ELASTICSEARCH_URI
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: pod-etc-curator - name: pod-etc-curator
mountPath: /etc/config mountPath: /etc/config
- name: elasticsearch-bin - name: elasticsearch-bin
@ -74,6 +76,8 @@ spec:
subPath: action_file.yml subPath: action_file.yml
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: pod-etc-curator - name: pod-etc-curator
emptyDir: {} emptyDir: {}
- name: elasticsearch-bin - name: elasticsearch-bin

View File

@ -130,6 +130,8 @@ spec:
name: {{ $esUserSecret }} name: {{ $esUserSecret }}
key: ELASTICSEARCH_PASSWORD key: ELASTICSEARCH_PASSWORD
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: elasticsearch-bin - name: elasticsearch-bin
mountPath: /tmp/apache.sh mountPath: /tmp/apache.sh
subPath: apache.sh subPath: apache.sh
@ -192,6 +194,8 @@ spec:
- name: ES_PLUGINS_INSTALL - name: ES_PLUGINS_INSTALL
value: "elasticsearch-s3" value: "elasticsearch-s3"
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: elasticsearch-logs - name: elasticsearch-logs
mountPath: {{ .Values.conf.elasticsearch.config.path.logs }} mountPath: {{ .Values.conf.elasticsearch.config.path.logs }}
- name: elasticsearch-bin - name: elasticsearch-bin
@ -212,6 +216,8 @@ spec:
mountPath: {{ .Values.conf.elasticsearch.config.path.data }} mountPath: {{ .Values.conf.elasticsearch.config.path.data }}
{{ if $mounts_elasticsearch.volumeMounts }}{{ toYaml $mounts_elasticsearch.volumeMounts | indent 12 }}{{ end }} {{ if $mounts_elasticsearch.volumeMounts }}{{ toYaml $mounts_elasticsearch.volumeMounts | indent 12 }}{{ end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: elasticsearch-config - name: elasticsearch-config
emptyDir: {} emptyDir: {}
- name: elasticsearch-logs - name: elasticsearch-logs

View File

@ -150,6 +150,8 @@ spec:
- name: ES_PLUGINS_INSTALL - name: ES_PLUGINS_INSTALL
value: "elasticsearch-s3" value: "elasticsearch-s3"
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: elasticsearch-logs - name: elasticsearch-logs
mountPath: {{ .Values.conf.elasticsearch.config.path.logs }} mountPath: {{ .Values.conf.elasticsearch.config.path.logs }}
- name: elasticsearch-bin - name: elasticsearch-bin
@ -170,6 +172,8 @@ spec:
mountPath: {{ .Values.conf.elasticsearch.config.path.data }} mountPath: {{ .Values.conf.elasticsearch.config.path.data }}
{{ if $mounts_elasticsearch.volumeMounts }}{{ toYaml $mounts_elasticsearch.volumeMounts | indent 12 }}{{ end }} {{ if $mounts_elasticsearch.volumeMounts }}{{ toYaml $mounts_elasticsearch.volumeMounts | indent 12 }}{{ end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: elasticsearch-logs - name: elasticsearch-logs
emptyDir: {} emptyDir: {}
- name: elasticsearch-config - name: elasticsearch-config

View File

@ -60,11 +60,15 @@ spec:
command: command:
- /tmp/es-cluster-wait.sh - /tmp/es-cluster-wait.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: elasticsearch-bin - name: elasticsearch-bin
mountPath: /tmp/es-cluster-wait.sh mountPath: /tmp/es-cluster-wait.sh
subPath: es-cluster-wait.sh subPath: es-cluster-wait.sh
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: elasticsearch-bin - name: elasticsearch-bin
configMap: configMap:
name: elasticsearch-bin name: elasticsearch-bin

View File

@ -75,11 +75,15 @@ spec:
command: command:
- /tmp/register-repository.sh - /tmp/register-repository.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: elasticsearch-bin - name: elasticsearch-bin
mountPath: /tmp/register-repository.sh mountPath: /tmp/register-repository.sh
subPath: register-repository.sh subPath: register-repository.sh
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: elasticsearch-bin - name: elasticsearch-bin
configMap: configMap:
name: elasticsearch-bin name: elasticsearch-bin

View File

@ -77,11 +77,15 @@ spec:
initialDelaySeconds: 20 initialDelaySeconds: 20
periodSeconds: 10 periodSeconds: 10
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: elasticsearch-exporter-bin - name: elasticsearch-exporter-bin
mountPath: /tmp/elasticsearch-exporter.sh mountPath: /tmp/elasticsearch-exporter.sh
subPath: elasticsearch-exporter.sh subPath: elasticsearch-exporter.sh
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: elasticsearch-exporter-bin - name: elasticsearch-exporter-bin
configMap: configMap:
name: elasticsearch-exporter-bin name: elasticsearch-exporter-bin

View File

@ -57,11 +57,15 @@ spec:
- name: ELASTICSEARCH_ENDPOINT - name: ELASTICSEARCH_ENDPOINT
value: {{ tuple "elasticsearch" "internal" "http" . | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" }} value: {{ tuple "elasticsearch" "internal" "http" . | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" }}
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: elasticsearch-bin - name: elasticsearch-bin
mountPath: /tmp/helm-tests.sh mountPath: /tmp/helm-tests.sh
subPath: helm-tests.sh subPath: helm-tests.sh
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: elasticsearch-bin - name: elasticsearch-bin
configMap: configMap:
name: elasticsearch-bin name: elasticsearch-bin

View File

@ -148,6 +148,8 @@ spec:
- name: ES_PLUGINS_INSTALL - name: ES_PLUGINS_INSTALL
value: "elasticsearch-s3" value: "elasticsearch-s3"
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: elasticsearch-logs - name: elasticsearch-logs
mountPath: {{ .Values.conf.elasticsearch.config.path.logs }} mountPath: {{ .Values.conf.elasticsearch.config.path.logs }}
- name: elasticsearch-bin - name: elasticsearch-bin
@ -168,6 +170,8 @@ spec:
mountPath: {{ .Values.conf.elasticsearch.config.path.data }} mountPath: {{ .Values.conf.elasticsearch.config.path.data }}
{{ if $mounts_elasticsearch.volumeMounts }}{{ toYaml $mounts_elasticsearch.volumeMounts | indent 12 }}{{ end }} {{ if $mounts_elasticsearch.volumeMounts }}{{ toYaml $mounts_elasticsearch.volumeMounts | indent 12 }}{{ end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: elasticsearch-logs - name: elasticsearch-logs
emptyDir: {} emptyDir: {}
- name: elasticsearch-config - name: elasticsearch-config

View File

@ -60,11 +60,15 @@ spec:
tcpSocket: tcpSocket:
port: {{ tuple "etcd" "internal" "client" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} port: {{ tuple "etcd" "internal" "client" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: etcd-bin - name: etcd-bin
mountPath: /tmp/etcd.sh mountPath: /tmp/etcd.sh
subPath: etcd.sh subPath: etcd.sh
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: etcd-bin - name: etcd-bin
configMap: configMap:
name: {{ $configMapBinName | quote }} name: {{ $configMapBinName | quote }}

View File

@ -90,6 +90,8 @@ spec:
args: args:
- /tmp/falco.sh - /tmp/falco.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- mountPath: /tmp/falco.sh - mountPath: /tmp/falco.sh
name: falco-bin name: falco-bin
subPath: falco.sh subPath: falco.sh
@ -115,6 +117,8 @@ spec:
name: rules-volume name: rules-volume
{{- end }} {{- end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: falco-bin - name: falco-bin
configMap: configMap:
name: falco-bin name: falco-bin

View File

@ -110,6 +110,8 @@ spec:
fieldRef: fieldRef:
fieldPath: metadata.namespace fieldPath: metadata.namespace
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: run - name: run
mountPath: /run mountPath: /run
- name: flannel-cfg - name: flannel-cfg
@ -118,11 +120,15 @@ spec:
image: {{ .Values.images.tags.flannel }} image: {{ .Values.images.tags.flannel }}
command: [ "/bin/sh", "-c", "set -e -x; cp -f /etc/kube-flannel/cni-conf.json /etc/cni/net.d/10-flannel.conf; while true; do sleep 3600; done" ] command: [ "/bin/sh", "-c", "set -e -x; cp -f /etc/kube-flannel/cni-conf.json /etc/cni/net.d/10-flannel.conf; while true; do sleep 3600; done" ]
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: cni - name: cni
mountPath: /etc/cni/net.d mountPath: /etc/cni/net.d
- name: flannel-cfg - name: flannel-cfg
mountPath: /etc/kube-flannel/ mountPath: /etc/kube-flannel/
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: run - name: run
hostPath: hostPath:
path: /run path: /run

View File

@ -118,6 +118,8 @@ spec:
- name: FLUENTD_PORT - name: FLUENTD_PORT
value: {{ tuple "fluentd" "internal" "service" . | include "helm-toolkit.endpoints.endpoint_port_lookup" | quote }} value: {{ tuple "fluentd" "internal" "service" . | include "helm-toolkit.endpoints.endpoint_port_lookup" | quote }}
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: fluent-logging-bin - name: fluent-logging-bin
mountPath: /tmp/fluent-bit.sh mountPath: /tmp/fluent-bit.sh
subPath: fluent-bit.sh subPath: fluent-bit.sh
@ -138,6 +140,8 @@ spec:
readOnly: true readOnly: true
{{ if $mounts_fluentbit.volumeMounts }}{{ toYaml $mounts_fluentbit.volumeMounts | indent 12 }}{{ end }} {{ if $mounts_fluentbit.volumeMounts }}{{ toYaml $mounts_fluentbit.volumeMounts | indent 12 }}{{ end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: varlog - name: varlog
hostPath: hostPath:
path: /var/log path: /var/log

View File

@ -145,6 +145,8 @@ spec:
name: {{ $esUserSecret }} name: {{ $esUserSecret }}
key: ELASTICSEARCH_PASSWORD key: ELASTICSEARCH_PASSWORD
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: pod-etc-fluentd - name: pod-etc-fluentd
mountPath: /fluentd/etc mountPath: /fluentd/etc
- name: fluent-logging-etc - name: fluent-logging-etc
@ -157,6 +159,8 @@ spec:
readOnly: true readOnly: true
{{- if $mounts_fluentd.volumeMounts }}{{ toYaml $mounts_fluentd.volumeMounts | indent 12 }}{{- end }} {{- if $mounts_fluentd.volumeMounts }}{{ toYaml $mounts_fluentd.volumeMounts | indent 12 }}{{- end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: pod-etc-fluentd - name: pod-etc-fluentd
emptyDir: {} emptyDir: {}
- name: fluent-logging-etc - name: fluent-logging-etc

View File

@ -63,6 +63,8 @@ spec:
command: command:
- /tmp/create_template.sh - /tmp/create_template.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: fluent-logging-bin - name: fluent-logging-bin
mountPath: /tmp/create_template.sh mountPath: /tmp/create_template.sh
subPath: create_template.sh subPath: create_template.sh
@ -75,6 +77,8 @@ spec:
{{ end }} {{ end }}
{{ if $mounts_elasticsearch_template.volumeMounts }}{{ toYaml $mounts_elasticsearch_template.volumeMounts | indent 12 }}{{ end }} {{ if $mounts_elasticsearch_template.volumeMounts }}{{ toYaml $mounts_elasticsearch_template.volumeMounts | indent 12 }}{{ end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: fluent-logging-bin - name: fluent-logging-bin
configMap: configMap:
name: fluent-logging-bin name: fluent-logging-bin

View File

@ -68,11 +68,15 @@ spec:
- name: FLUENTD_METRICS_HOST - name: FLUENTD_METRICS_HOST
value: {{ $fluentd_metrics_host }} value: {{ $fluentd_metrics_host }}
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: fluentd-exporter-bin - name: fluentd-exporter-bin
mountPath: /tmp/fluentd-exporter.sh mountPath: /tmp/fluentd-exporter.sh
subPath: fluentd-exporter.sh subPath: fluentd-exporter.sh
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: fluentd-exporter-bin - name: fluentd-exporter-bin
configMap: configMap:
name: fluentd-exporter-bin name: fluentd-exporter-bin

View File

@ -42,28 +42,32 @@ spec:
{{ tuple $envAll "helm_tests" | include "helm-toolkit.snippets.image" | indent 6 }} {{ tuple $envAll "helm_tests" | include "helm-toolkit.snippets.image" | indent 6 }}
{{ tuple $envAll $envAll.Values.pod.resources.jobs.tests | include "helm-toolkit.snippets.kubernetes_resources" | indent 6 }} {{ tuple $envAll $envAll.Values.pod.resources.jobs.tests | include "helm-toolkit.snippets.kubernetes_resources" | indent 6 }}
command: command:
- /tmp/helm-tests.sh - /tmp/helm-tests.sh
env: env:
- name: ELASTICSEARCH_USERNAME - name: ELASTICSEARCH_USERNAME
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: {{ $esUserSecret }} name: {{ $esUserSecret }}
key: ELASTICSEARCH_USERNAME key: ELASTICSEARCH_USERNAME
- name: ELASTICSEARCH_PASSWORD - name: ELASTICSEARCH_PASSWORD
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: {{ $esUserSecret }} name: {{ $esUserSecret }}
key: ELASTICSEARCH_PASSWORD key: ELASTICSEARCH_PASSWORD
- name: ELASTICSEARCH_ENDPOINT - name: ELASTICSEARCH_ENDPOINT
value: {{ tuple "elasticsearch" "internal" "http" . | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" }} value: {{ tuple "elasticsearch" "internal" "http" . | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" }}
volumeMounts: volumeMounts:
- name: fluent-logging-bin - name: pod-tmp
mountPath: /tmp/helm-tests.sh mountPath: /tmp
subPath: helm-tests.sh - name: fluent-logging-bin
readOnly: true mountPath: /tmp/helm-tests.sh
subPath: helm-tests.sh
readOnly: true
volumes: volumes:
- name: fluent-logging-bin - name: pod-tmp
configMap: emptyDir: {}
name: fluent-logging-bin - name: fluent-logging-bin
defaultMode: 0555 configMap:
name: fluent-logging-bin
defaultMode: 0555
{{- end }} {{- end }}

View File

@ -70,27 +70,31 @@ spec:
command: command:
- /tmp/gnocchi-resources-cleaner.sh - /tmp/gnocchi-resources-cleaner.sh
volumeMounts: volumeMounts:
- name: gnocchi-bin - name: pod-tmp
mountPath: /tmp/gnocchi-resources-cleaner.sh mountPath: /tmp
subPath: gnocchi-resources-cleaner.sh - name: gnocchi-bin
readOnly: true mountPath: /tmp/gnocchi-resources-cleaner.sh
- name: pod-etc-gnocchi subPath: gnocchi-resources-cleaner.sh
mountPath: /etc/gnocchi readOnly: true
- name: gnocchi-etc - name: pod-etc-gnocchi
mountPath: /etc/gnocchi/gnocchi.conf mountPath: /etc/gnocchi
subPath: gnocchi.conf - name: gnocchi-etc
readOnly: true mountPath: /etc/gnocchi/gnocchi.conf
{{ if $mounts_gnocchi_resources_cleaner.volumeMounts }}{{ toYaml $mounts_gnocchi_resources_cleaner.volumeMounts | indent 14 }}{{ end }} subPath: gnocchi.conf
readOnly: true
{{ if $mounts_gnocchi_resources_cleaner.volumeMounts }}{{ toYaml $mounts_gnocchi_resources_cleaner.volumeMounts | indent 16 }}{{ end }}
volumes: volumes:
- name: pod-etc-gnocchi - name: pod-tmp
emptyDir: {} emptyDir: {}
- name: gnocchi-etc - name: pod-etc-gnocchi
secret: emptyDir: {}
secretName: gnocchi-etc - name: gnocchi-etc
defaultMode: 0444 secret:
- name: gnocchi-bin secretName: gnocchi-etc
configMap: defaultMode: 0444
name: gnocchi-bin - name: gnocchi-bin
defaultMode: 0555 configMap:
{{ if $mounts_gnocchi_resources_cleaner.volumes }}{{ toYaml $mounts_gnocchi_resources_cleaner.volumes | indent 10 }}{{ end }} name: gnocchi-bin
defaultMode: 0555
{{ if $mounts_gnocchi_resources_cleaner.volumes }}{{ toYaml $mounts_gnocchi_resources_cleaner.volumes | indent 12 }}{{ end }}
{{- end }} {{- end }}

View File

@ -53,6 +53,8 @@ spec:
command: command:
- /tmp/ceph-keyring.sh - /tmp/ceph-keyring.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: etcceph - name: etcceph
mountPath: /etc/ceph mountPath: /etc/ceph
- name: gnocchi-bin - name: gnocchi-bin
@ -70,6 +72,8 @@ spec:
command: command:
- /tmp/gnocchi-metricd.sh - /tmp/gnocchi-metricd.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: pod-etc-gnocchi - name: pod-etc-gnocchi
mountPath: /etc/gnocchi mountPath: /etc/gnocchi
- name: gnocchi-etc - name: gnocchi-etc
@ -96,6 +100,8 @@ spec:
readOnly: true readOnly: true
{{ if $mounts_gnocchi_metricd.volumeMounts }}{{ toYaml $mounts_gnocchi_metricd.volumeMounts | indent 12 }}{{ end }} {{ if $mounts_gnocchi_metricd.volumeMounts }}{{ toYaml $mounts_gnocchi_metricd.volumeMounts | indent 12 }}{{ end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: pod-etc-gnocchi - name: pod-etc-gnocchi
emptyDir: {} emptyDir: {}
- name: gnocchi-etc - name: gnocchi-etc

View File

@ -52,6 +52,8 @@ spec:
command: command:
- /tmp/ceph-keyring.sh - /tmp/ceph-keyring.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: etcceph - name: etcceph
mountPath: /etc/ceph mountPath: /etc/ceph
- name: gnocchi-bin - name: gnocchi-bin
@ -72,6 +74,8 @@ spec:
- name: gn-stats - name: gn-stats
containerPort: {{ tuple "metric_statsd" "internal" "statsd" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} containerPort: {{ tuple "metric_statsd" "internal" "statsd" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: pod-etc-gnocchi - name: pod-etc-gnocchi
mountPath: /etc/gnocchi mountPath: /etc/gnocchi
- name: gnocchi-etc - name: gnocchi-etc
@ -102,6 +106,8 @@ spec:
readOnly: true readOnly: true
{{ if $mounts_gnocchi_statsd.volumeMounts }}{{ toYaml $mounts_gnocchi_statsd.volumeMounts | indent 12 }}{{ end }} {{ if $mounts_gnocchi_statsd.volumeMounts }}{{ toYaml $mounts_gnocchi_statsd.volumeMounts | indent 12 }}{{ end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: pod-etc-gnocchi - name: pod-etc-gnocchi
emptyDir: {} emptyDir: {}
- name: gnocchi-etc - name: gnocchi-etc

View File

@ -57,6 +57,8 @@ spec:
command: command:
- /tmp/ceph-keyring.sh - /tmp/ceph-keyring.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: etcceph - name: etcceph
mountPath: /etc/ceph mountPath: /etc/ceph
- name: gnocchi-bin - name: gnocchi-bin
@ -87,6 +89,8 @@ spec:
tcpSocket: tcpSocket:
port: {{ tuple "metric" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} port: {{ tuple "metric" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: pod-etc-gnocchi - name: pod-etc-gnocchi
mountPath: /etc/gnocchi mountPath: /etc/gnocchi
- name: gnocchi-etc - name: gnocchi-etc
@ -121,6 +125,8 @@ spec:
readOnly: true readOnly: true
{{ if $mounts_gnocchi_api.volumeMounts }}{{ toYaml $mounts_gnocchi_api.volumeMounts | indent 12 }}{{ end }} {{ if $mounts_gnocchi_api.volumeMounts }}{{ toYaml $mounts_gnocchi_api.volumeMounts | indent 12 }}{{ end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: pod-etc-gnocchi - name: pod-etc-gnocchi
emptyDir: {} emptyDir: {}
- name: gnocchi-etc - name: gnocchi-etc

View File

@ -79,11 +79,15 @@ spec:
command: command:
- /tmp/clean-secrets.sh - /tmp/clean-secrets.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: gnocchi-bin - name: gnocchi-bin
mountPath: /tmp/clean-secrets.sh mountPath: /tmp/clean-secrets.sh
subPath: clean-secrets.sh subPath: clean-secrets.sh
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: gnocchi-bin - name: gnocchi-bin
configMap: configMap:
name: gnocchi-bin name: gnocchi-bin

View File

@ -55,6 +55,8 @@ spec:
command: command:
- /tmp/db-init.sh - /tmp/db-init.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: gnocchi-etc - name: gnocchi-etc
mountPath: /etc/gnocchi/gnocchi.conf mountPath: /etc/gnocchi/gnocchi.conf
subPath: gnocchi.conf subPath: gnocchi.conf
@ -65,6 +67,8 @@ spec:
subPath: db-init.sh subPath: db-init.sh
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: gnocchi-etc - name: gnocchi-etc
secret: secret:
secretName: gnocchi-etc secretName: gnocchi-etc

View File

@ -41,6 +41,8 @@ spec:
command: command:
- /tmp/ceph-keyring.sh - /tmp/ceph-keyring.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: etcceph - name: etcceph
mountPath: /etc/ceph mountPath: /etc/ceph
- name: gnocchi-bin - name: gnocchi-bin
@ -58,6 +60,8 @@ spec:
command: command:
- /tmp/db-sync.sh - /tmp/db-sync.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: gnocchi-etc - name: gnocchi-etc
mountPath: /etc/gnocchi/gnocchi.conf mountPath: /etc/gnocchi/gnocchi.conf
subPath: gnocchi.conf subPath: gnocchi.conf
@ -75,6 +79,8 @@ spec:
subPath: key subPath: key
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: gnocchi-etc - name: gnocchi-etc
secret: secret:
secretName: gnocchi-etc secretName: gnocchi-etc

View File

@ -71,6 +71,8 @@ spec:
command: command:
- /tmp/ceph-admin-keyring.sh - /tmp/ceph-admin-keyring.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: etcceph - name: etcceph
mountPath: /etc/ceph mountPath: /etc/ceph
- name: gnocchi-bin - name: gnocchi-bin
@ -101,6 +103,8 @@ spec:
command: command:
- /tmp/storage-init.sh - /tmp/storage-init.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: gnocchi-bin - name: gnocchi-bin
mountPath: /tmp/storage-init.sh mountPath: /tmp/storage-init.sh
subPath: storage-init.sh subPath: storage-init.sh
@ -116,6 +120,8 @@ spec:
subPath: key subPath: key
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: gnocchi-bin - name: gnocchi-bin
configMap: configMap:
name: gnocchi-bin name: gnocchi-bin

View File

@ -59,6 +59,8 @@ spec:
command: command:
- /tmp/gnocchi-test.sh - /tmp/gnocchi-test.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: gnocchi-etc - name: gnocchi-etc
mountPath: /etc/gnocchi/gnocchi.conf mountPath: /etc/gnocchi/gnocchi.conf
subPath: gnocchi.conf subPath: gnocchi.conf
@ -69,6 +71,8 @@ spec:
readOnly: true readOnly: true
{{ if $mounts_gnocchi_tests.volumeMounts }}{{ toYaml $mounts_gnocchi_tests.volumeMounts | indent 8 }}{{ end }} {{ if $mounts_gnocchi_tests.volumeMounts }}{{ toYaml $mounts_gnocchi_tests.volumeMounts | indent 8 }}{{ end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: gnocchi-etc - name: gnocchi-etc
secret: secret:
secretName: gnocchi-etc secretName: gnocchi-etc

View File

@ -82,6 +82,8 @@ spec:
- name: PROMETHEUS_URL - name: PROMETHEUS_URL
value: {{ tuple "monitoring" "internal" "api" $envAll | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" }} value: {{ tuple "monitoring" "internal" "api" $envAll | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" }}
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: pod-etc-grafana - name: pod-etc-grafana
mountPath: /etc/grafana mountPath: /etc/grafana
- name: pod-provisioning-grafana - name: pod-provisioning-grafana
@ -111,6 +113,8 @@ spec:
{{- end }} {{- end }}
{{ if $mounts_grafana.volumeMounts }}{{ toYaml $mounts_grafana.volumeMounts | indent 12 }}{{ end }} {{ if $mounts_grafana.volumeMounts }}{{ toYaml $mounts_grafana.volumeMounts | indent 12 }}{{ end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: pod-etc-grafana - name: pod-etc-grafana
emptyDir: {} emptyDir: {}
- name: pod-provisioning-grafana - name: pod-provisioning-grafana

View File

@ -56,11 +56,15 @@ spec:
command: command:
- /tmp/db-init.py - /tmp/db-init.py
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: grafana-bin - name: grafana-bin
mountPath: /tmp/db-init.py mountPath: /tmp/db-init.py
subPath: db-init.py subPath: db-init.py
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: grafana-bin - name: grafana-bin
configMap: configMap:
name: grafana-bin name: grafana-bin

View File

@ -56,11 +56,15 @@ spec:
command: command:
- /tmp/db-init.py - /tmp/db-init.py
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: grafana-bin - name: grafana-bin
mountPath: /tmp/db-init.py mountPath: /tmp/db-init.py
subPath: db-init.py subPath: db-init.py
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: grafana-bin - name: grafana-bin
configMap: configMap:
name: grafana-bin name: grafana-bin

View File

@ -51,11 +51,15 @@ spec:
command: command:
- /tmp/db-session-sync.py - /tmp/db-session-sync.py
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: grafana-bin - name: grafana-bin
mountPath: /tmp/db-session-sync.py mountPath: /tmp/db-session-sync.py
subPath: db-session-sync.py subPath: db-session-sync.py
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: grafana-bin - name: grafana-bin
configMap: configMap:
name: grafana-bin name: grafana-bin

View File

@ -58,6 +58,8 @@ spec:
name: grafana-admin-creds name: grafana-admin-creds
key: GRAFANA_ADMIN_PASSWORD key: GRAFANA_ADMIN_PASSWORD
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: grafana-etc - name: grafana-etc
mountPath: /etc/grafana/grafana.ini mountPath: /etc/grafana/grafana.ini
subPath: grafana.ini subPath: grafana.ini
@ -66,6 +68,8 @@ spec:
subPath: set-admin-password.sh subPath: set-admin-password.sh
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: pod-etc-grafana - name: pod-etc-grafana
emptyDir: {} emptyDir: {}
- name: grafana-bin - name: grafana-bin

View File

@ -59,11 +59,15 @@ spec:
- name: GRAFANA_ENDPOINT - name: GRAFANA_ENDPOINT
value: {{ tuple "grafana" "internal" "grafana" . | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" }} value: {{ tuple "grafana" "internal" "grafana" . | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" }}
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: grafana-bin - name: grafana-bin
mountPath: /tmp/helm-tests.sh mountPath: /tmp/helm-tests.sh
subPath: helm-tests.sh subPath: helm-tests.sh
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: grafana-bin - name: grafana-bin
configMap: configMap:
name: grafana-bin name: grafana-bin

View File

@ -67,6 +67,8 @@ spec:
command: command:
- /tmp/bootstrap.sh - /tmp/bootstrap.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: bootstrap-sh - name: bootstrap-sh
mountPath: /tmp/bootstrap.sh mountPath: /tmp/bootstrap.sh
subPath: bootstrap.sh subPath: bootstrap.sh
@ -85,6 +87,8 @@ spec:
{{ $podVolMounts | toYaml | indent 12 }} {{ $podVolMounts | toYaml | indent 12 }}
{{- end }} {{- end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: bootstrap-sh - name: bootstrap-sh
configMap: configMap:
name: {{ $configMapBin | quote }} name: {{ $configMapBin | quote }}

View File

@ -88,6 +88,8 @@ spec:
command: command:
- /tmp/db-drop.py - /tmp/db-drop.py
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: db-drop-sh - name: db-drop-sh
mountPath: /tmp/db-drop.py mountPath: /tmp/db-drop.py
subPath: db-drop.py subPath: db-drop.py
@ -106,6 +108,8 @@ spec:
{{- end }} {{- end }}
{{- end }} {{- end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: db-drop-sh - name: db-drop-sh
configMap: configMap:
name: {{ $configMapBin | quote }} name: {{ $configMapBin | quote }}

View File

@ -85,6 +85,8 @@ spec:
command: command:
- /tmp/db-init.py - /tmp/db-init.py
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: db-init-sh - name: db-init-sh
mountPath: /tmp/db-init.py mountPath: /tmp/db-init.py
subPath: db-init.py subPath: db-init.py
@ -103,6 +105,8 @@ spec:
{{- end }} {{- end }}
{{- end }} {{- end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: db-init-sh - name: db-init-sh
configMap: configMap:
name: {{ $configMapBin | quote }} name: {{ $configMapBin | quote }}

View File

@ -63,6 +63,8 @@ spec:
command: command:
- /tmp/db-sync.sh - /tmp/db-sync.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: db-sync-sh - name: db-sync-sh
mountPath: /tmp/db-sync.sh mountPath: /tmp/db-sync.sh
subPath: db-sync.sh subPath: db-sync.sh
@ -81,6 +83,8 @@ spec:
{{ $podVolMounts | toYaml | indent 12 }} {{ $podVolMounts | toYaml | indent 12 }}
{{- end }} {{- end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: db-sync-sh - name: db-sync-sh
configMap: configMap:
name: {{ $configMapBin | quote }} name: {{ $configMapBin | quote }}

View File

@ -56,6 +56,8 @@ spec:
command: command:
- /tmp/ks-endpoints.sh - /tmp/ks-endpoints.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ks-endpoints-sh - name: ks-endpoints-sh
mountPath: /tmp/ks-endpoints.sh mountPath: /tmp/ks-endpoints.sh
subPath: ks-endpoints.sh subPath: ks-endpoints.sh
@ -75,6 +77,8 @@ spec:
{{- end }} {{- end }}
{{- end }} {{- end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ks-endpoints-sh - name: ks-endpoints-sh
configMap: configMap:
name: {{ $configMapBin | quote }} name: {{ $configMapBin | quote }}

View File

@ -55,6 +55,8 @@ spec:
command: command:
- /tmp/ks-service.sh - /tmp/ks-service.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ks-service-sh - name: ks-service-sh
mountPath: /tmp/ks-service.sh mountPath: /tmp/ks-service.sh
subPath: ks-service.sh subPath: ks-service.sh
@ -69,6 +71,8 @@ spec:
value: {{ $osServiceType | quote }} value: {{ $osServiceType | quote }}
{{- end }} {{- end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ks-service-sh - name: ks-service-sh
configMap: configMap:
name: {{ $configMapBin | quote }} name: {{ $configMapBin | quote }}

View File

@ -54,6 +54,8 @@ spec:
command: command:
- /tmp/ks-user.sh - /tmp/ks-user.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ks-user-sh - name: ks-user-sh
mountPath: /tmp/ks-user.sh mountPath: /tmp/ks-user.sh
subPath: ks-user.sh subPath: ks-user.sh
@ -75,6 +77,8 @@ spec:
value: {{ $serviceOsRoles | quote }} value: {{ $serviceOsRoles | quote }}
{{- end }} {{- end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ks-user-sh - name: ks-user-sh
configMap: configMap:
name: {{ $configMapBin | quote }} name: {{ $configMapBin | quote }}

View File

@ -49,6 +49,8 @@ spec:
command: command:
- /tmp/rabbit-init.sh - /tmp/rabbit-init.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: rabbit-init-sh - name: rabbit-init-sh
mountPath: /tmp/rabbit-init.sh mountPath: /tmp/rabbit-init.sh
subPath: rabbit-init.sh subPath: rabbit-init.sh
@ -69,6 +71,8 @@ spec:
value: {{ toJson $envAll.Values.conf.rabbitmq | quote }} value: {{ toJson $envAll.Values.conf.rabbitmq | quote }}
{{- end }} {{- end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: rabbit-init-sh - name: rabbit-init-sh
configMap: configMap:
name: {{ $configMapBin | quote }} name: {{ $configMapBin | quote }}

View File

@ -71,6 +71,8 @@ spec:
- name: RGW_PROTO - name: RGW_PROTO
value: {{ tuple "ceph_object_store" "internal" "api" $envAll | include "helm-toolkit.endpoints.keystone_endpoint_scheme_lookup" }} value: {{ tuple "ceph_object_store" "internal" "api" $envAll | include "helm-toolkit.endpoints.keystone_endpoint_scheme_lookup" }}
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: s3-bucket-sh - name: s3-bucket-sh
mountPath: /tmp/create-s3-bucket.sh mountPath: /tmp/create-s3-bucket.sh
subPath: create-s3-bucket.sh subPath: create-s3-bucket.sh
@ -88,6 +90,8 @@ spec:
readOnly: true readOnly: true
{{ end }} {{ end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: s3-bucket-sh - name: s3-bucket-sh
configMap: configMap:
name: {{ $configMapBin | quote }} name: {{ $configMapBin | quote }}

View File

@ -55,6 +55,8 @@ spec:
command: command:
- /tmp/ceph-admin-keyring.sh - /tmp/ceph-admin-keyring.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: etcceph - name: etcceph
mountPath: /etc/ceph mountPath: /etc/ceph
- name: ceph-keyring-sh - name: ceph-keyring-sh
@ -84,6 +86,8 @@ spec:
- name: RGW_HOST - name: RGW_HOST
value: {{ tuple "ceph_object_store" "internal" "api" $envAll | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" }} value: {{ tuple "ceph_object_store" "internal" "api" $envAll | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" }}
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: create-s3-user-sh - name: create-s3-user-sh
mountPath: /tmp/create-s3-user.sh mountPath: /tmp/create-s3-user.sh
subPath: create-s3-user.sh subPath: create-s3-user.sh
@ -101,6 +105,8 @@ spec:
readOnly: true readOnly: true
{{ end }} {{ end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: create-s3-user-sh - name: create-s3-user-sh
configMap: configMap:
name: {{ $configMapBin | quote }} name: {{ $configMapBin | quote }}

View File

@ -60,6 +60,8 @@ spec:
command: command:
- /tmp/image-repo-sync.sh - /tmp/image-repo-sync.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: bootstrap-sh - name: bootstrap-sh
mountPath: /tmp/image-repo-sync.sh mountPath: /tmp/image-repo-sync.sh
subPath: image-repo-sync.sh subPath: image-repo-sync.sh
@ -70,6 +72,8 @@ spec:
{{ $podVolMounts | toYaml | indent 12 }} {{ $podVolMounts | toYaml | indent 12 }}
{{- end }} {{- end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: bootstrap-sh - name: bootstrap-sh
configMap: configMap:
name: {{ $configMapBin | quote }} name: {{ $configMapBin | quote }}

View File

@ -75,13 +75,17 @@ spec:
- /tmp/ingress-error-pages.sh - /tmp/ingress-error-pages.sh
- stop - stop
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ingress-bin - name: ingress-bin
mountPath: /tmp/ingress-error-pages.sh mountPath: /tmp/ingress-error-pages.sh
subPath: ingress-error-pages.sh subPath: ingress-error-pages.sh
readOnly: true readOnly: true
volumes: volumes:
- name: ingress-bin - name: pod-tmp
configMap: emptyDir: {}
name: ingress-bin - name: ingress-bin
defaultMode: 0555 configMap:
name: ingress-bin
defaultMode: 0555
{{- end }} {{- end }}

View File

@ -208,6 +208,8 @@ spec:
- /tmp/ingress-vip.sh - /tmp/ingress-vip.sh
- kernel_modules - kernel_modules
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ingress-bin - name: ingress-bin
mountPath: /tmp/ingress-vip.sh mountPath: /tmp/ingress-vip.sh
subPath: ingress-vip.sh subPath: ingress-vip.sh
@ -228,6 +230,8 @@ spec:
- /tmp/ingress-vip.sh - /tmp/ingress-vip.sh
- start - start
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ingress-bin - name: ingress-bin
mountPath: /tmp/ingress-vip.sh mountPath: /tmp/ingress-vip.sh
subPath: ingress-vip.sh subPath: ingress-vip.sh
@ -304,6 +308,8 @@ spec:
- /tmp/ingress-controller.sh - /tmp/ingress-controller.sh
- stop - stop
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ingress-bin - name: ingress-bin
mountPath: /tmp/ingress-controller.sh mountPath: /tmp/ingress-controller.sh
subPath: ingress-controller.sh subPath: ingress-controller.sh
@ -329,6 +335,8 @@ spec:
- /tmp/ingress-vip.sh - /tmp/ingress-vip.sh
- stop - stop
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ingress-bin - name: ingress-bin
mountPath: /tmp/ingress-vip.sh mountPath: /tmp/ingress-vip.sh
subPath: ingress-vip.sh subPath: ingress-vip.sh
@ -345,6 +353,8 @@ spec:
{{- end }} {{- end }}
{{- end }} {{- end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: ingress-bin - name: ingress-bin
configMap: configMap:
name: ingress-bin name: ingress-bin

View File

@ -79,6 +79,8 @@ spec:
name: {{ $esUserSecret }} name: {{ $esUserSecret }}
key: ELASTICSEARCH_PASSWORD key: ELASTICSEARCH_PASSWORD
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: kibana-bin - name: kibana-bin
mountPath: /tmp/apache.sh mountPath: /tmp/apache.sh
subPath: apache.sh subPath: apache.sh
@ -110,6 +112,8 @@ spec:
name: {{ $esUserSecret }} name: {{ $esUserSecret }}
key: ELASTICSEARCH_PASSWORD key: ELASTICSEARCH_PASSWORD
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: kibana-bin - name: kibana-bin
mountPath: /tmp/kibana.sh mountPath: /tmp/kibana.sh
subPath: kibana.sh subPath: kibana.sh
@ -121,6 +125,8 @@ spec:
subPath: kibana.yml subPath: kibana.yml
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: pod-etc-kibana - name: pod-etc-kibana
emptyDir: {} emptyDir: {}
- name: kibana-bin - name: kibana-bin

View File

@ -56,11 +56,15 @@ spec:
command: command:
- /tmp/create_kibana_index_patterns.sh - /tmp/create_kibana_index_patterns.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: kibana-bin - name: kibana-bin
mountPath: /tmp/create_kibana_index_patterns.sh mountPath: /tmp/create_kibana_index_patterns.sh
subPath: create_kibana_index_patterns.sh subPath: create_kibana_index_patterns.sh
readOnly: false readOnly: false
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: kibana-bin - name: kibana-bin
configMap: configMap:
name: kibana-bin name: kibana-bin

View File

@ -105,6 +105,8 @@ spec:
terminationMessagePath: /dev/termination-log terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File terminationMessagePolicy: File
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- mountPath: /kube-dns-config - mountPath: /kube-dns-config
name: kube-dns-config name: kube-dns-config
- name: dnsmasq - name: dnsmasq
@ -145,6 +147,8 @@ spec:
terminationMessagePath: /dev/termination-log terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File terminationMessagePolicy: File
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- mountPath: /etc/k8s/dns/dnsmasq-nanny - mountPath: /etc/k8s/dns/dnsmasq-nanny
name: kube-dns-config name: kube-dns-config
- name: sidecar - name: sidecar
@ -187,9 +191,11 @@ spec:
- effect: NoSchedule - effect: NoSchedule
key: node-role.kubernetes.io/master key: node-role.kubernetes.io/master
volumes: volumes:
- configMap: - name: pod-tmp
defaultMode: 420 emptyDir: {}
name: kube-dns - configMap:
optional: true defaultMode: 420
name: kube-dns-config name: kube-dns
optional: true
name: kube-dns-config
{{- end }} {{- end }}

View File

@ -57,6 +57,8 @@ spec:
- name: k8sksauth-pub - name: k8sksauth-pub
containerPort: {{ tuple "kubernetes_keystone_webhook" "internal" "api" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" }} containerPort: {{ tuple "kubernetes_keystone_webhook" "internal" "api" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: etc-kubernetes-keystone-webhook - name: etc-kubernetes-keystone-webhook
mountPath: /etc/kubernetes-keystone-webhook mountPath: /etc/kubernetes-keystone-webhook
- name: key-kubernetes-keystone-webhook - name: key-kubernetes-keystone-webhook
@ -76,6 +78,8 @@ spec:
subPath: start.sh subPath: start.sh
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: etc-kubernetes-keystone-webhook - name: etc-kubernetes-keystone-webhook
emptyDir: {} emptyDir: {}
- name: key-kubernetes-keystone-webhook - name: key-kubernetes-keystone-webhook

View File

@ -49,12 +49,16 @@ spec:
command: command:
- /tmp/kubernetes-keystone-webhook-test.sh - /tmp/kubernetes-keystone-webhook-test.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: kubernetes-keystone-webhook-bin - name: kubernetes-keystone-webhook-bin
mountPath: /tmp/kubernetes-keystone-webhook-test.sh mountPath: /tmp/kubernetes-keystone-webhook-test.sh
subPath: kubernetes-keystone-webhook-test.sh subPath: kubernetes-keystone-webhook-test.sh
readOnly: true readOnly: true
{{ if $mounts_kubernetes_keystone_webhook_tests.volumeMounts }}{{ toYaml $mounts_kubernetes_keystone_webhook_tests.volumeMounts | indent 8 }}{{ end }} {{ if $mounts_kubernetes_keystone_webhook_tests.volumeMounts }}{{ toYaml $mounts_kubernetes_keystone_webhook_tests.volumeMounts | indent 8 }}{{ end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: kubernetes-keystone-webhook-bin - name: kubernetes-keystone-webhook-bin
configMap: configMap:
name: kubernetes-keystone-webhook-bin name: kubernetes-keystone-webhook-bin

View File

@ -62,12 +62,16 @@ spec:
ports: ports:
- containerPort: {{ tuple "ldap" "internal" "ldap" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} - containerPort: {{ tuple "ldap" "internal" "ldap" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ldap-data - name: ldap-data
mountPath: /var/lib/ldap mountPath: /var/lib/ldap
- name: ldap-config - name: ldap-config
mountPath: /etc/ldap/slapd.d mountPath: /etc/ldap/slapd.d
{{- if not .Values.storage.pvc.enabled }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
{{- if not .Values.storage.pvc.enabled }}
- name: ldap-data - name: ldap-data
hostPath: hostPath:
path: {{ .Values.storage.host.data_path }} path: {{ .Values.storage.host.data_path }}
@ -76,21 +80,21 @@ spec:
path: {{ .Values.storage.host.config_path }} path: {{ .Values.storage.host.config_path }}
{{- else }} {{- else }}
volumeClaimTemplates: volumeClaimTemplates:
- metadata: - metadata:
name: ldap-data name: ldap-data
spec: spec:
accessModes: [ "ReadWriteOnce" ] accessModes: [ "ReadWriteOnce" ]
storageClassName: {{ .Values.storage.pvc.class_name }} storageClassName: {{ .Values.storage.pvc.class_name }}
resources: resources:
requests: requests:
storage: {{ .Values.storage.pvc.size }} storage: {{ .Values.storage.pvc.size }}
- metadata: - metadata:
name: ldap-config name: ldap-config
spec: spec:
accessModes: [ "ReadWriteOnce" ] accessModes: [ "ReadWriteOnce" ]
storageClassName: {{ .Values.storage.pvc.class_name }} storageClassName: {{ .Values.storage.pvc.class_name }}
resources: resources:
requests: requests:
storage: {{ .Values.storage.pvc.size }} storage: {{ .Values.storage.pvc.size }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -67,6 +67,8 @@ spec:
command: command:
- /tmp/ceph-admin-keyring.sh - /tmp/ceph-admin-keyring.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: etcceph - name: etcceph
mountPath: /etc/ceph mountPath: /etc/ceph
- name: libvirt-bin - name: libvirt-bin
@ -96,6 +98,8 @@ spec:
command: command:
- /tmp/ceph-keyring.sh - /tmp/ceph-keyring.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: etcceph - name: etcceph
mountPath: /etc/ceph mountPath: /etc/ceph
- name: libvirt-bin - name: libvirt-bin
@ -148,6 +152,8 @@ spec:
- |- - |-
kill $(cat /var/run/libvirtd.pid) kill $(cat /var/run/libvirtd.pid)
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: libvirt-bin - name: libvirt-bin
mountPath: /tmp/libvirt.sh mountPath: /tmp/libvirt.sh
subPath: libvirt.sh subPath: libvirt.sh
@ -201,6 +207,8 @@ spec:
{{- end }} {{- end }}
{{ if $mounts_libvirt.volumeMounts }}{{ toYaml $mounts_libvirt.volumeMounts | indent 12 }}{{ end }} {{ if $mounts_libvirt.volumeMounts }}{{ toYaml $mounts_libvirt.volumeMounts | indent 12 }}{{ end }}
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: libvirt-bin - name: libvirt-bin
configMap: configMap:
name: libvirt-bin name: libvirt-bin

View File

@ -48,53 +48,57 @@ spec:
initContainers: initContainers:
{{ tuple $envAll "mariadb_backup" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 10 }} {{ tuple $envAll "mariadb_backup" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 10 }}
containers: containers:
- command: - name: mariadb-backup
- /tmp/backup_mariadb.sh command:
env: - /tmp/backup_mariadb.sh
- name: MARIADB_BACKUP_BASE_DIR env:
value: {{ .Values.conf.backup.base_path | quote }} - name: MARIADB_BACKUP_BASE_DIR
- name: MYSQL_BACKUP_MYSQLDUMP_OPTIONS value: {{ .Values.conf.backup.base_path | quote }}
value: {{ .Values.conf.backup.mysqldump_options | quote }} - name: MYSQL_BACKUP_MYSQLDUMP_OPTIONS
- name: MARIADB_BACKUP_DAYS_TO_KEEP value: {{ .Values.conf.backup.mysqldump_options | quote }}
value: {{ .Values.conf.backup.days_of_backup_to_keep | quote }} - name: MARIADB_BACKUP_DAYS_TO_KEEP
- name: MARIADB_POD_NAMESPACE value: {{ .Values.conf.backup.days_of_backup_to_keep | quote }}
valueFrom: - name: MARIADB_POD_NAMESPACE
fieldRef: valueFrom:
fieldPath: metadata.namespace fieldRef:
{{ tuple $envAll "mariadb_backup" | include "helm-toolkit.snippets.image" | indent 12 }} fieldPath: metadata.namespace
{{ tuple $envAll $envAll.Values.pod.resources.jobs.mariadb_backup | include "helm-toolkit.snippets.kubernetes_resources" | indent 12 }} {{ tuple $envAll "mariadb_backup" | include "helm-toolkit.snippets.image" | indent 14 }}
name: mariadb-backup {{ tuple $envAll $envAll.Values.pod.resources.jobs.mariadb_backup | include "helm-toolkit.snippets.kubernetes_resources" | indent 14 }}
volumeMounts: volumeMounts:
- mountPath: /tmp/backup_mariadb.sh - name: pod-tmp
name: mariadb-bin mountPath: /tmp
readOnly: true - mountPath: /tmp/backup_mariadb.sh
subPath: backup_mariadb.sh name: mariadb-bin
- mountPath: {{ .Values.conf.backup.base_path }} readOnly: true
name: mariadb-backup-dir subPath: backup_mariadb.sh
- name: mariadb-secrets - mountPath: {{ .Values.conf.backup.base_path }}
mountPath: /etc/mysql/admin_user.cnf name: mariadb-backup-dir
subPath: admin_user.cnf - name: mariadb-secrets
readOnly: true mountPath: /etc/mysql/admin_user.cnf
subPath: admin_user.cnf
readOnly: true
restartPolicy: OnFailure restartPolicy: OnFailure
serviceAccount: {{ $serviceAccountName }} serviceAccount: {{ $serviceAccountName }}
serviceAccountName: {{ $serviceAccountName }} serviceAccountName: {{ $serviceAccountName }}
volumes: volumes:
- name: mariadb-secrets - name: pod-tmp
secret: emptyDir: {}
secretName: mariadb-secrets - name: mariadb-secrets
defaultMode: 384 secret:
- configMap: secretName: mariadb-secrets
defaultMode: 365 defaultMode: 384
- configMap:
defaultMode: 365
name: mariadb-bin
name: mariadb-bin name: mariadb-bin
name: mariadb-bin {{- if and .Values.volume.backup.enabled .Values.manifests.pvc_backup }}
{{- if and .Values.volume.backup.enabled .Values.manifests.pvc_backup }} - name: mariadb-backup-dir
- name: mariadb-backup-dir persistentVolumeClaim:
persistentVolumeClaim: claimName: mariadb-backup-data
claimName: mariadb-backup-data {{- else }}
{{- else }} - hostPath:
- hostPath: path: {{ .Values.conf.backup.base_path }}
path: {{ .Values.conf.backup.base_path }} type: DirectoryOrCreate
type: DirectoryOrCreate name: mariadb-backup-dir
name: mariadb-backup-dir {{- end }}
{{- end }}
{{- end }} {{- end }}

View File

@ -77,13 +77,17 @@ spec:
- /tmp/mariadb-ingress-error-pages.sh - /tmp/mariadb-ingress-error-pages.sh
- stop - stop
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: ingress-bin - name: ingress-bin
mountPath: /tmp/mariadb-ingress-error-pages.sh mountPath: /tmp/mariadb-ingress-error-pages.sh
subPath: mariadb-ingress-error-pages.sh subPath: mariadb-ingress-error-pages.sh
readOnly: true readOnly: true
volumes: volumes:
- name: ingress-bin - name: pod-tmp
configMap: emptyDir: {}
name: mariadb-bin - name: ingress-bin
defaultMode: 0555 configMap:
name: mariadb-bin
defaultMode: 0555
{{- end }} {{- end }}

View File

@ -188,6 +188,8 @@ spec:
- /tmp/mariadb-ingress-controller.sh - /tmp/mariadb-ingress-controller.sh
- stop - stop
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: mariadb-bin - name: mariadb-bin
mountPath: /tmp/mariadb-ingress-controller.sh mountPath: /tmp/mariadb-ingress-controller.sh
subPath: mariadb-ingress-controller.sh subPath: mariadb-ingress-controller.sh
@ -197,6 +199,8 @@ spec:
subPath: nginx.tmpl subPath: nginx.tmpl
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: mariadb-bin - name: mariadb-bin
configMap: configMap:
name: mariadb-bin name: mariadb-bin

View File

@ -82,6 +82,8 @@ spec:
- name: TELEMETRY_PATH - name: TELEMETRY_PATH
value: {{ tuple "prometheus_mysql_exporter" "internal" "metrics" . | include "helm-toolkit.endpoints.keystone_endpoint_path_lookup" | quote }} value: {{ tuple "prometheus_mysql_exporter" "internal" "metrics" . | include "helm-toolkit.endpoints.keystone_endpoint_path_lookup" | quote }}
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: mysql-exporter-secrets - name: mysql-exporter-secrets
mountPath: /etc/mysql/mysql_user.cnf mountPath: /etc/mysql/mysql_user.cnf
subPath: mysql_user.cnf subPath: mysql_user.cnf
@ -91,6 +93,8 @@ spec:
subPath: mysqld-exporter.sh subPath: mysqld-exporter.sh
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: mysql-exporter-secrets - name: mysql-exporter-secrets
secret: secret:
secretName: mysql-exporter-secrets secretName: mysql-exporter-secrets

View File

@ -59,6 +59,8 @@ spec:
name: mysql-exporter-secrets name: mysql-exporter-secrets
key: EXPORTER_PASSWORD key: EXPORTER_PASSWORD
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: mysql-exporter-bin - name: mysql-exporter-bin
mountPath: /tmp/create-mysql-user.sh mountPath: /tmp/create-mysql-user.sh
subPath: create-mysql-user.sh subPath: create-mysql-user.sh
@ -68,6 +70,8 @@ spec:
subPath: admin_user.cnf subPath: admin_user.cnf
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: mysql-exporter-bin - name: mysql-exporter-bin
configMap: configMap:
name: mysql-exporter-bin name: mysql-exporter-bin

View File

@ -46,7 +46,7 @@ spec:
command: command:
- /tmp/test.sh - /tmp/test.sh
volumeMounts: volumeMounts:
- name: tmp - name: pod-tmp
mountPath: /tmp mountPath: /tmp
- name: mariadb-bin - name: mariadb-bin
mountPath: /tmp/test.sh mountPath: /tmp/test.sh
@ -63,7 +63,7 @@ spec:
{{ end }} {{ end }}
readOnly: true readOnly: true
volumes: volumes:
- name: tmp - name: pod-tmp
emptyDir: {} emptyDir: {}
- name: mariadb-bin - name: mariadb-bin
configMap: configMap:

View File

@ -115,6 +115,8 @@ spec:
- "mysql:mysql" - "mysql:mysql"
- /var/lib/mysql - /var/lib/mysql
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: mysql-data - name: mysql-data
mountPath: /var/lib/mysql mountPath: /var/lib/mysql
{{- end }} {{- end }}
@ -176,7 +178,7 @@ spec:
command: command:
- /tmp/readiness.sh - /tmp/readiness.sh
volumeMounts: volumeMounts:
- name: tmp - name: pod-tmp
mountPath: /tmp mountPath: /tmp
- name: var-run - name: var-run
mountPath: /var/run/mysqld mountPath: /var/run/mysqld
@ -217,9 +219,9 @@ spec:
- name: mysql-data - name: mysql-data
mountPath: /var/lib/mysql mountPath: /var/lib/mysql
volumes: volumes:
- name: mycnfd - name: pod-tmp
emptyDir: {} emptyDir: {}
- name: tmp - name: mycnfd
emptyDir: {} emptyDir: {}
- name: var-run - name: var-run
emptyDir: {} emptyDir: {}

View File

@ -76,11 +76,15 @@ spec:
tcpSocket: tcpSocket:
port: {{ tuple "oslo_cache" "internal" "memcache" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} port: {{ tuple "oslo_cache" "internal" "memcache" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: memcached-bin - name: memcached-bin
mountPath: /tmp/memcached.sh mountPath: /tmp/memcached.sh
subPath: memcached.sh subPath: memcached.sh
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: memcached-bin - name: memcached-bin
configMap: configMap:
name: {{ $configMapBinName | quote }} name: {{ $configMapBinName | quote }}

View File

@ -64,11 +64,15 @@ spec:
- name: MEMCACHED_HOST - name: MEMCACHED_HOST
value: {{ tuple "oslo_cache" "internal" "memcache" . | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" }} value: {{ tuple "oslo_cache" "internal" "memcache" . | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" }}
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: memcached-exporter-bin - name: memcached-exporter-bin
mountPath: /tmp/memcached-exporter.sh mountPath: /tmp/memcached-exporter.sh
subPath: memcached-exporter.sh subPath: memcached-exporter.sh
readOnly: true readOnly: true
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: memcached-exporter-bin - name: memcached-exporter-bin
configMap: configMap:
name: {{ $configMapBinName | quote }} name: {{ $configMapBinName | quote }}

View File

@ -61,6 +61,8 @@ spec:
- "mongodb:" - "mongodb:"
- {{ $envAll.Values.volume.host.host_path }} - {{ $envAll.Values.volume.host.host_path }}
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: mongodb-data - name: mongodb-data
mountPath: {{ $envAll.Values.volume.host.host_path }} mountPath: {{ $envAll.Values.volume.host.host_path }}
{{- end }} {{- end }}
@ -100,6 +102,8 @@ spec:
timeoutSeconds: 5 timeoutSeconds: 5
{{ tuple $envAll $envAll.Values.pod.resources.server | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }} {{ tuple $envAll $envAll.Values.pod.resources.server | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: mongodb-bin - name: mongodb-bin
mountPath: /tmp/start.sh mountPath: /tmp/start.sh
subPath: start.sh subPath: start.sh
@ -111,24 +115,26 @@ spec:
- name: mongodb-data - name: mongodb-data
mountPath: /data/db mountPath: /data/db
volumes: volumes:
- name: mongodb-bin - name: pod-tmp
configMap: emptyDir: {}
name: mongodb-bin - name: mongodb-bin
defaultMode: 0555 configMap:
name: mongodb-bin
defaultMode: 0555
{{- if not .Values.volume.enabled }} {{- if not .Values.volume.enabled }}
- name: mongodb-data - name: mongodb-data
hostPath: hostPath:
path: {{ .Values.volume.host_path }} path: {{ .Values.volume.host_path }}
{{- else }} {{- else }}
volumeClaimTemplates: volumeClaimTemplates:
- metadata: - metadata:
name: mongodb-data name: mongodb-data
annotations: annotations:
{{ .Values.volume.class_path }}: {{ .Values.volume.class_name }} {{ .Values.volume.class_path }}: {{ .Values.volume.class_name }}
spec: spec:
accessModes: [ "ReadWriteOnce" ] accessModes: [ "ReadWriteOnce" ]
resources: resources:
requests: requests:
storage: {{ .Values.volume.size }} storage: {{ .Values.volume.size }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -122,6 +122,8 @@ spec:
name: {{ $nagiosUserSecret }} name: {{ $nagiosUserSecret }}
key: NAGIOSADMIN_PASS key: NAGIOSADMIN_PASS
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: nagios-bin - name: nagios-bin
mountPath: /tmp/apache.sh mountPath: /tmp/apache.sh
subPath: apache.sh subPath: apache.sh
@ -174,6 +176,8 @@ spec:
name: {{ $nagiosUserSecret }} name: {{ $nagiosUserSecret }}
key: NAGIOSADMIN_PASS key: NAGIOSADMIN_PASS
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: nagios-etc - name: nagios-etc
mountPath: /opt/nagios/etc/nagios.cfg mountPath: /opt/nagios/etc/nagios.cfg
subPath: nagios.cfg subPath: nagios.cfg
@ -199,6 +203,8 @@ spec:
- name: pod-var-log - name: pod-var-log
mountPath: /opt/nagios/var/log mountPath: /opt/nagios/var/log
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: pod-var-log - name: pod-var-log
emptyDir: {} emptyDir: {}
- name: nagios-etc - name: nagios-etc

View File

@ -159,9 +159,13 @@ spec:
{{- end }} {{- end }}
- "-grace-period=10" - "-grace-period=10"
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: export-volume - name: export-volume
mountPath: /export mountPath: /export
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: export-volume - name: export-volume
{{- if eq .Values.storage.type "persistentVolumeClaim" }} {{- if eq .Values.storage.type "persistentVolumeClaim" }}
persistentVolumeClaim: persistentVolumeClaim:

View File

@ -82,6 +82,8 @@ spec:
- /tmp/openvswitch-db-server.sh - /tmp/openvswitch-db-server.sh
- stop - stop
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: openvswitch-bin - name: openvswitch-bin
mountPath: /tmp/openvswitch-db-server.sh mountPath: /tmp/openvswitch-db-server.sh
subPath: openvswitch-db-server.sh subPath: openvswitch-db-server.sh
@ -91,6 +93,8 @@ spec:
- name: run - name: run
mountPath: /run mountPath: /run
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: openvswitch-bin - name: openvswitch-bin
configMap: configMap:
name: openvswitch-bin name: openvswitch-bin

View File

@ -59,6 +59,8 @@ spec:
command: command:
- /tmp/openvswitch-vswitchd-init-modules.sh - /tmp/openvswitch-vswitchd-init-modules.sh
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: openvswitch-bin - name: openvswitch-bin
mountPath: /tmp/openvswitch-vswitchd-init-modules.sh mountPath: /tmp/openvswitch-vswitchd-init-modules.sh
subPath: openvswitch-vswitchd-init-modules.sh subPath: openvswitch-vswitchd-init-modules.sh
@ -100,6 +102,8 @@ spec:
- /tmp/openvswitch-db-server.sh - /tmp/openvswitch-db-server.sh
- stop - stop
volumeMounts: volumeMounts:
- name: pod-tmp
mountPath: /tmp
- name: openvswitch-bin - name: openvswitch-bin
mountPath: /tmp/openvswitch-vswitchd.sh mountPath: /tmp/openvswitch-vswitchd.sh
subPath: openvswitch-vswitchd.sh subPath: openvswitch-vswitchd.sh
@ -107,6 +111,8 @@ spec:
- name: run - name: run
mountPath: /run mountPath: /run
volumes: volumes:
- name: pod-tmp
emptyDir: {}
- name: openvswitch-bin - name: openvswitch-bin
configMap: configMap:
name: openvswitch-bin name: openvswitch-bin

Some files were not shown because too many files have changed in this diff Show More