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
|
||||
metadata:
|
||||
name: '{{ meta.name }}-postgres-pass'
|
||||
namespace: {{ meta.namespace }}
|
||||
namespace: '{{ meta.namespace }}'
|
||||
data:
|
||||
password: {{ tower_postgres_pass | b64encode }}
|
||||
password: '{{ tower_postgres_pass | b64encode }}'
|
||||
|
||||
# Postgres StatefulSet.
|
||||
---
|
||||
|
||||
@@ -4,7 +4,7 @@ apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: '{{ meta.name }}-rabbitmq'
|
||||
namespace: {{ meta.namespace }}
|
||||
namespace: '{{ meta.namespace }}'
|
||||
labels:
|
||||
app: tower-rabbitmq
|
||||
spec:
|
||||
|
||||
@@ -4,7 +4,7 @@ apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: '{{ meta.name }}-tower-task'
|
||||
namespace: {{ meta.namespace }}
|
||||
namespace: '{{ meta.namespace }}'
|
||||
labels:
|
||||
app: tower-task
|
||||
spec:
|
||||
@@ -25,3 +25,35 @@ spec:
|
||||
name: '{{ meta.name }}-tower-configmap'
|
||||
- secretRef:
|
||||
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