elections: Mount the fedora-messaging volumes and config files
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
91cd0ffc24
commit
48ac98d72d
2 changed files with 35 additions and 1 deletions
|
@ -40,6 +40,18 @@ spec:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
mountPath: /opt/app-root/config/
|
mountPath: /opt/app-root/config/
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
- name: fedora-messaging-config-volume
|
||||||
|
mountPath: /etc/fedora-messaging
|
||||||
|
readOnly: true
|
||||||
|
- name: fedora-messaging-ca-volume
|
||||||
|
mountPath: /etc/pki/rabbitmq/ca
|
||||||
|
readOnly: true
|
||||||
|
- name: fedora-messaging-key-volume
|
||||||
|
mountPath: /etc/pki/rabbitmq/key
|
||||||
|
readOnly: true
|
||||||
|
- name: fedora-messaging-cert-volume
|
||||||
|
mountPath: /etc/pki/rabbitmq/cert
|
||||||
|
readOnly: true
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
|
@ -56,6 +68,18 @@ spec:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
configMap:
|
configMap:
|
||||||
name: elections-configmap
|
name: elections-configmap
|
||||||
|
- name: fedora-messaging-config-volume
|
||||||
|
configMap:
|
||||||
|
name: elections-fedora-messaging-configmap
|
||||||
|
- name: fedora-messaging-ca-volume
|
||||||
|
secret:
|
||||||
|
secretName: elections-fedora-messaging-ca
|
||||||
|
- name: fedora-messaging-key-volume
|
||||||
|
secret:
|
||||||
|
secretName: elections-fedora-messaging-key
|
||||||
|
- name: fedora-messaging-cert-volume
|
||||||
|
secret:
|
||||||
|
secretName: elections-fedora-messaging-crt
|
||||||
|
|
||||||
triggers:
|
triggers:
|
||||||
- type: ConfigChange
|
- type: ConfigChange
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{% macro load_file(filename) %}{% include filename %}{%- endmacro -%}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
|
@ -5,9 +6,18 @@ metadata:
|
||||||
name: elections-configmap
|
name: elections-configmap
|
||||||
labels:
|
labels:
|
||||||
app: elections
|
app: elections
|
||||||
{% macro load_file(filename) %}{% include filename %}{%- endmacro -%}
|
|
||||||
data:
|
data:
|
||||||
alembic.ini: |-
|
alembic.ini: |-
|
||||||
{{ load_file('alembic.ini') | indent }}
|
{{ load_file('alembic.ini') | indent }}
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: elections-fedora-messaging-configmap
|
||||||
|
labels:
|
||||||
|
app: elections
|
||||||
|
data:
|
||||||
fedora-elections.cfg: |-
|
fedora-elections.cfg: |-
|
||||||
{{ load_file('fedora-elections.cfg') | indent }}
|
{{ load_file('fedora-elections.cfg') | indent }}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue