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 9c11424..bb63f03 100644 --- a/Docker & Kubernetes/Servers/AWX/AWX Operator/Ansible AWX Operator.md +++ b/Docker & Kubernetes/Servers/AWX/AWX Operator/Ansible AWX Operator.md @@ -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