---
# System prepended metadata

title: Cheat Sheet

---

# TP
## Ex1:
- High availability
- How to write Deployment
- How to write Pod
- How to write Service
# Cheat Sheet

## Minikube 
Check version: 
```
minikube version
```
Get status:
```
minikube status
```
Start a cluster:
```
minikube start
```

Open dashboard
```
minikube dashboard
```

Get Minikube node's ip address:
```
minikube ip
```

Delete node:
```
minikube delete node <node-name>
```

Stop local cluster:
```
minikube stop
```

Delete local cluster:
```
minikube delete 
```

## Kubectl

Check version:
```
kubectl version 
```

Get basic info about k8s components
```
kubectl get deployment
```
```
kubectl get node
```
```
kubectl get pod
```
```
kubectl get service
```
Get detailed information about a specific component:
```
kubectl describe node 
kubectl describe deployment
kubectl describe pod 
kubectl describe pod <pod-name>
```

Run component:
```
kubectl apply -f <file-name>
```

Delete component:
```
kubectl delete deployment/<deployment-name>
```
```
kubectl delete service/<service-name>
```