kubectl
kubectl
Manage Kubernetes clusters using kubectl CLI.
Environment Variables
KUBECONFIG- Path to kubeconfig file (optional, defaults to~/.kube/config)
Cluster info
kubectl cluster-info
kubectl get nodes -o wide
List resources
kubectl get pods -A --no-headers | head -30
kubectl get deployments -n default
kubectl get services -n default
kubectl get namespaces
Describe a resource
kubectl describe pod my-pod -n default
kubectl describe deployment my-app -n default
View logs
kubectl logs deployment/my-app -n default --tail=50
kubectl logs my-pod -n default -c my-container --tail=100
Scale deployment
kubectl scale deployment my-app --replicas=3 -n default
Restart deployment (rolling)
kubectl rollout restart deployment/my-app -n default
Rollout status
kubectl rollout status deployment/my-app -n default
Rollout history
kubectl rollout history deployment/my-app -n default
Apply manifest
kubectl apply -f /tmp/manifest.yaml
Get resource as YAML
kubectl get deployment my-app -n default -o yaml
Port forward
kubectl port-forward svc/my-service 8080:80 -n default &
Get events
kubectl get events -n default --sort-by='.lastTimestamp' | tail -20
Top (resource usage)
kubectl top pods -n default
kubectl top nodes
Notes
- Always specify
-n namespaceto avoid operating on the wrong namespace. - Use
--dry-run=client -o yamlto preview changes before applying. - Confirm before running destructive operations (delete, scale to 0, drain).
- For multi-cluster setups, use
kubectl config use-contextto switch contexts.
More from thinkfleetai/thinkfleet-engine
local-whisper
Local speech-to-text using OpenAI Whisper. Runs fully offline after model download. High quality transcription with multiple model sizes.
149flyio-cli-public
Use the Fly.io flyctl CLI for deploying and operating apps on Fly.io: deploys (local or remote builder), viewing status/logs, SSH/console, secrets/config, scaling, machines, volumes, and Fly Postgres (create/attach/manage databases). Use when asked to deploy to Fly.io, debug fly deploy/build/runtime failures, set up GitHub Actions deploys/previews, or safely manage Fly apps and Postgres.
24kagi-search
Web search using Kagi Search API. Use when you need to search the web for current information, facts, or references. Requires KAGI_API_KEY in the environment.
22bambu-local
Control Bambu Lab 3D printers locally via MQTT (no cloud). Supports A1, A1 Mini, P1P, P1S, X1C.
10voice-transcribe
Transcribe audio files using OpenAI's gpt-4o-mini-transcribe model with vocabulary hints and text replacements. Requires uv (https://docs.astral.sh/uv/).
10video-subtitles
Generate SRT subtitles from video/audio with translation support. Transcribes Hebrew (ivrit.ai) and English (whisper), translates between languages, burns subtitles into video. Use for creating captions, transcripts, or hardcoded subtitles for WhatsApp/social media.
10