diff --git a/docs/node-local-dns/node-local-dns.md b/docs/node-local-dns/node-local-dns.md deleted file mode 100644 index 52fb6d8c2..000000000 --- a/docs/node-local-dns/node-local-dns.md +++ /dev/null @@ -1,67 +0,0 @@ -# Deploying Node-Local-DNS - -Claudie doesn't deploy `node-local-dns` by default. In this section we'll walk through an example -of how to deploy `node-local-dns` for a claudie created cluster. - -### 1. Download `nodelocaldns.yaml` - -Based on the kubernetes version you are using in your cluster download the `nodelocaldns.yaml` -from the kubernetes [repository](https://github.com/kubernetes/kubernetes/blob/master/cluster/addons/dns/nodelocaldns/nodelocaldns.yaml) - -Make sure to download the YAML for the right kubernetes version, e.g. for kubernetes version 1.27 you would use: - -```bash -wget https://raw.githubusercontent.com/kubernetes/kubernetes/release-1.27/cluster/addons/dns/nodelocaldns/nodelocaldns.yaml -``` - -### 2. Modify downloaded `nodelocaldns.yaml` - -We'll need to replace the references to `__PILLAR__DNS__DOMAIN__` and some of the references to `__PILLAR__LOCAL__DNS__` - -To replace `__PILLAR__DNS__DOMAIN__` execute: - -```bash -sed -i "s/__PILLAR__DNS__DOMAIN__/cluster.local/g" nodelocaldns.yaml -``` - -To replace `__PILLAR__LOCAL__DNS__` find the references and change it to [169.254.20.10](https://github.com/kubermatic/kubeone/blob/515d7a3b1dbf42a4f04fae6dccdcb86eaa77e238/pkg/templates/resources/resources.go#L85) as shown below: - -```dif - ... - containers: - - name: node-cache - image: registry.k8s.io/dns/k8s-dns-node-cache:1.22.20 - resources: - requests: - cpu: 25m - memory: 5Mi -- args: [ "-localip", "__PILLAR__LOCAL__DNS__,__PILLAR__DNS__SERVER__", "-conf", "/etc/Corefile", "-upstreamsvc", "kube-dns-upstream" ] -+ args: [ "-localip", "169.254.20.10", "-conf", "/etc/Corefile", "-upstreamsvc", "kube-dns-upstream" ] - securityContext: - capabilities: - add: - - NET_ADMIN - ports: - - containerPort: 53 - name: dns - protocol: UDP - - containerPort: 53 - name: dns-tcp - protocol: TCP - - containerPort: 9253 - name: metrics - protocol: TCP - livenessProbe: - httpGet: -- host: __PILLAR__LOCAL__DNS__ -+ host: 169.254.20.10 - path: /health - port: 8080 - initialDelaySeconds: 60 - timeoutSeconds: 5 - ... -``` - -### 3. Apply the modified manifest. - -`kubectl apply -f ./nodelocaldns.yaml` \ No newline at end of file diff --git a/manifests/claudie/kustomization.yaml b/manifests/claudie/kustomization.yaml index 519d86845..c735de2ad 100644 --- a/manifests/claudie/kustomization.yaml +++ b/manifests/claudie/kustomization.yaml @@ -65,7 +65,7 @@ images: - name: ghcr.io/berops/claudie/claudie-operator newTag: 06cb96b-3180 - name: ghcr.io/berops/claudie/kube-eleven - newTag: 06cb96b-3180 + newTag: 8169839-3184 - name: ghcr.io/berops/claudie/kuber newTag: 06cb96b-3180 - name: ghcr.io/berops/claudie/manager diff --git a/mkdocs.yml b/mkdocs.yml index aac81463e..9be32b628 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -113,7 +113,6 @@ nav: - Claudie Hardening: hardening/hardening.md - Prometheus Monitoring: monitoring/grafana.md - Updating Claudie: update/update.md - - Deploying Node-Local-DNS: node-local-dns/node-local-dns.md - Command Cheat Sheet: commands/commands.md - Version Matrix: version-matrix/version-matrix.md - HTTP Proxy: http-proxy/http-proxy.md diff --git a/services/kube-eleven/templates/kubeone.tpl b/services/kube-eleven/templates/kubeone.tpl index 3a29cc6d3..78763d53c 100644 --- a/services/kube-eleven/templates/kubeone.tpl +++ b/services/kube-eleven/templates/kubeone.tpl @@ -10,7 +10,7 @@ features: replicas: 2 deployPodDisruptionBudget: true nodeLocalDNS: - deploy: false + deploy: true clusterNetwork: cni: