Update 05-kubernetes-configuration-files.md
condensing for statements for controller and workers.pull/548/head
parent
5c462220b7
commit
beb3023ecb
|
@ -27,7 +27,7 @@ When generating kubeconfig files for Kubelets the client certificate matching th
|
|||
Generate a kubeconfig file for each worker node:
|
||||
|
||||
```
|
||||
for instance in worker-0 worker-1 worker-2; do
|
||||
for instance in worker-{0..2}; do
|
||||
kubectl config set-cluster kubernetes-the-hard-way \
|
||||
--certificate-authority=ca.pem \
|
||||
--embed-certs=true \
|
||||
|
@ -198,7 +198,7 @@ admin.kubeconfig
|
|||
Copy the appropriate `kubelet` and `kube-proxy` kubeconfig files to each worker instance:
|
||||
|
||||
```
|
||||
for instance in worker-0 worker-1 worker-2; do
|
||||
for instance in worker-{0..2}; do
|
||||
gcloud compute scp ${instance}.kubeconfig kube-proxy.kubeconfig ${instance}:~/
|
||||
done
|
||||
```
|
||||
|
@ -206,7 +206,7 @@ done
|
|||
Copy the appropriate `kube-controller-manager` and `kube-scheduler` kubeconfig files to each controller instance:
|
||||
|
||||
```
|
||||
for instance in controller-0 controller-1 controller-2; do
|
||||
for instance in controller-{0..2}; do
|
||||
gcloud compute scp admin.kubeconfig kube-controller-manager.kubeconfig kube-scheduler.kubeconfig ${instance}:~/
|
||||
done
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue