Hello all,
I'm trying to install a new and latest install of AWX in K8, but the postgres pod never gets created, it errored out saying : CreateContainerConfigError. Below are some command outputs.
Please let me know what is causing the problem.I do see pv and pvc bound also i have created /data/postgres and /data/projects. I have changed permission on those dire as well
root@k8-ctrlr:/awx-operator# chmod 755 /data/postgres
root@k8-ctrlr:/awx-operator# chown 1000:0 /data/projects/
root@k8-ctrlr:/awx-operator# ls -la /data/
drwxr-xr-x 2 root root 4096 Feb 5 06:44 postgres
drwxr-xr-x 2 ubuntu root 4096 Feb 5 06:44 projects
#############################
kubectl get pods -o wide -n awx
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
awx-operator-controller-manager-77c67cb7c6-jkzsx 2/2 Running 0 29m 10.244.2.9 k8-node-2 <none> <none>
awx-postgres-13-0 0/1 CreateContainerConfigError 0 15m 10.244.1.8 k8-node-1 <none> <none>
kubectl describe pod awx-postgres-13-0 -n awx
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 37s default-scheduler 0/3 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/3 nodes are available: 3 No preemption victims found for incoming pod..
Normal Scheduled 35s default-scheduler Successfully assigned awx/awx-postgres-13-0 to k8-node-1
Normal Pulled 10s (x4 over 35s) kubelet Container image "postgres:13" already present on machine
Warning Failed 10s (x4 over 35s) kubelet Error: stat /data/postgres: no such file or directory
I did create /project/postgres directories , more info in below installation steps
PV and PVC status: i see pv and pvc are bound
root@k8-ctrlr:/awx-deploy# kubectl get pv -n awx
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
awx-postgres-volume 15Gi RWO Retain Bound awx/postgres-13-awx-postgres-13-0 awx-postgres-volume 5m54s
awx-projects-volume 15Gi RWO Retain Bound awx/awx-projects-claim awx-projects-volume 5m54s
root@k8-ctrlr:/awx-deploy# kubectl get pvc -n awx
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
awx-projects-claim Bound awx-projects-volume 15Gi RWO awx-projects-volume 5m51s
postgres-13-awx-postgres-13-0 Bound awx-postgres-volume 15Gi RWO awx-postgres-volume 5m30s
root@k8-ctrlr:/awx-deploy#
root@k8-ctrlr:/awx-deploy# kubectl get pods -A
NAMESPACE NAME READY STATUS RESTARTS AGE
awx awx-operator-controller-manager-77c67cb7c6-jkzsx 2/2 Running 0 26m
awx awx-postgres-13-0 0/1 CreateContainerConfigError 0 12m