Initial
This commit is contained in:
22
docs/progs/kubernetes.md
Normal file
22
docs/progs/kubernetes.md
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
```bash
|
||||
mkdir -p $HOME/.kube
|
||||
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
|
||||
sudo chown $(id -u):$(id -g) $HOME/.kube/config
|
||||
```
|
||||
|
||||
Alternatively, if you are the root user, you can run:
|
||||
```bash
|
||||
export KUBECONFIG=/etc/kubernetes/admin.conf
|
||||
```
|
||||
|
||||
You should now deploy a pod network to the cluster.
|
||||
Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at:
|
||||
https://kubernetes.io/docs/concepts/cluster-administration/addons/
|
||||
|
||||
Then you can join any number of worker nodes by running the following on each as root:
|
||||
|
||||
```bash
|
||||
kubeadm join 10.0.0.1:6443 --token 000000.0000000000000000 \
|
||||
--discovery-token-ca-cert-hash sha256:0000000000000000000000000000000000000000000000000000000000000000
|
||||
```
|
Reference in New Issue
Block a user