Bootstrap FreeKB - Kong Enterprise Edition (KongEE) - Admin API on OpenShift
Kong Enterprise Edition (KongEE) - Admin API on OpenShift


Let's say your Kong admin application has been deployed to OpenShift. The oc get pods command can be used to display the kong pods.

oc get pods -n kong

 

Something like this should be returned.

NAME                                  READY   STATUS    RESTARTS   AGE
grafana-0                             2/2     Running   0          27d
kong-1.3.0.2-6c789dccf5-4w5sw         1/1     Running   0          27d
kong-1.3.0.2-6c789dccf5-fc4nr         1/1     Running   0          27d
kong-1.3.0.2-6c789dccf5-n5f45         1/1     Running   0          27d
kong-admin-1.3.0.2-5d7c89d4bb-4gg4g   1/1     Running   0          27d
postgres-67b6d87679-d76d5             1/1     Running   14         27d
prom-0                                4/4     Running   12         27d
redis-574787997b-5jbpv                2/2     Running   6          27d

 

The oc get pods with the -o yaml option can be used to display the configuration of the Kong admin pod.

oc get pod kong-admin-1.3.0.2-5d7c89d4bb-4gg4g -o yaml -n kong

 

The YAML should include the hostname and HTTPS port of the Admin API.

  containers:
  - env:
    - name: KONG_ADMIN_LISTEN
      value: 0.0.0.0:8444 ssl
    - name: KONG_ADMIN_API_URI
      value: https://kongadminapi.example.com

 

The curl command can then be used to connect to Kong.

curl --header "Kong-Admin-Token: abc123" https://kongadminapi.example.com:8444/status

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter c393e8 in the box below so that we can be sure you are a human.