Skip to content

4-o-4/42-services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

services

Kubernetes logo

Install minikube

brew install minikube
export MINIKUBE_HOME=$HOME/goinfre

Kubectl

# Create a pod from a YAML file
kubectl create -f <yourfile.yaml>

# Get the pod
kubectl get pods

# Get shell in a pod
kubectl exec -it <pod name> -- /bin/sh

# Restart a deployment
kubectl rollout restart deployment <name>

# Delete a YAML file
kubectl delete -f <file.yaml>

# Delete deployment
kubectl delete deployment <your deployment>

# Launch minikube dashboard
minikube dashboard

# Get cluster external IP
minikube ip

# Reset Minikube VM
minikube delete

Ressources