2025-06-21 06:24:33 +00:00
|
|
|
|
2025-06-23 15:29:41 +00:00
|
|
|
|
2025-06-23 23:10:05 +00:00
|
|
|
all: cluster image load apply restart watch
|
|
|
|
|
|
2025-06-23 15:29:41 +00:00
|
|
|
cluster: kind-config.yaml
|
|
|
|
|
kind create cluster --config kind-config.yaml
|
|
|
|
|
|
|
|
|
|
|
2025-06-21 06:24:33 +00:00
|
|
|
image: Dockerfile
|
|
|
|
|
docker build -t shoppinglist-frontend:latest .
|
|
|
|
|
|
|
|
|
|
load:
|
|
|
|
|
kind load docker-image shoppinglist-frontend:latest
|
|
|
|
|
|
|
|
|
|
apply:
|
|
|
|
|
kubectl apply -f k8s/
|
2025-06-23 19:52:49 +00:00
|
|
|
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.10.0/deploy/static/provider/kind/deploy.yaml
|
|
|
|
|
|
2025-06-21 06:24:33 +00:00
|
|
|
|
|
|
|
|
restart:
|
|
|
|
|
kubectl delete pod -l app=shoppinglist-frontend
|
|
|
|
|
|
2025-06-23 19:52:49 +00:00
|
|
|
|
|
|
|
|
check:
|
|
|
|
|
kubectl get pods
|
|
|
|
|
kubectl get pods -n ingress-nginx
|
|
|
|
|
|
2025-06-21 06:24:33 +00:00
|
|
|
watch:
|
|
|
|
|
kubectl get pods -l app=shoppinglist-frontend -w
|