diff --git a/ansible/playbooks/templates/custom-coredns-helmchart.yaml.j2 b/ansible/playbooks/templates/custom-coredns-helmchart.yaml.j2 index 76365f66..e1fd015c 100644 --- a/ansible/playbooks/templates/custom-coredns-helmchart.yaml.j2 +++ b/ansible/playbooks/templates/custom-coredns-helmchart.yaml.j2 @@ -15,7 +15,9 @@ spec: valuesContent: |- fullnameOverride: coredns replicaCount: 1 + k8sAppLabelOverride: kube-dns service: + name: kube-dns # Choose the 10th IP address from the start of the service-cidr clusterIP: {{ k3s_server['service-cidr'] | ansible.utils.nthhost(10) }} serviceAccount: diff --git a/template/templates/kubernetes/apps/kube-system/coredns/app/helmrelease.yaml.j2 b/template/templates/kubernetes/apps/kube-system/coredns/app/helmrelease.yaml.j2 index 978bb26a..51028c7a 100644 --- a/template/templates/kubernetes/apps/kube-system/coredns/app/helmrelease.yaml.j2 +++ b/template/templates/kubernetes/apps/kube-system/coredns/app/helmrelease.yaml.j2 @@ -28,7 +28,9 @@ spec: values: fullnameOverride: coredns replicaCount: 1 + k8sAppLabelOverride: kube-dns service: + name: kube-dns clusterIP: "{{ bootstrap_coredns_addr }}" serviceAccount: create: true