зеркало из
https://github.com/iharh/notes.git
synced 2025-11-03 15:16:08 +02:00
38 строки
935 B
Plaintext
38 строки
935 B
Plaintext
StatefulSet
|
|
initContainers:
|
|
- name: bootstrap
|
|
image: busybox:<tag>
|
|
securityContext:
|
|
...
|
|
command: ['sh']
|
|
args:
|
|
- "-c"
|
|
- |
|
|
set -ex
|
|
cp /configmap/* /etc/rabbitmq
|
|
...
|
|
volumeMounts:
|
|
- name: configmap
|
|
mountPath: /configmap
|
|
- name: config
|
|
mountPath: /etc/rabbitmq
|
|
- name: {{ .Values.persistentVolume.name }}
|
|
mountPath: /var/lib/rabbitmq
|
|
|
|
|
|
volumes:
|
|
- name: definitions
|
|
secret:
|
|
secretName: ...
|
|
items:
|
|
- key: {{ .Values.definitionsSource }}
|
|
path: definitions.json
|
|
|
|
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /etc/rabbitmq
|
|
- name: definitions
|
|
mountPath: /etc/definitions
|
|
readOnly: true
|