# Steps to install AWX using Kubernetes cluster.

**URL:** <https://forum.ansible.com/t/steps-to-install-awx-using-kubernetes-cluster/36427>\
**Category:** AWX Project\
**Tags:** awx, kubernetes\
**Created:** [March 11, 2022, 2:19pm UTC](https://forum.ansible.com/t/steps-to-install-awx-using-kubernetes-cluster/36427 "2022-03-11T14:19:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![brookman\_amissah\_ocr](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@brookman\_amissah\_ocr](https://forum.ansible.com/u/brookman_amissah_ocr)\
**Post date:** [March 11, 2022, 2:19pm UTC](https://forum.ansible.com/t/steps-to-install-awx-using-kubernetes-cluster/36427/1 "2022-03-11T14:19:48Z")

</div>

Hi  
does anyone have step by step installation of AWX using Kubernetes cluster.

---

<div class="post-metadata">

**Author:** ![howardjones](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/howardjones/32/4169_2.png) [@howardjones](https://forum.ansible.com/u/howardjones)\
**Post date:** [March 11, 2022, 2:57pm UTC](https://forum.ansible.com/t/steps-to-install-awx-using-kubernetes-cluster/36427/2 "2022-03-11T14:57:44Z")

</div>

Straight from the README!

[https://github.com/ansible/awx-operator](https://github.com/ansible/awx-operator)

---

<div class="post-metadata">

**Author:** ![Cnu\_k](https://avatars.discourse-cdn.com/v4/letter/c/a88e4f/32.png) [@Cnu\_k](https://forum.ansible.com/u/Cnu_k)\
**Post date:** [March 13, 2022, 10:32pm UTC](https://forum.ansible.com/t/steps-to-install-awx-using-kubernetes-cluster/36427/3 "2022-03-13T22:32:26Z")

</div>

Github information mostly works if you can use the default images as is, requires bit reading and custom configuration to use or build your own image and run containers as non-root among other security considerations.

What issues are you having?

Thanks

---

<div class="post-metadata">

**Author:** ![brookman\_amissah\_ocr](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@brookman\_amissah\_ocr](https://forum.ansible.com/u/brookman_amissah_ocr)\
**Post date:** [March 15, 2022, 1:46pm UTC](https://forum.ansible.com/t/steps-to-install-awx-using-kubernetes-cluster/36427/4 "2022-03-15T13:46:18Z")

</div>

we are getting these warnings when going through the configuration steps  
[kubeadmin@xl8phxc360awxtst awx-operator-0.18.0]$ k get pods -A  
NAMESPACE NAME READY STATUS RESTARTS AGE  
awx awx-demo-postgres-0 0/1 Pending 0 5m8s  
awx awx-operator-controller-manager-dfc6f67d7-4k7dp 2/2 Running 0 13m  
kube-system coredns-64897985d-d5gg6 1/1 Running 1 (3d22h ago) 4d20h  
kube-system coredns-64897985d-pqp2w 1/1 Running 1 (3d22h ago) 4d20h  
kube-system etcd-xl8phxc360awxtst 1/1 Running 5 (3d22h ago) 4d20h  
kube-system kube-apiserver-xl8phxc360awxtst 1/1 Running 5 (3d22h ago) 4d20h  
kube-system kube-controller-manager-xl8phxc360awxtst 1/1 Running 1 (3d22h ago) 4d20h  
kube-system kube-flannel-ds-z4vmf 1/1 Running 1 (3d22h ago) 4d20h  
kube-system kube-proxy-2q497 1/1 Running 1 (3d22h ago) 4d20h  
kube-system kube-scheduler-xl8phxc360awxtst 1/1 Running 5 (3d22h ago) 4d20h  
[kubeadmin@xl8phxc360awxtst awx-operator-0.18.0]$ k describe pods awx-demo-postgres-0|grep -A5 Warning  
**Warning FailedScheduling 5m41s default-scheduler 0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.**  
**Warning FailedScheduling 3m33s (x1 over 4m33s) default-scheduler 0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.**  
[kubeadmin@xl8phxc360awxtst awx-operator-0.18.0]$

---

<div class="post-metadata">

**Author:** ![karon](https://avatars.discourse-cdn.com/v4/letter/k/b9e5f3/32.png) [@karon](https://forum.ansible.com/u/karon)\
**Post date:** [March 15, 2022, 8:06pm UTC](https://forum.ansible.com/t/steps-to-install-awx-using-kubernetes-cluster/36427/5 "2022-03-15T20:06:44Z")

</div>

Hello  
here is a good project that helped me to install AWX on a k3s cluster.  
[https://github.com/kurokobo/awx-on-k3s](https://github.com/kurokobo/awx-on-k3s)

---

<div class="post-metadata">

**Author:** ![Andrei\_Mihai](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/andrei_mihai/32/7257_2.png) [@Andrei\_Mihai](https://forum.ansible.com/u/Andrei_Mihai)\
**Post date:** [September 12, 2022, 9:04am UTC](https://forum.ansible.com/t/steps-to-install-awx-using-kubernetes-cluster/36427/6 "2022-09-12T09:04:52Z")

</div>

@karon they are using a K8s deployment, not K3s(minikube).

the link you posted is alright, however the deployment has been simplified greatly since, using kustomize.

as to OP, the error states you have no volumes available.

You need to create a PV/PVC for the postgres pod.

However, you’re likely going to run into the following, as I have. I am attempting to use localStorage/hostPath and it seems the postgres pod is failing to schedule.  
I have the PV/PVC created for this, even the storage class is right. I’ve created 2 volumes, one for projects and one for postgres. projects is binding successfully, but postgres keeps staying in this state.

Been trying to sort this out for a week. This is a bare-metal cluster.

Events:  
Type Reason Age From Message

* * *

Warning FailedScheduling 14s (x23 over 22m) default-scheduler 0/1 nodes are available: 1 node(s) didn’t find available persistent volumes to bind.
