backend-and-orchestration-t.../kubectl.md
2019-10-27 14:44:34 -07:00

62 lines
620 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>
```