Skip to content

Commit 79c17f7

Browse files
authored
Refactor DNS configuration in Kubernetes defaults to structured format (#3044)
- Updated multiple YAML files to separate CoreDNS and NodeLocalDNS settings, enhancing clarity and maintainability. - Adjusted image references for CoreDNS and NodeLocalDNS, ensuring consistency across versions. - Improved documentation to reflect the new structure and settings. Signed-off-by: redscholar <[email protected]>
1 parent 88231c5 commit 79c17f7

12 files changed

Lines changed: 96 additions & 48 deletions

File tree

builtin/core/roles/defaults/vars/v1.23.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ storage_class:
7373
# nfs provisioner helm version
7474
nfs_provisioner_version: 4.0.18
7575
dns:
76-
dns_image:
77-
tag: v1.8.6
78-
dns_cache_image:
79-
tag: 1.21.1
76+
# CoreDNS settings.
77+
coredns:
78+
image:
79+
tag: v1.8.6
80+
# NodeLocalDNS settings.
81+
nodelocaldns:
82+
image:
83+
tag: 1.21.1

builtin/core/roles/defaults/vars/v1.24.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ storage_class:
7676
# nfs provisioner helm version
7777
nfs_provisioner_version: 4.0.18
7878
dns:
79-
dns_image:
80-
tag: v1.8.6
81-
dns_cache_image:
82-
tag: 1.21.1
79+
# CoreDNS settings.
80+
coredns:
81+
image:
82+
tag: v1.8.6
83+
# NodeLocalDNS settings.
84+
nodelocaldns:
85+
image:
86+
tag: 1.21.1

builtin/core/roles/defaults/vars/v1.25.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ storage_class:
7474
# nfs provisioner helm version
7575
nfs_provisioner_version: 4.0.18
7676
dns:
77-
dns_image:
78-
tag: v1.9.3
79-
dns_cache_image:
80-
tag: 1.22.8
77+
# CoreDNS settings.
78+
coredns:
79+
image:
80+
tag: v1.9.3
81+
# NodeLocalDNS settings.
82+
nodelocaldns:
83+
image:
84+
tag: 1.22.8

builtin/core/roles/defaults/vars/v1.26.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ storage_class:
7474
# nfs provisioner helm version
7575
nfs_provisioner_version: 4.0.18
7676
dns:
77-
dns_image:
78-
tag: v1.9.3
79-
dns_cache_image:
80-
tag: 1.22.13
77+
# CoreDNS settings.
78+
coredns:
79+
image:
80+
tag: v1.9.3
81+
# NodeLocalDNS settings.
82+
nodelocaldns:
83+
image:
84+
tag: 1.22.13

builtin/core/roles/defaults/vars/v1.27.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ storage_class:
7474
# nfs provisioner helm version
7575
nfs_provisioner_version: 4.0.18
7676
dns:
77-
dns_image:
78-
tag: v1.10.1
79-
dns_cache_image:
80-
tag: 1.22.20
77+
# CoreDNS settings.
78+
coredns:
79+
image:
80+
tag: v1.10.1
81+
# NodeLocalDNS settings.
82+
nodelocaldns:
83+
image:
84+
tag: 1.22.20

builtin/core/roles/defaults/vars/v1.28.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ storage_class:
7474
# nfs provisioner helm version
7575
nfs_provisioner_version: 4.0.18
7676
dns:
77-
dns_image:
78-
tag: v1.10.1
79-
dns_cache_image:
80-
tag: 1.22.23
77+
# CoreDNS settings.
78+
coredns:
79+
image:
80+
tag: v1.10.1
81+
# NodeLocalDNS settings.
82+
nodelocaldns:
83+
image:
84+
tag: 1.22.23

builtin/core/roles/defaults/vars/v1.29.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ storage_class:
7474
# nfs provisioner helm version
7575
nfs_provisioner_version: 4.0.18
7676
dns:
77-
dns_image:
78-
tag: v1.11.1
79-
dns_cache_image:
80-
tag: 1.22.23
77+
# CoreDNS settings.
78+
coredns:
79+
image:
80+
tag: v1.11.1
81+
# NodeLocalDNS settings.
82+
nodelocaldns:
83+
image:
84+
tag: 1.22.23

builtin/core/roles/defaults/vars/v1.30.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ storage_class:
7474
# nfs provisioner helm version
7575
nfs_provisioner_version: 4.0.18
7676
dns:
77-
dns_image:
78-
tag: v1.11.3
79-
dns_cache_image:
80-
tag: 1.22.28
77+
# CoreDNS settings.
78+
coredns:
79+
image:
80+
tag: v1.11.3
81+
# NodeLocalDNS settings.
82+
nodelocaldns:
83+
image:
84+
tag: 1.22.28

builtin/core/roles/defaults/vars/v1.31.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ storage_class:
7474
# nfs provisioner helm version
7575
nfs_provisioner_version: 4.0.18
7676
dns:
77-
dns_image:
78-
tag: v1.11.3
79-
dns_cache_image:
80-
tag: 1.23.1
77+
# CoreDNS settings.
78+
coredns:
79+
image:
80+
tag: v1.11.3
81+
# NodeLocalDNS settings.
82+
nodelocaldns:
83+
image:
84+
tag: 1.23.1

builtin/core/roles/defaults/vars/v1.32.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ storage_class:
7474
# nfs provisioner helm version
7575
nfs_provisioner_version: 4.0.18
7676
dns:
77-
dns_image:
78-
tag: v1.11.3
79-
dns_cache_image:
80-
tag: 1.23.1
77+
# CoreDNS settings.
78+
coredns:
79+
image:
80+
tag: v1.11.3
81+
# NodeLocalDNS settings.
82+
nodelocaldns:
83+
image:
84+
tag: 1.23.1

0 commit comments

Comments
 (0)