I setup 2 Kubernetes clusters on Azure, Thanos Querier is in one cluster, 
and a local prometheus+sidecar. I need to query the remote cluster Thanos 
sidecar. I created ingress-nginx with support for grpc on remote cluster. 
But the sidecar grpc failed in Thanos Querier so that Querier was not able 
to discover the sidecar on remote cluster. I still had to use the ip and 
port to discover the sidecar on remote clusters. Everytime the pod is 
restarted, the ip changes and the connection is broken. Any advice?





apiVersion: extensions/v1beta1

kind: Ingress

metadata:

  name: thanos-sidecar-ingress

  namespace: espr-prometheus-nonprod  

  annotations:

    kubernetes.io/ingress.class: “nginx”

    nginx.ingress.kubernetes.io/ssl-redirect: "false"

    nginx.ingress.kubernetes.io/backend-protocol: “GRPC”

spec:

  rules:

  - host: xxx.example.com 

     http:

      paths:

      - backend:

          serviceName: prometheus-operated 

          servicePort: 10901

        path: /(.*)



Zhang

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/97dd931f-4720-4572-9c89-cccb3d16ccf8o%40googlegroups.com.

Reply via email to