- Docker
- Curl
- Install minikube: https://kubernetes.io/docs/tasks/tools/install-minikube/
- Start minikube:
minikube start
- Reuse Docker daemon:
eval $(minikube docker-env)
- Build hello-world image:
docker build -t hello:latest .
- Apply hello-world deployment:
kubectl -f deployment.yml
- Expose hello-world service:
kubectl expose deployment hello-world --type=LoadBalancer --port=8080
- Access it via minikube service:
curl $(minikube service --url hello-world)
Explore kubernetes with:
kubectl get pods
kubectl get deploy/hello-world
kubectl get service/hello-world