kong-dashboard
kong-dashboard copied to clipboard
Kong Dashboard on kubernetes
- Is their anyway we can set-up this
kong-dashboard
on kubernetes. - I tried the same but since it will be set up in different container then it will not linked with kong setup on different container.
- I have managed to setup kong on kubernetes using kong-dist-kubernetes
I have this running on kubernetes with the following:
apiVersion: v1
kind: Service
metadata:
name: kong-dashboard
spec:
type: LoadBalancer
loadBalancerSourceRanges:
- 0.0.0.0/0
ports:
- name: kong-dashboard
port: 8080
targetPort: 8080
protocol: TCP
selector:
app: kong-dashboard
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kong-dashboard
spec:
replicas: 1
template:
metadata:
labels:
name: kong-dashboard
app: kong-dashboard
spec:
containers:
- name: kong-dashboard
image: pgbi/kong-dashboard
args: ["start", "--kong-url", "http://kong-admin:8001"]
ports:
- name: main
containerPort: 8080
protocol: TCP
Run kubectl create -f kong-dashboard.yaml
to deploy a service and deployment.
update your args
if your kong service isn't at kong-admin.
@perryao there kong dashboard have open endpoint for healthcheck? if active basic auth google healthcheck will get error 401
@dynastymasra Since https://github.com/PGBI/kong-dashboard/pull/146 has been merged, there is an healthcheck endpoint that returns 200 even when kong-dashboard requires authentication: GET /healthz
thank you @PGBI about this info, i test it works fine
@PGBI How to enable basic authentication on kong-dashboard iam trying to use it along with kubernetes.
@azhar-mohammed you can insert command -basic-auth user1=password1 user2=password2
in kubernetes args
, like args: ["-basic-auth user1=password1 user2=password2"]
@dynastymasra thanks
Tried with kong 1.4 for k8s
kubectl logs -f kong-dashboard-76cb774d89-9wz25 -n kong
Connecting to Kong on http://kong-kong-proxy:80 ...
What's on http://kong-kong-proxy:80 isn't Kong
C:\Users\samuelwa>kubectl get services -n kong
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kong-dashboard ClusterIP 10.96.239.158 <none> 8080/TCP 5m6s
kong-kong-proxy LoadBalancer 10.96.81.193 173.xxx.xxx.xxx 80:30464/TCP,443:32572/TCP 18m
Edit: disregard using kong v2 + didn't have admin initially exposed
Hey guys,
In my infrastructure already have Kong, I want to use just dash, question, in this yaml, there is LoadBalancer Service, do I need this?
In Kong deployment I have a LB?
I have this running on kubernetes with the following:
apiVersion: v1 kind: Service metadata: name: kong-dashboard spec: type: LoadBalancer loadBalancerSourceRanges: - 0.0.0.0/0 ports: - name: kong-dashboard port: 8080 targetPort: 8080 protocol: TCP selector: app: kong-dashboard --- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: kong-dashboard spec: replicas: 1 template: metadata: labels: name: kong-dashboard app: kong-dashboard spec: containers: - name: kong-dashboard image: pgbi/kong-dashboard args: ["start", "--kong-url", "http://kong-admin:8001"] ports: - name: main containerPort: 8080 protocol: TCP
Run
kubectl create -f kong-dashboard.yaml
to deploy a service and deployment.update your
args
if your kong service isn't at kong-admin.
Hi perryao,
I found this might work for me. But I'm not sure what should I put for the args
. Below are the services I have:
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/echo ClusterIP 10.59.129.155
Really looking forward to hear from you. Thank you!