Ambassador Gateway : Grafana not redirecting properly in kubernetes environment

5/2/2020

I have deployed Ambassador and grafana, then deployed Grafana service to expose via API gateway

[root@am26 granafa-service-21]# kubectl get svc
NAME                          TYPE        CLUSTER-IP       EXTERNAL-IP      PORT(S)          AGE
ambassador                    NodePort    10.107.4.224     10.134.136.256   80:32555/TCP     6d17h
ambassador-admin              NodePort    10.106.171.141   <none>           8877:31193/TCP   6d17h

Here my Ambasador service

---
apiVersion: v1
kind: Service
metadata:
  name: grafana2-ai-service
  annotations:
    getambassador.io/config: |
      ---
      apiVersion: ambassador/v1
      kind: Mapping
      name: grafana2-ai-mapping
      prefix: /grafana6/
      service: grafana2-ai-service
      rewrite: ""

spec:
  ports:
    - port: 80
      targetPort: 3000
      name: http
      protocol: TCP
  selector:
    app: grafana

Trying to access UI with url http://10.134.136.256/grafana6/

Getting below message in UI, any idea how to fix this ?

enter image description here

-- Rayees Namathponnan
ambassador
api-gateway
envoyproxy
grafana
kubernetes

0 Answers