Setting up load balancers and DNS

You must set up load balancers and DNS for the following services:

  • Acceptor
  • Gateway

The following sections describe how to set up load balancers and DNS by using services of type LoadBalancer. Details depend on your Kubernetes setup.

Acceptor

To set up load balancers and DNS for the Acceptor service, see the following settings:

apiVersion: v1
kind: Service
metadata:
  namespace: instana-core
  name: loadbalancer-acceptor
spec:
  type: LoadBalancer
  loadBalancerIP: <your loadbalancer IP>
  ports:
    - name: http-service
      port: 443
      protocol: TCP
      targetPort: http-service
  selector:
    app.kubernetes.io/name: instana
    app.kubernetes.io/component: acceptor
    instana.io/group: service

Configure the acceptor DNS name, agentAcceptorConfig, in the CoreSpec. Your DNS needs to provide the mapping from this domain to the IP address as an A record.

Gateway

To set up load balancers and DNS for the Gateway service, see the following settings:

apiVersion: v1
kind: Service
metadata:
  namespace: instana-core
  name: loadbalancer-gateway
spec:
  type: LoadBalancer
  loadBalancerIP: <your loadbalancer IP>
  ports:
    - name: https
      port: 443
      protocol: TCP
      targetPort: https
    - name: http
      port: 80
      protocol: TCP
      targetPort: http
  selector:
    app.kubernetes.io/name: instana
    app.kubernetes.io/component: gateway
    instana.io/group: service

Configure the gateway DNS name, base_domain, in the CoreSpec. You need to set up A records in your DNS for the base_domain and for all tenant unit subdomains

  • <base_domain>
  • <unit-name>-<tenant-name>.<base_domain>