backend-and-orchestration-t.../kubernetes/references_for_kubectl.md
2022-03-23 14:59:51 +04:00

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>
```