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 b98471d..4d8de4c 100644 --- a/Docker & Kubernetes/Servers/AWX/AWX Operator/Ansible AWX Operator.md +++ b/Docker & Kubernetes/Servers/AWX/AWX Operator/Ansible AWX Operator.md @@ -238,25 +238,6 @@ Add the following Kubernetes patch file to the `/awx` folder on the AWX Operator - name: krb5-config configMap: name: krb5-config - --- - apiVersion: apps/v1 - kind: Deployment - metadata: - name: awx-web - namespace: awx - spec: - template: - spec: - containers: - - name: awx-web - volumeMounts: - - name: krb5-config - mountPath: /etc/krb5.conf - subPath: krb5.conf - volumes: - - name: krb5-config - configMap: - name: krb5-config ``` Then run the following commands to apply the configmap to the Kubernetes cluster, then patch each container to add the file. @@ -265,11 +246,18 @@ Then run the following commands to apply the configmap to the Kubernetes cluster # Apply the Kerberos ConfigMap into Kubernetes Cluster kubectl apply -f /awx/krb5-configmap.yml -# Extract and apply patch for awx-task -kubectl patch deployment awx-task -n awx --patch "$(sed -n '1,/^---/p' kerberos-patch.yml | sed '$d')" +# Extract and apply patch for awx-task pod +kubectl patch deployment awx-task -n awx --patch "$(cat awx-task-patch.yml)" + +# Scale down to 0 +kubectl scale deployment awx-task -n awx --replicas=0 + +# Check to ensure it has scaled down to 0 by disappearing from this list. +kubectl get pods -n awx + +# Scale it back up to 1 +kubectl scale deployment awx-task -n awx --replicas=1 -# Extract and apply patch for awx-web -kubectl patch deployment awx-web -n awx --patch "$(sed -n '/^---/,$p' kerberos-patch.yml | sed '1d')" ``` ## Access the AWX WebUI behind Ingress Controller