Kubernetes
Install K3S
https://github.com/k3s-io/k3s#quick-start—install-script
Usefull commands
Nodes
# Show basic info for all nodes
sudo kubectl get nodes
# Show detailed info for all nodes
sudo kubectl describe nodes
Pods
# Get all pods
sudo kubectl get pods -A
Deployment
# Create a new deployment
sudo kubectl create deployment <name-of-deployment> --image=<registry-ip>:<port>/<image>
# Remove deployment
sudo kubectl delete deployment <name-of-deployment>
# Scale Deployment
sudo kubectl scale deployments/<name-of-deployment> --replicas=3
# Show details of the specified deployment
sudo kubectl describe pod -l app=<application/deployment>
K8S
git clone https://github.com/kubernetes/kubernetes
cd kubernetes
make quick-release
sudo snap install microk8s --classic
microk8s status --wait-ready
microk8s enable dashboard dns registry istio
# Show Infos about Kubernetes
microk8s kubectl get all --all-namespaces
microk8s dashboard-proxy