Update Docker & Kubernetes/Servers/AWX/AWX Operator/Ansible AWX Operator.md

This commit is contained in:
2024-07-31 23:55:32 -06:00
parent f6c798881e
commit ce1cc6c93d

View File

@ -234,6 +234,13 @@ metadata:
spec:
serviceAccountName: default
automountServiceAccountToken: false
initContainers:
- name: init-hosts
image: busybox
command: ['sh', '-c', 'cat /etc/custom-dns/custom-hosts >> /etc/hosts']
volumeMounts:
- name: custom-dns
mountPath: /etc/custom-dns
containers:
- image: 'quay.io/ansible/awx-ee:latest'
name: worker
@ -249,19 +256,13 @@ spec:
- name: awx-kerberos-volume
mountPath: /etc/krb5.conf
subPath: krb5.conf
- name: custom-hosts
mountPath: /etc/hosts
subPath: hosts
volumes:
- name: awx-kerberos-volume
configMap:
name: awx-kerberos-config
- name: custom-hosts
- name: custom-dns
configMap:
name: custom-hosts
items:
- key: hosts
path: hosts
name: custom-dns
```
### Job Template & Inventory Examples