-
Tech should learn
-
AWS(Draft)
-
DevOps Essentials
- DevOps Essentials
- 1. What DevOps really is
- 2. Life before DevOps
- 3. DevOps SDLC.
- 4. DevOps principles
- 6. DevOps Metrics
- 7. DevOps Leadership - People & Change leadership
- 8. Designing a DevOps transformation strategy.
- 9. DevSecOps - Security Embedded into DevOps
- 10. Site Reliability Engineering (SRE).
-
DevSecOps Essentials(Draft)
-
CI/CD
-
Docker
- Docker Mastery
- 1. The Compute Evolution Physical vs. Virtual vs. Containerization
- 2. Docker Internals
- 3. Docker Image Engineering
- 4. Registries and The Secure Supply Chain
- 5. Multi-Container Orchestration - Docker Compose
- 6. Docker Networking: The Connectivity Matrix
- 7. Docker Storage: The Persistence Layer
- 8. Docker Observability: The Eyes and Ears of Your Microservices
- 9. Hardening Security for Containers
- Writing Dockerfile
- Docker Commands
-
Kubernetes (Draft)
-
Programming
-
Python
< All Topics
kubectl: The Kubernetes Commands
Posted
Updated
Author -Rajkumar Aute
Views5
To interact with a Kubernetes cluster, we use a command-line tool called kubectl.
The basic syntax for every command is:
kubectl [command] [TYPE] [NAME] [flags]
- Command: What you want to do (
get,describe,create,delete). - Type: The resource you are touching (
pod,service,deployment,node). - Name: The specific name of the resource (optional if you want to list everything).
- Flags: Extra options (like
-nfor namespace or-ofor output format).
Must-Know Commands
| Category | Command | What it does (Simple English) |
| Viewing | kubectl get pods | Lists all pods in the default namespace. |
kubectl get pods -o wide | Shows more details like IP address and Node name. | |
kubectl get all | Shows pods, services, deployments, etc. | |
| Inspection | kubectl describe pod [name] | “Show me the medical report.” Gives detailed history/errors. |
kubectl logs [pod-name] | “Show me the diary.” See what the application printed out. | |
| Action | kubectl delete pod [name] | Deletes the pod (K8s will usually restart it!). |
kubectl apply -f [file.yaml] | “Make it happen.” Creates/Updates resources from a file. | |
| Access | kubectl exec -it [pod-name] -- /bin/bash | “Log in.” Opens a shell inside the container. |
Official kubectl commands links
https://kubernetes.io/docs/reference/kubectl/quick-reference
https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands
Contents