kyma-project / hydroform

Infrastructure SDK for provisioning and managing Kubernetes cluster based on Terraform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Patching coredns in the installation library

strekm opened this issue · comments

Description

To ensure communication we need to patch coredns as follows:

data:
  Corefile: |
    .:53 {
        errors
        health
        rewrite name regex (.*)\.local\.kyma\.dev istio-ingressgateway.istio-system.svc.cluster.local
        ready
        kubernetes cluster.local in-addr.arpa ip6.arpa {
          pods insecure
          fallthrough in-addr.arpa ip6.arpa
        }
        hosts /etc/coredns/NodeHosts {
          reload 1s
          fallthrough
        }
        prometheus :9153
        forward . /etc/resolv.conf
        cache 30
        loop
        reload
        loadbalance
    }

AC:

  • domain shouldn't be hardcoded (we will be needing similar patch for other scenario)
  • logic should be implemented in the installation lib interceptor
  • if coredns is not installed log it and proceed with installation
  • documentation with a note that kyma will fully work only with coredns (new documentation)

Reasons

For kyma.local.dev domain we need to patch coredns to ensure traffic.

Attachments