Failed to register pmm-agent on PMM Server - no such host

Trying to register PMM client to PMM Server, PMM server is up and running and I am using helm to deploy both Percona db cluster and PMM Server to Kubernetes cluster.

Percona server cfg pod is in Crash loop with this error in PMM client container:
Failed to register pmm-agent on PMM Server: Post " https://pmm-server-service:443/v1/management/Node/Register ": dial tcp: lookup pmm-server-service on *****:53: no such host.

PMM is enabled as following in the PerconaServerMongoDB:

    enabled: true
    serverHost: pmm-server-service

PMM server Service is with following config:

# Source: pmm-server/templates/svc.yaml
kind: Service
apiVersion: v1
  name: "pmm-server-service"
    component: pmm
    app: pmm-server
    chart: "pmm-server-2.26.1"
    release: "pmm-server"
    heritage: "Helm"
    - name: https
      protocol: TCP
      port: 443
      targetPort: 443
    component: pmm
    app: pmm-server
  type: "ClusterIP"

What is missing here?

1 Like