mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
Fixes #1: Add configuration files to task pod.
This commit is contained in:
@@ -4,9 +4,9 @@ apiVersion: v1
|
|||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: '{{ meta.name }}-postgres-pass'
|
name: '{{ meta.name }}-postgres-pass'
|
||||||
namespace: {{ meta.namespace }}
|
namespace: '{{ meta.namespace }}'
|
||||||
data:
|
data:
|
||||||
password: {{ tower_postgres_pass | b64encode }}
|
password: '{{ tower_postgres_pass | b64encode }}'
|
||||||
|
|
||||||
# Postgres StatefulSet.
|
# Postgres StatefulSet.
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: '{{ meta.name }}-rabbitmq'
|
name: '{{ meta.name }}-rabbitmq'
|
||||||
namespace: {{ meta.namespace }}
|
namespace: '{{ meta.namespace }}'
|
||||||
labels:
|
labels:
|
||||||
app: tower-rabbitmq
|
app: tower-rabbitmq
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: '{{ meta.name }}-tower-task'
|
name: '{{ meta.name }}-tower-task'
|
||||||
namespace: {{ meta.namespace }}
|
namespace: '{{ meta.namespace }}'
|
||||||
labels:
|
labels:
|
||||||
app: tower-task
|
app: tower-task
|
||||||
spec:
|
spec:
|
||||||
@@ -25,3 +25,35 @@ spec:
|
|||||||
name: '{{ meta.name }}-tower-configmap'
|
name: '{{ meta.name }}-tower-configmap'
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: '{{ meta.name }}-tower-secret'
|
name: '{{ meta.name }}-tower-secret'
|
||||||
|
volumeMounts:
|
||||||
|
- name: secret-key
|
||||||
|
mountPath: /etc/tower/SECRET_KEY
|
||||||
|
subPath: SECRET_KEY
|
||||||
|
readOnly: true
|
||||||
|
- name: environment
|
||||||
|
mountPath: /etc/tower/conf.d/environment.sh
|
||||||
|
subPath: environment.sh
|
||||||
|
readOnly: true
|
||||||
|
- name: settings
|
||||||
|
mountPath: /etc/tower/settings.py
|
||||||
|
subPath: settings.py
|
||||||
|
readOnly: true
|
||||||
|
volumes:
|
||||||
|
- name: secret-key
|
||||||
|
secret:
|
||||||
|
secretName: '{{ meta.name }}-tower-secret'
|
||||||
|
items:
|
||||||
|
- key: secret_key
|
||||||
|
path: SECRET_KEY
|
||||||
|
- name: environment
|
||||||
|
configMap:
|
||||||
|
name: '{{ meta.name }}-tower-configmap'
|
||||||
|
items:
|
||||||
|
- key: environment
|
||||||
|
path: environment.sh
|
||||||
|
- name: settings
|
||||||
|
configMap:
|
||||||
|
name: '{{ meta.name }}-tower-configmap'
|
||||||
|
items:
|
||||||
|
- key: settings
|
||||||
|
path: settings.py
|
||||||
|
|||||||
Reference in New Issue
Block a user