brew install minikube
export MINIKUBE_HOME=$HOME/goinfre
# 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
- Complete Intro to Containers
- Kubernetes NodePort vs LoadBalancer vs Ingress? When should I use what?
- Kubernetes Documentation
- How To Deploy a PHP Application with Kubernetes
- Deploy your first scaleable PHP/MySQL Web application in Kubernetes
- Understanding the HTTP 307 Temporary Redirect Status Code in Depth