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

This commit is contained in:
2024-07-31 20:57:17 -06:00
parent cd27b51c89
commit af424e638e

View File

@ -262,10 +262,16 @@ Add the following Kubernetes patch file to the `/awx` folder on the AWX Operator
Then run the following commands to apply the configmap to the Kubernetes cluster, then patch each container to add the file.
``` sh
# Apply the Kerberos ConfigMap into Kubernetes Cluster
kubectl apply -f /awx/krb5-configmap.yml
kubectl patch deployment awx-task -n awx --patch "$(cat kerberos-patch.yml | sed -n '/^apiVersion: apps\/v1/,/^---/p')"
kubectl patch deployment awx-web -n awx --patch "$(cat kerberos-patch.yml | sed -n '/^apiVersion: apps\/v1/,/^---/p')"
kubectl apply -k .
# Apply patch for awx-task
kubectl patch deployment awx-task -n awx --patch "$(sed -n '/^apiVersion: apps\/v1/,/^---/p' kerberos-patch.yml)"
# Apply patch for awx-web
kubectl patch deployment awx-web -n awx --patch "$(sed -n '/^apiVersion: apps\/v1/,$p' kerberos-patch.yml)"
```
## Access the AWX WebUI behind Ingress Controller