Hi,
I am trying to install kong/kong-gateway (tag 3.1) on GCP GKE K8s cluster with external PostgresDB instance running on GCP with public IP and all SSL settings off. I have bootstrapped Postgres database externally using Virtual machine installed with Kong 3.1 after I got error earlier. (Am I doing this wrong ?? )
Now that I try to install Kong, init pod completes with logs,
% kubectl logs -n kong kong-kong-init-migrations-lrmhc | tail -5
Database already bootstrapped
%
but kong pod itself doesnât come up.
% kubectl get pods -n kong
NAME READY STATUS RESTARTS AGE
kong-kong-64b9984454-crmg4 1/2 CrashLoopBackOff 20 (64s ago) 79m
kong-kong-init-migrations-lrmhc 0/1 Completed 0 23h
kong-postgresql-0 0/1 Pending 0 23h
% kubectl logs -n kong kong-kong-64b9984454-crmg4 | tail -20
Defaulted container âingress-controllerâ out of: ingress-controller, proxy, clear-stale-pid (init), wait-for-db (init)
time=â2023-03-26T08:11:22Zâ level=info msg=âdiagnostics server disabledâ
time=â2023-03-26T08:11:22Zâ level=info msg=âstarting controller managerâ commit=c6ee6c4828881b374925755f48284fb21f46ef8d logger=setup release=2.8.1 repo=âGitHub - Kong/kubernetes-ingress-controller: Kong for Kubernetes: The official Ingress Controller for Kubernetes.â
time=â2023-03-26T08:11:22Zâ level=info msg=âgetting enabled options and featuresâ logger=setup
time=â2023-03-26T08:11:22Zâ level=info msg=âgetting the kubernetes client configurationâ logger=setup
W0326 08:11:22.901115 1 client_config.go:618] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
time=â2023-03-26T08:11:22Zâ level=info msg=âgetting the kong admin api client configurationâ logger=setup
Error: unable to build kong api client: looking up workspace: HTTP status 401 (message: âInvalid RBAC credentialsâ)
Error: unable to build kong api client: looking up workspace: HTTP status 401 (message: âInvalid RBAC credentialsâ)
%
Here is snippet from values.yml used while installing with Helm
âŚ
pg_port: 5432
pg_database: kong
pg_host:
valueFrom:
secretKeyRef:
key: pg_host
name: kong-config-secret
pg_password:
valueFrom:
secretKeyRef:
key: pg_password
name: kong-config-secret
pg_ssl: âoffâ
pg_ssl_verify: âoffâ
pg_user: kong
âŚ
âŚ
postgresql:
enabled: false
auth:
username: kong
database: kong
âŚ
Please help me with this setup.
Regards,
Prasad