Update Docker & Kubernetes/Servers/AWX/AWX Operator/Ansible AWX Operator.md
This commit is contained in:
@ -234,6 +234,13 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
serviceAccountName: default
|
serviceAccountName: default
|
||||||
automountServiceAccountToken: false
|
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:
|
containers:
|
||||||
- image: 'quay.io/ansible/awx-ee:latest'
|
- image: 'quay.io/ansible/awx-ee:latest'
|
||||||
name: worker
|
name: worker
|
||||||
@ -249,19 +256,13 @@ spec:
|
|||||||
- name: awx-kerberos-volume
|
- name: awx-kerberos-volume
|
||||||
mountPath: /etc/krb5.conf
|
mountPath: /etc/krb5.conf
|
||||||
subPath: krb5.conf
|
subPath: krb5.conf
|
||||||
- name: custom-hosts
|
|
||||||
mountPath: /etc/hosts
|
|
||||||
subPath: hosts
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: awx-kerberos-volume
|
- name: awx-kerberos-volume
|
||||||
configMap:
|
configMap:
|
||||||
name: awx-kerberos-config
|
name: awx-kerberos-config
|
||||||
- name: custom-hosts
|
- name: custom-dns
|
||||||
configMap:
|
configMap:
|
||||||
name: custom-hosts
|
name: custom-dns
|
||||||
items:
|
|
||||||
- key: hosts
|
|
||||||
path: hosts
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Job Template & Inventory Examples
|
### Job Template & Inventory Examples
|
||||||
|
Reference in New Issue
Block a user