Cheatsheet: Kubernetes with Talos Linux
Here’s a quick reference guide I put together to help manage my Talos Linux Kubernetes clusters… both at home and at work. Since kubectl is my main tool for daily operations, I hope this guide also proves useful to others navigating similar setups.
Cluster Info
kubectl cluster-info # Display cluster endpoint info
kubectl get nodes # List all nodes
kubectl describe node <name> # Detailed info on a specific node
Workloads
kubectl get pods # All pods in current namespace
kubectl get pods -A # All pods across all namespaces
kubectl describe pod <pod-name> # Inspect a pod in detail
kubectl logs <pod-name> # View logs from a pod
kubectl logs -f <pod-name> # Follow logs (streaming)
kubectl exec -it <pod-name> -- bash # Open shell into a container (if bash is available)
Deployments & Services
kubectl get deployments # List deployments
kubectl describe deployment <name> # Inspect a deployment
kubectl rollout restart deployment <name> # Restart deployment
kubectl get svc # List services
kubectl describe svc <name> # Service details
YAML Apply & Delete
kubectl apply -f <file.yaml> # Apply configuration
kubectl delete -f <file.yaml> # Delete resources from file
Access Secrets & ConfigMaps
kubectl get secrets # List secrets
kubectl get secret <name> -o yaml # View full secret
kubectl get configmap # List config maps
kubectl describe configmap <name> # Inspect a config map
Testing Tools
kubectl run tmp-shell --rm -i --tty --image=alpine -- sh
# Start a temporary alpine pod for quick tests or run hello world pod
Talos Specific Tips
While Talos doesn’t support SSH, you can use talosctl to interact directly:
talosctl kubeconfig # Grab kubeconfig from Talos
kubectl get nodes # Confirm communication with cluster
Cleanup Helpers
kubectl delete pod <pod-name> # Delete a broken pod
kubectl delete svc <service> # Remove a service
kubectl delete deployment <dep> # Remove a deployment
Aliases
Set these in your .bashrc or .zshrc to save time:
alias k="kubectl"
alias kgp="kubectl get pods"
alias kaf="kubectl apply -f"
alias kdf="kubectl delete -f"
I’ve always been someone who values doing things the right way. While you can run Kubernetes on almost any server, I believe Talos Linux provides an exceptional foundation — offering a secure, minimal, and purpose-built platform for running Kubernetes clusters.
-Franco