Friday, April 6, 2018

The Kubernetes Book by Nigel Poulton

I have learned much more from "Kubernetes Webinar Series" freely available on youtube. Unless you are a really total beginner, you have already heard/read most of the stuff in this book.

https://en.wikipedia.org/wiki/Kubernetes


https://labs.play-with-k8s.com/

on node1:

kubeadm init --apiserver-advertise-address $(hostname -i)
kubectl version | base64 |tr -d '\n'
kubectl version
kubectl apply -n kube-system -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 |tr -d'\n')"
kubectl apply -f https://k8s.io/docs/user-guide//nginx-app.yaml
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
whoami
cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
kubectl
id
cd
cd .kube
ls -ltra
vi config
kubectl get nodes

on node2:

hostname
kubeadm join --token 523042.dd2ec91db1bf45d0 192.168.112.2:6443 --discovery-token-ca-cert-hash sha256:c48cc070ad8759a57293a41598c197a48faba5deb3f1475fd127713b4fc32aeb



No comments: