29 lines
422 B
Makefile
29 lines
422 B
Makefile
|
|
|
|
all: cluster image load apply restart watch
|
|
|
|
# TODO: maybe background this?
|
|
cluster:
|
|
k3d cluster create mycluster
|
|
k3d cluster list
|
|
|
|
image: Dockerfile
|
|
docker build -t shoppinglist-frontend:latest .
|
|
|
|
load:
|
|
k3d image import shoppinglist-frontend:latest -c mycluster
|
|
|
|
apply:
|
|
kubectl apply -f k8s/
|
|
|
|
restart:
|
|
kubectl delete pod -l app=shoppinglist-frontend
|
|
|
|
watch:
|
|
kubectl get pods -l app=shoppinglist-frontend -w
|
|
|
|
|
|
|
|
|
|
|