Learn Kubernetes fundamentals / Formation Kubernetes et les micro-services
All slides are on our website
Check the Framapad
df
command as below to find its size.sudo df –sh /var/lib/docker # or /var/snap/docker/common/var-lib-docker/
sudo
accesssudo apt-get install curl docker.io git vim
# then add current user to docker group
sudo usermod -a -G docker $USER
# command below, or restart gnome session
newgrp docker
Follow official instructions at: https://github.com/k8s-school/k8s-toolbox
ktbx desk
then validate Kubernetes is up and running
# Check k8s cluster is up and running
kubectl get nodes
# Launch an ubuntu pod from Docker Hub
kubectl run -it --rm shell --image=ubuntu --restart=Never -- date
# Launch an other pod from gcr.io
kubectl run shell --image=gcr.io/kuar-demo/kuard-amd64:1 --restart=Never
# Open a shell inside it and exit
kubectl exec -it shell -- ash
exit
kubectl delete pod shell
Retrieve k8s-school's examples, demos and exercices by running script below inside toolbox
container:
clone-school.sh
# Play with kubectl and yaml files :-)