minor updates
parent
d30f6cdffd
commit
d027254144
|
@ -57,11 +57,12 @@ LOADBALANCER_ADDRESS=192.168.5.30
|
||||||
Generate a kubeconfig file for the first worker node:
|
Generate a kubeconfig file for the first worker node:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
{
|
||||||
kubectl config set-cluster kubernetes-the-hard-way \
|
kubectl config set-cluster kubernetes-the-hard-way \
|
||||||
--certificate-authority=ca.crt \
|
--certificate-authority=ca.crt \
|
||||||
--embed-certs=true \
|
--embed-certs=true \
|
||||||
--server=https://${LOADBALANCER_ADDRESS}:6443 \
|
--server=https://${LOADBALANCER_ADDRESS}:6443 \
|
||||||
--kubeconfig=${instance}.kubeconfig
|
--kubeconfig=worker-1.kubeconfig
|
||||||
|
|
||||||
kubectl config set-credentials system:node:worker-1 \
|
kubectl config set-credentials system:node:worker-1 \
|
||||||
--client-certificate=worker-1.crt \
|
--client-certificate=worker-1.crt \
|
||||||
|
@ -75,7 +76,7 @@ Generate a kubeconfig file for the first worker node:
|
||||||
--kubeconfig=worker-1.kubeconfig
|
--kubeconfig=worker-1.kubeconfig
|
||||||
|
|
||||||
kubectl config use-context default --kubeconfig=worker-1.kubeconfig
|
kubectl config use-context default --kubeconfig=worker-1.kubeconfig
|
||||||
done
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Results:
|
Results:
|
||||||
|
@ -92,6 +93,8 @@ master-1$ scp ca.crt worker-1.crt worker-1.key worker-1.kubeconfig worker-1:~/
|
||||||
|
|
||||||
### Download and Install Worker Binaries
|
### Download and Install Worker Binaries
|
||||||
|
|
||||||
|
Going forward all activities are to be done on the `worker-1` node.
|
||||||
|
|
||||||
```
|
```
|
||||||
worker-1$ wget -q --show-progress --https-only --timestamping \
|
worker-1$ wget -q --show-progress --https-only --timestamping \
|
||||||
https://storage.googleapis.com/kubernetes-release/release/v1.13.0/bin/linux/amd64/kubectl \
|
https://storage.googleapis.com/kubernetes-release/release/v1.13.0/bin/linux/amd64/kubectl \
|
||||||
|
|
Loading…
Reference in New Issue