@@ -33,12 +33,12 @@ kubectl get deployment --namespace=kube-system
33
33
34
34
The output is similar to this:
35
35
36
- NAME READY UP-TO-DATE AVAILABLE AGE
36
+ NAME READY UP-TO-DATE AVAILABLE AGE
37
37
...
38
- dns-autoscaler 1/1 1 1 ...
38
+ kube- dns-autoscaler 1/1 1 1 ...
39
39
...
40
40
41
- If you see "dns-autoscaler" in the output, DNS horizontal autoscaling is
41
+ If you see "kube- dns-autoscaler" in the output, DNS horizontal autoscaling is
42
42
already enabled, and you can skip to
43
43
[ Tuning autoscaling parameters] ( #tuning-autoscaling-parameters ) .
44
44
@@ -99,13 +99,13 @@ kubectl apply -f dns-horizontal-autoscaler.yaml
99
99
100
100
The output of a successful command is:
101
101
102
- deployment.apps/dns-autoscaler created
102
+ deployment.apps/kube- dns-autoscaler created
103
103
104
104
DNS horizontal autoscaling is now enabled.
105
105
106
106
## Tune DNS autoscaling parameters {#tuning-autoscaling-parameters}
107
107
108
- Verify that the dns-autoscaler {{< glossary_tooltip text="ConfigMap" term_id="configmap" >}} exists:
108
+ Verify that the kube- dns-autoscaler {{< glossary_tooltip text="ConfigMap" term_id="configmap" >}} exists:
109
109
110
110
``` shell
111
111
kubectl get configmap --namespace=kube-system
@@ -115,13 +115,13 @@ The output is similar to this:
115
115
116
116
NAME DATA AGE
117
117
...
118
- dns-autoscaler 1 ...
118
+ kube- dns-autoscaler 1 ...
119
119
...
120
120
121
121
Modify the data in the ConfigMap:
122
122
123
123
``` shell
124
- kubectl edit configmap dns-autoscaler --namespace=kube-system
124
+ kubectl edit configmap kube- dns-autoscaler --namespace=kube-system
125
125
```
126
126
127
127
Look for this line:
@@ -151,17 +151,17 @@ There are other supported scaling patterns. For details, see
151
151
There are a few options for tuning DNS horizontal autoscaling. Which option to
152
152
use depends on different conditions.
153
153
154
- # ## Option 1: Scale down the dns-autoscaler deployment to 0 replicas
154
+ # ## Option 1: Scale down the kube- dns-autoscaler deployment to 0 replicas
155
155
156
156
This option works for all situations. Enter this command :
157
157
158
158
` ` ` shell
159
- kubectl scale deployment --replicas=0 dns-autoscaler --namespace=kube-system
159
+ kubectl scale deployment --replicas=0 kube- dns-autoscaler --namespace=kube-system
160
160
` ` `
161
161
162
162
The output is :
163
163
164
- deployment.apps/dns-autoscaler scaled
164
+ deployment.apps/kube- dns-autoscaler scaled
165
165
166
166
Verify that the replica count is zero :
167
167
@@ -171,37 +171,37 @@ kubectl get rs --namespace=kube-system
171
171
172
172
The output displays 0 in the DESIRED and CURRENT columns :
173
173
174
- NAME DESIRED CURRENT READY AGE
174
+ NAME DESIRED CURRENT READY AGE
175
175
...
176
- dns-autoscaler-6b59789fc8 0 0 0 ...
176
+ kube- dns-autoscaler-6b59789fc8 0 0 0 ...
177
177
...
178
178
179
- # ## Option 2: Delete the dns-autoscaler deployment
179
+ # ## Option 2: Delete the kube- dns-autoscaler deployment
180
180
181
- This option works if dns-autoscaler is under your own control, which means
181
+ This option works if kube- dns-autoscaler is under your own control, which means
182
182
no one will re-create it :
183
183
184
184
` ` ` shell
185
- kubectl delete deployment dns-autoscaler --namespace=kube-system
185
+ kubectl delete deployment kube- dns-autoscaler --namespace=kube-system
186
186
` ` `
187
187
188
188
The output is :
189
189
190
- deployment.apps "dns-autoscaler" deleted
190
+ deployment.apps "kube- dns-autoscaler" deleted
191
191
192
- # ## Option 3: Delete the dns-autoscaler manifest file from the master node
192
+ # ## Option 3: Delete the kube- dns-autoscaler manifest file from the master node
193
193
194
- This option works if dns-autoscaler is under control of the (deprecated)
194
+ This option works if kube- dns-autoscaler is under control of the (deprecated)
195
195
[Addon Manager](https://git.k8s.io/kubernetes/cluster/addons/README.md),
196
196
and you have write access to the master node.
197
197
198
198
Sign in to the master node and delete the corresponding manifest file.
199
- The common path for this dns-autoscaler is :
199
+ The common path for this kube- dns-autoscaler is :
200
200
201
201
/etc/kubernetes/addons/dns-horizontal-autoscaler/dns-horizontal-autoscaler.yaml
202
202
203
203
After the manifest file is deleted, the Addon Manager will delete the
204
- dns-autoscaler Deployment.
204
+ kube- dns-autoscaler Deployment.
205
205
206
206
207
207
0 commit comments