28 lines
550 B
Makefile
28 lines
550 B
Makefile
|
|
|
|
cluster: kind-config.yaml
|
|
kind create cluster --config kind-config.yaml
|
|
|
|
|
|
image: Dockerfile
|
|
docker build -t shoppinglist-frontend:latest .
|
|
|
|
load:
|
|
kind load docker-image shoppinglist-frontend:latest
|
|
|
|
apply:
|
|
kubectl apply -f k8s/
|
|
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.10.0/deploy/static/provider/kind/deploy.yaml
|
|
|
|
|
|
restart:
|
|
kubectl delete pod -l app=shoppinglist-frontend
|
|
|
|
|
|
check:
|
|
kubectl get pods
|
|
kubectl get pods -n ingress-nginx
|
|
|
|
watch:
|
|
kubectl get pods -l app=shoppinglist-frontend -w
|