mirror of
https://github.com/autistic-symposium/backend-and-orchestration-toolkit.git
synced 2025-06-08 15:02:55 -04:00
62 lines
613 B
Markdown
62 lines
613 B
Markdown
## Kubectl Commands
|
|
|
|
|
|
### **Pods**
|
|
|
|
Get pods:
|
|
|
|
```
|
|
kubectl get pods -n <namespace>
|
|
```
|
|
|
|
Debug pods:
|
|
|
|
```
|
|
kubectl describe pod <podname>
|
|
```
|
|
|
|
Get pod's log:
|
|
|
|
```
|
|
kubectl logs <podname>
|
|
```
|
|
|
|
### **Services**
|
|
|
|
Get services:
|
|
|
|
```
|
|
kubectl get services -n <namespace>
|
|
```
|
|
|
|
### **Deployments**
|
|
|
|
Get deployments:
|
|
|
|
```
|
|
kubectl get deployment -n <namespace>
|
|
```
|
|
|
|
### **Secrets**
|
|
|
|
```
|
|
kubectl get secret
|
|
```
|
|
|
|
### **Namespaces**
|
|
|
|
```
|
|
kubectl get namespaces
|
|
```
|
|
|
|
### **Configmaps**
|
|
|
|
```
|
|
kubectl get configmaps -n <namespace>
|
|
```
|
|
|
|
### **Ingress**
|
|
|
|
```
|
|
kubectl get ingress -n <namespace>
|
|
```
|