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

This commit is contained in:
2024-07-31 23:41:23 -06:00
parent 7408743c13
commit 9b9adcff03

View File

@ -201,22 +201,9 @@ kubectl -n awx create configmap awx-kerberos-config --from-file=/awx/krb5.conf
``` ```
### Create Custom DNS Host Records for Domain Controllers ### 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. We will do this by adding another config file in the `/awx` directory and applying it to the deployment. You will need to be sure that AWX is able to resolve the FQDNs of the domain controllers for Kerberos to be happy.
```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 ``` sh
kubectl apply -f ad_hosts.yml 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'
``` ```
### Create an AWX Container Group ### Create an AWX Container Group