mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 08:37:48 -02:30
Pull in downstream k8s installer changes
- Secretification of secret stuff - Backup / restore
This commit is contained in:
37
installer/roles/kubernetes/templates/management-pod.yml.j2
Normal file
37
installer/roles/kubernetes/templates/management-pod.yml.j2
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: ansible-tower-management
|
||||
namespace: {{ kubernetes_namespace }}
|
||||
spec:
|
||||
containers:
|
||||
- name: ansible-tower-management
|
||||
image: {{ kubernetes_task_image }}
|
||||
command: ["sleep", "infinity"]
|
||||
volumeMounts:
|
||||
- name: {{ kubernetes_deployment_name }}-application-config
|
||||
mountPath: "/etc/tower"
|
||||
readOnly: true
|
||||
|
||||
- name: "{{ kubernetes_deployment_name }}-confd"
|
||||
mountPath: "/etc/tower/conf.d/"
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: {{ kubernetes_deployment_name }}-application-config
|
||||
configMap:
|
||||
name: {{ kubernetes_deployment_name }}-config
|
||||
items:
|
||||
- key: {{ kubernetes_deployment_name }}_settings
|
||||
path: settings.py
|
||||
- key: secret_key
|
||||
path: SECRET_KEY
|
||||
|
||||
- name: "{{ kubernetes_deployment_name }}-confd"
|
||||
secret:
|
||||
secretName: "{{ kubernetes_deployment_name }}-secrets"
|
||||
items:
|
||||
- key: confd_contents
|
||||
path: 'secrets.py'
|
||||
|
||||
restartPolicy: Never
|
||||
Reference in New Issue
Block a user