I’ve just checked the pod status on my kubenetes cluster and seeing two pods in pending status. Bit unsure why. Everything appears to be working correctly from an AWX point of view.
Just to add further info, I am seeing the below errors on the pods in pending state. I am unsure why this is happening now and not for the last 13 days or so?
Events:
Type Reason Age From Message
Warning FailedScheduling 9m41s default-scheduler 0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.
Warning FailedScheduling 9m39s default-scheduler 0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.
Check PV and PVCs status if you’re using static storage provisioning such as NFS or similar. Either way the error is related to PVC that’s not bound to a PV, so checking that should help.
If you look at my first post, you will see that the original pods are in a running state, but then I have a postgres and awx pod in pending also. Additionally, everything worked fine. I rebooted the cluster and then lost my data - not fussed about this as I am testing at the moment.
From what I have read and If you check the yaml files, should that directory not work as a persistent volume? I can see the data writes to /data/postgres
Warning ProvisioningFailed 26m (x3281 over 14h) persistentvolume-controller storageclass.storage.k8s.io “awx-postgres-volume” not found
Warning ProvisioningFailed 31s (x83 over 20m) persistentvolume-controller storageclass.storage.k8s.io “awx-postgres-volume” not found
I don’t believe that should be the case, however just under the "name: awx-postgres-volume " , in your awx-postgres-volume .yaml file, you can specify the “namespace: awx”, so that the pvc is created in teh correct namespace.