@@ -33,12 +33,12 @@ kubectl get deployment --namespace=kube-system
3333
3434The output is similar to this:
3535
36- NAME READY UP-TO-DATE AVAILABLE AGE
36+ NAME READY UP-TO-DATE AVAILABLE AGE
3737 ...
38- dns-autoscaler 1/1 1 1 ...
38+ kube- dns-autoscaler 1/1 1 1 ...
3939 ...
4040
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
4242already enabled, and you can skip to
4343[ Tuning autoscaling parameters] ( #tuning-autoscaling-parameters ) .
4444
@@ -99,13 +99,13 @@ kubectl apply -f dns-horizontal-autoscaler.yaml
9999
100100The output of a successful command is:
101101
102- deployment.apps/dns-autoscaler created
102+ deployment.apps/kube- dns-autoscaler created
103103
104104DNS horizontal autoscaling is now enabled.
105105
106106## Tune DNS autoscaling parameters {#tuning-autoscaling-parameters}
107107
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:
109109
110110``` shell
111111kubectl get configmap --namespace=kube-system
@@ -115,13 +115,13 @@ The output is similar to this:
115115
116116 NAME DATA AGE
117117 ...
118- dns-autoscaler 1 ...
118+ kube- dns-autoscaler 1 ...
119119 ...
120120
121121Modify the data in the ConfigMap:
122122
123123``` shell
124- kubectl edit configmap dns-autoscaler --namespace=kube-system
124+ kubectl edit configmap kube- dns-autoscaler --namespace=kube-system
125125```
126126
127127Look for this line:
@@ -151,17 +151,17 @@ There are other supported scaling patterns. For details, see
151151There are a few options for tuning DNS horizontal autoscaling. Which option to
152152use depends on different conditions.
153153
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
155155
156156This option works for all situations. Enter this command :
157157
158158` ` ` shell
159- kubectl scale deployment --replicas=0 dns-autoscaler --namespace=kube-system
159+ kubectl scale deployment --replicas=0 kube- dns-autoscaler --namespace=kube-system
160160` ` `
161161
162162The output is :
163163
164- deployment.apps/dns-autoscaler scaled
164+ deployment.apps/kube- dns-autoscaler scaled
165165
166166Verify that the replica count is zero :
167167
@@ -171,37 +171,37 @@ kubectl get rs --namespace=kube-system
171171
172172The output displays 0 in the DESIRED and CURRENT columns :
173173
174- NAME DESIRED CURRENT READY AGE
174+ NAME DESIRED CURRENT READY AGE
175175 ...
176- dns-autoscaler-6b59789fc8 0 0 0 ...
176+ kube- dns-autoscaler-6b59789fc8 0 0 0 ...
177177 ...
178178
179- # ## Option 2: Delete the dns-autoscaler deployment
179+ # ## Option 2: Delete the kube- dns-autoscaler deployment
180180
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
182182no one will re-create it :
183183
184184` ` ` shell
185- kubectl delete deployment dns-autoscaler --namespace=kube-system
185+ kubectl delete deployment kube- dns-autoscaler --namespace=kube-system
186186` ` `
187187
188188The output is :
189189
190- deployment.apps "dns-autoscaler" deleted
190+ deployment.apps "kube- dns-autoscaler" deleted
191191
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
193193
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)
195195[Addon Manager](https://git.k8s.io/kubernetes/cluster/addons/README.md),
196196and you have write access to the master node.
197197
198198Sign 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 :
200200
201201 /etc/kubernetes/addons/dns-horizontal-autoscaler/dns-horizontal-autoscaler.yaml
202202
203203After the manifest file is deleted, the Addon Manager will delete the
204- dns-autoscaler Deployment.
204+ kube- dns-autoscaler Deployment.
205205
206206
207207
0 commit comments