# Kubernetes Notes ## Install & Run **k3s** - Lightweight Kubernetes. Production ready, easy to install, half the memory, all in a binary less than 100 MB. ``` git clone https://github.com/k3s-io/k3s.git cd k3s K3S_TOKEN=qwerty123 docker-compose up -d ``` ## Load Config Load new cluster config ``` export KUBECONFIG=kubeconfig.yaml ``` ## Work with Nodes List Kubernetes nodes ``` kubectl get nodes ``` Detailed Kubernetes nodes ``` kubectl get nodes -o wide ``` Check nodes resource ``` kubectl top nodes ``` ## First pod Create pod ``` kubectl apply -f ../manifests/first-steps/nginx-pod.yml ``` Pod list ``` kubectl get pods ``` Forward port for connect ``` kubectl port-forward static-web 8080:80 ``` Access nginx pod ``` curl localhost:8080 ``` Describe pod ``` kubectl describe pod static-web ```