# How configure Kubernetes to install AWX in a cluster mode (HA) ?

**URL:** <https://forum.ansible.com/t/how-configure-kubernetes-to-install-awx-in-a-cluster-mode-ha/31598>\
**Category:** AWX Project\
**Tags:** awx, kubernetes\
**Created:** [November 5, 2019, 2:28pm UTC](https://forum.ansible.com/t/how-configure-kubernetes-to-install-awx-in-a-cluster-mode-ha/31598 "2019-11-05T14:28:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![driCs](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@driCs](https://forum.ansible.com/u/driCs)\
**Post date:** [November 5, 2019, 2:28pm UTC](https://forum.ansible.com/t/how-configure-kubernetes-to-install-awx-in-a-cluster-mode-ha/31598/1 "2019-11-05T14:28:00Z")

</div>

Hi all,

How do you configure Kubernetes to install AWX with a cluster mode?  
I think we need to configure Kubernetes to install the cluster AWX regarding the doc [https://github.com/ansible/awx/blob/devel/INSTALL.md#kubernetes](https://github.com/ansible/awx/blob/devel/INSTALL.md#kubernetes) ??  
Do we need configure the “config” file in $HOME/.kube?

Thanks for your help

---

<div class="post-metadata">

**Author:** ![driCs](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@driCs](https://forum.ansible.com/u/driCs)\
**Post date:** [November 5, 2019, 3:03pm UTC](https://forum.ansible.com/t/how-configure-kubernetes-to-install-awx-in-a-cluster-mode-ha/31598/2 "2019-11-05T15:03:07Z")

</div>

Note I have these errors :

TASK [kubernetes : Set the Kubernetes Context] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /root/Kub-awx-install.8.0.0/awx/installer/roles/kubernetes/tasks/kubernetes\_auth.yml:2  
changed: [localhost] =\> {“changed”: true, “cmd”: “kubectl config set-context awx-cluster”, “delta”: “0:00:00.075211”, “end”: “2019-11-05 15:58:11.832764”, “rc”: 0, “start”: “2019-11-05 15:58:11.757553”, “stderr”: “”, “stderr\_lines”: , “stdout”: “Context "awx-cluster" created.”, “stdout\_lines”: [“Context "awx-cluster" created.”]}

TASK [kubernetes : Get Namespace Detail] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /root/Kub-awx-install.8.0.0/awx/installer/roles/kubernetes/tasks/kubernetes.yml:2  
fatal: [localhost]: FAILED! =\> {“changed”: true, “cmd”: “kubectl get namespace awx”, “delta”: “0:00:00.211973”, “end”: “2019-11-05 15:58:12.257478”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2019-11-05 15:58:12.045505”, “stderr”: “error: the server doesn’t have a resource type "namespace"”, “stderr\_lines”: [“error: the server doesn’t have a resource type "namespace"”], “stdout”: “”, “stdout\_lines”: }  
…ignoring

TASK [kubernetes : Create AWX Kubernetes Project] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /root/Kub-awx-install.8.0.0/awx/installer/roles/kubernetes/tasks/kubernetes.yml:7  
fatal: [localhost]: FAILED! =\> {“changed”: true, “cmd”: “kubectl create namespace awx”, “delta”: “0:00:00.088935”, “end”: “2019-11-05 15:58:12.570872”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2019-11-05 15:58:12.481937”, “stderr”: “error: no matches for kind "Namespace" in version "v1"”, “stderr\_lines”: [“error: no matches for kind "Namespace" in version "v1"”], “stdout”: “”, “stdout\_lines”: }

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
localhost : ok=8 changed=2 unreachable=0 failed=1 skipped=40 rescued=0 ignored=1

---

<div class="post-metadata">

**Author:** ![Juan\_A\_S](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@Juan\_A\_S](https://forum.ansible.com/u/Juan_A_S)\
**Post date:** [November 5, 2019, 5:36pm UTC](https://forum.ansible.com/t/how-configure-kubernetes-to-install-awx-in-a-cluster-mode-ha/31598/3 "2019-11-05T17:36:57Z")

</div>

Take a look to this thread [https://groups.google.com/forum/#!topic/awx-project/qjDpSuy004I](https://groups.google.com/forum/#!topic/awx-project/qjDpSuy004I), perhaps yours is the same installer error. Anyway, version 9.0.1 has been released some days ago.
