@@ -15,9 +15,7 @@ If the `dns.coreDNS` property is not specified, then the customization will be s
1515
1616### Example
1717
18- To change the repository and tag for the container image for the CoreDNS pod, specify the following configuration:
19-
20- > Note do not include "coredns" in the repository, kubeadm already appends it.
18+ The CoreDNS version can be updated automatically. To do this, set ` coreDNS ` to an empty object:
2119
2220``` yaml
2321apiVersion : cluster.x-k8s.io/v1beta1
@@ -30,13 +28,11 @@ spec:
3028 - name : clusterConfig
3129 value :
3230 dns :
33- coreDNS :
34- image :
35- repository : my-registry.io/my-org/my-repo
36- tag : " v1.11.3_custom.0"
31+ coreDNS : {}
3732` ` `
3833
39- Applying this configuration will result in the following value being set:
34+ Applying this configuration will result in the following value being set,
35+ with the version of the CoreDNS image being set based on the cluster's Kubernetes version:
4036
4137- ` KubeadmControlPlaneTemplate`:
4238
@@ -45,11 +41,12 @@ Applying this configuration will result in the following value being set:
4541 kubeadmConfigSpec:
4642 clusterConfiguration:
4743 dns:
48- imageRepository: "my-registry.io/my-org/my-repo"
49- imageTag: "v1.11.3_custom.0"
44+ imageTag: "v1.11.3"
5045 ` ` `
5146
52- The CoreDNS version can also be updated automatically. To do this, set `coreDNS` to an empty object :
47+ To change the repository and tag for the container image for the CoreDNS pod, specify the following configuration :
48+
49+ > Note do not include "coredns" in the repository, kubeadm already appends it.
5350
5451` ` ` yaml
5552apiVersion: cluster.x-k8s.io/v1beta1
@@ -62,11 +59,13 @@ spec:
6259 - name: clusterConfig
6360 value:
6461 dns:
65- coreDNS: {}
62+ coreDNS:
63+ image:
64+ repository: my-registry.io/my-org/my-repo
65+ tag: "v1.11.3_custom.0"
6666` ` `
6767
68- Applying this configuration will result in the following value being set,
69- with the version of the CoreDNS image being set based on the cluster's Kubernetes version :
68+ Applying this configuration will result in the following value being set :
7069
7170- `KubeadmControlPlaneTemplate` :
7271
@@ -75,5 +74,6 @@ with the version of the CoreDNS image being set based on the cluster's Kubernete
7574 kubeadmConfigSpec:
7675 clusterConfiguration:
7776 dns:
78- imageTag: "v1.11.3"
77+ imageRepository: "my-registry.io/my-org/my-repo"
78+ imageTag: "v1.11.3_custom.0"
7979 ` ` `
0 commit comments