diff --git a/Docker & Kubernetes/Servers/AWX/AWX Operator/Ansible AWX Operator.md b/Docker & Kubernetes/Servers/AWX/AWX Operator/Ansible AWX Operator.md index 3f4f28c..3b00887 100644 --- a/Docker & Kubernetes/Servers/AWX/AWX Operator/Ansible AWX Operator.md +++ b/Docker & Kubernetes/Servers/AWX/AWX Operator/Ansible AWX Operator.md @@ -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