mirror of
https://github.com/autistic-symposium/backend-and-orchestration-toolkit.git
synced 2025-06-08 23:13:08 -04:00
🍣 Rename kubectl
This commit is contained in:
parent
e5c1842926
commit
252cd9e1d4
1 changed files with 62 additions and 0 deletions
62
references_for_kubectl.md
Normal file
62
references_for_kubectl.md
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
## 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>
|
||||||
|
```
|
Loading…
Add table
Add a link
Reference in a new issue