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

This commit is contained in:
2024-07-31 23:50:24 -06:00
parent 0d7157fdb4
commit ba4c653a12

View File

@ -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