Thanks ... it is helpful
I tried to follow the same but postgres POD is having an issue, any idea please ?
# kubectl get pods
NAME READY STATUS RESTARTS AGE
awx-demo-7744b86597-tcgjn 4/4 Running 0 45h
awx-demo-postgres-0 0/1 Pending 0 24h
awx-operator-75c79f5489-wxn5l 1/1 Running 1 8d
# kubectl describe pod awx-demo-postgres-0
Name: awx-demo-postgres-0
Namespace: default
Priority: 0
Node: <none>
controller-revision-hash=awx-demo-postgres-79f76985cb
Annotations: <none>
Status: Pending
IP:
IPs: <none>
Controlled By: StatefulSet/awx-demo-postgres
Containers:
postgres:
Image: postgres:12
Port: 5432/TCP
Host Port: 0/TCP
Environment:
POSTGRESQL_DATABASE: <set to the key 'database' in secret 'awx-demo-postgres-configuration'> Optional: false
POSTGRESQL_USER: <set to the key 'username' in secret 'awx-demo-postgres-configuration'> Optional: false
POSTGRESQL_PASSWORD: <set to the key 'password' in secret 'awx-demo-postgres-configuration'> Optional: false
POSTGRES_DB: <set to the key 'database' in secret 'awx-demo-postgres-configuration'> Optional: false
POSTGRES_USER: <set to the key 'username' in secret 'awx-demo-postgres-configuration'> Optional: false
POSTGRES_PASSWORD: <set to the key 'password' in secret 'awx-demo-postgres-configuration'> Optional: false
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_INITDB_ARGS: --auth-host=scram-sha-256
POSTGRES_HOST_AUTH_METHOD: scram-sha-256
Mounts:
/var/lib/postgresql/data from postgres (rw,path="data")
Conditions:
Type Status
PodScheduled False
Volumes:
postgres:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: postgres-awx-demo-postgres-0
ReadOnly: false
kube-api-access-stkg5:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional: <nil>
DownwardAPI: true
QoS Class: BestEffort
Node-Selectors: <none>
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 24h default-scheduler 0/3 nodes are available: 3 pod has unbound immediate PersistentVolumeClaims.