Skip to content

Instantly share code, notes, and snippets.

@ashee
Last active February 9, 2018 00:31
Show Gist options
  • Save ashee/1c6b9b1f5f12c10fc8a78da88d2256ae to your computer and use it in GitHub Desktop.
Save ashee/1c6b9b1f5f12c10fc8a78da88d2256ae to your computer and use it in GitHub Desktop.
kong host and ports

NOTES:

  1. Kong Admin can be accessed inside the cluster using: DNS=api-kong-admin.default.svc.cluster.local PORT=8444

To connect from outside the K8s cluster:

     HOST=$(kubectl get nodes --namespace default -o jsonpath='{.items[0].status.addresses[0].address}')
     PORT=$(kubectl get svc --namespace default api-kong-admin -o jsonpath='{.spec.ports[0].nodePort}')
  1. Kong Proxy can be accessed inside the cluster using:
     DNS=api-kong-proxy.default.svc.cluster.local
     PORT=8443

To connect from outside the K8s cluster:

     HOST=$(kubectl get nodes --namespace default -o jsonpath='{.items[0].status.addresses[0].address}')
     PORT=$(kubectl get svc --namespace default api-kong-proxy -o jsonpath='{.spec.ports[0].nodePort}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment