Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Kubernetes

Container orchestration platform originally developed by Google, now governed by the CNCF.

  • OpenShift - enterprise Kubernetes distribution by Red Hat

Quick start

# Install kubectl
curl -LO "https://dl.k8s.io/release/$(curl -Ls https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl && mv kubectl /usr/local/bin/

# Basic commands
kubectl get nodes
kubectl get pods -A
kubectl apply -f manifest.yaml
kubectl logs <pod> -f
kubectl exec -it <pod> -- bash

Build from source

git clone https://github.com/kubernetes/kubernetes.git
cd kubernetes
make

Ansible roles

Resources