@@ -36,10 +36,10 @@ The output is similar to this:
36
36
37
37
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
38
38
...
39
- dns-autoscaler 1 1 1 1 ...
39
+ kube- dns-autoscaler 1 1 1 1 ...
40
40
...
41
41
42
- If you see "dns-autoscaler" in the output, DNS horizontal autoscaling is
42
+ If you see "kube- dns-autoscaler" in the output, DNS horizontal autoscaling is
43
43
already enabled, and you can skip to
44
44
[ Tuning autoscaling parameters] ( #tuning-autoscaling-parameters ) .
45
45
@@ -53,13 +53,10 @@ The output is similar to this:
53
53
54
54
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
55
55
...
56
- coredns 2 2 2 2 ...
56
+ kube-dns 1 1 1 1 ...
57
57
...
58
58
59
-
60
- In Kubernetes versions earlier than 1.12, the DNS Deployment was called "kube-dns".
61
-
62
- In Kubernetes versions earlier than 1.5 DNS was implemented using a
59
+ In Kubernetes versions earlier than 1.5 DNS is implemented using a
63
60
ReplicationController instead of a Deployment. So if you don't see kube-dns,
64
61
or a similar name, in the preceding output, list the ReplicationControllers in
65
62
your cluster in the kube-system namespace:
@@ -80,7 +77,7 @@ If you have a DNS Deployment, your scale target is:
80
77
Deployment/<your-deployment-name>
81
78
82
79
where <dns-deployment-name > is the name of your DNS Deployment. For example, if
83
- your DNS Deployment name is coredns , your scale target is Deployment/coredns .
80
+ your DNS Deployment name is kube-dns , your scale target is Deployment/kube-dns .
84
81
85
82
If you have a DNS ReplicationController, your scale target is:
86
83
@@ -114,20 +111,20 @@ DNS horizontal autoscaling is now enabled.
114
111
115
112
## Tuning autoscaling parameters
116
113
117
- Verify that the dns-autoscaler ConfigMap exists:
114
+ Verify that the kube- dns-autoscaler ConfigMap exists:
118
115
119
116
kubectl get configmap --namespace=kube-system
120
117
121
118
The output is similar to this:
122
119
123
120
NAME DATA AGE
124
121
...
125
- dns-autoscaler 1 ...
122
+ kube- dns-autoscaler 1 ...
126
123
...
127
124
128
125
Modify the data in the ConfigMap:
129
126
130
- kubectl edit configmap dns-autoscaler --namespace=kube-system
127
+ kubectl edit configmap kube- dns-autoscaler --namespace=kube-system
131
128
132
129
Look for this line:
133
130
@@ -154,15 +151,15 @@ There are other supported scaling patterns. For details, see
154
151
There are a few options for turning DNS horizontal autoscaling. Which option to
155
152
use depends on different conditions.
156
153
157
- ### Option 1: Scale down the dns-autoscaler deployment to 0 replicas
154
+ ### Option 1: Scale down the kube- dns-autoscaler deployment to 0 replicas
158
155
159
156
This option works for all situations. Enter this command:
160
157
161
- kubectl scale deployment --replicas=0 dns-autoscaler --namespace=kube-system
158
+ kubectl scale deployment --replicas=0 kube- dns-autoscaler --namespace=kube-system
162
159
163
160
The output is:
164
161
165
- deployment.extensions/dns-autoscaler scaled
162
+ deployment.extensions/kube- dns-autoscaler scaled
166
163
167
164
Verify that the replica count is zero:
168
165
@@ -172,33 +169,33 @@ The output displays 0 in the DESIRED and CURRENT columns:
172
169
173
170
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
174
171
...
175
- dns-autoscaler 0 0 0 0 ...
172
+ kube- dns-autoscaler 0 0 0 0 ...
176
173
...
177
174
178
- ### Option 2: Delete the dns-autoscaler deployment
175
+ ### Option 2: Delete the kube- dns-autoscaler deployment
179
176
180
- This option works if dns-autoscaler is under your own control, which means
177
+ This option works if kube- dns-autoscaler is under your own control, which means
181
178
no one will re-create it:
182
179
183
- kubectl delete deployment dns-autoscaler --namespace=kube-system
180
+ kubectl delete deployment kube- dns-autoscaler --namespace=kube-system
184
181
185
182
The output is:
186
183
187
- deployment.extensions "dns-autoscaler" deleted
184
+ deployment.extensions "kube- dns-autoscaler" deleted
188
185
189
- ### Option 3: Delete the dns-autoscaler manifest file from the master node
186
+ ### Option 3: Delete the kube- dns-autoscaler manifest file from the master node
190
187
191
- This option works if dns-autoscaler is under control of the
188
+ This option works if kube- dns-autoscaler is under control of the
192
189
[ Addon Manager] ( https://git.k8s.io/kubernetes/cluster/addons/README.md ) 's
193
190
control, and you have write access to the master node.
194
191
195
192
# to the master node and delete the corresponding manifest file.
196
- The common path for this dns-autoscaler is:
193
+ The common path for this kube- dns-autoscaler is:
197
194
198
195
/etc/kubernetes/addons/dns-horizontal-autoscaler/dns-horizontal-autoscaler.yaml
199
196
200
197
After the manifest file is deleted, the Addon Manager will delete the
201
- dns-autoscaler Deployment.
198
+ kube- dns-autoscaler Deployment.
202
199
203
200
{{% /capture %}}
204
201
0 commit comments