kubectl
CLIKubernetes command-line tool for controlling clusters.
0 views
Installation
Homebrew
brew install kubectlLinks
License
Apache-2.0AI Agent Notes
Control Kubernetes clusters: deploy, inspect, and manage workloads
When to use
Managing Kubernetes resources, debugging pods, checking cluster state
Examples
kubectl get podskubectl apply -f deploy.yamlkubectl logs -f pod-name
Proven Recipes
List all pods in namespace🟢 99% success
kubectl get pods -n namespaceTail logs from a pod🟢 98% success
kubectl logs -f pod-name -n namespaceApply manifest file🟢 97% success
kubectl apply -f deploy.yamlGet shell in running pod🟢 95% success
kubectl exec -it pod-name -- /bin/bash⚠ Common failures (1)
- OCI runtime error → Use /bin/sh if bash is not installed in the container