From ba4c653a128aad3c0e3fc02c6a6b2df7a4fc1b64 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Wed, 31 Jul 2024 23:50:24 -0600 Subject: [PATCH] Update Docker & Kubernetes/Servers/AWX/AWX Operator/Ansible AWX Operator.md --- .../AWX/AWX Operator/Ansible AWX Operator.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) 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 df5649c..beabbf0 100644 --- a/Docker & Kubernetes/Servers/AWX/AWX Operator/Ansible AWX Operator.md +++ b/Docker & Kubernetes/Servers/AWX/AWX Operator/Ansible AWX Operator.md @@ -201,9 +201,22 @@ kubectl -n awx create configmap awx-kerberos-config --from-file=/awx/krb5.conf ``` ### Create Custom DNS Host Records for Domain Controllers -You will need to be sure that AWX is able to resolve the FQDNs of the domain controllers for Kerberos to be happy. +You will need to be sure that AWX is able to resolve the FQDNs of the domain controllers for Kerberos to be happy. We will do this by adding another config file in the `/awx` directory and applying it to the deployment. +```jsx title="/awx/ad_hosts.yml" +apiVersion: v1 +kind: ConfigMap +metadata: + name: custom-hosts + namespace: default +data: + hosts: | + 192.168.3.25 LAB-DC-01.bunny-lab.io LAB-DC-01 + 192.168.3.26 LAB-DC-02.bunny-lab.io LAB-DC-02 +``` + +Then we apply them with the following command: ``` sh -sudo sh -c 'echo -e "192.168.3.25 LAB-DC-01.bunny-lab.io LAB-DC-01\n192.168.3.26 LAB-DC-02.bunny-lab.io LAB-DC-02" >> /etc/hosts' +kubectl apply -f ad_hosts.yml ``` ### Create an AWX Container Group