homelab/home/justfile
2025-11-22 22:20:32 -06:00

24 lines
878 B
Makefile

default: convert deploy viz
regcred:
kubectl get secret -n default regcred --output=yaml -o yaml | sed 's/namespace: default/namespace: wayl-one/' | kubectl apply -n wayl-one -f - && echo deployed secret || echo secret exists
build:
podman build -t waylonwalker/wayl-one -f Dockerfile .
tag:
podman tag waylonwalker/wayl-one waylonwalker/wayl-one:v1
test:
podman run -p 5556:80 waylonwalker/wayl-one
push:
podman push waylonwalker/wayl-one:v1
podman push waylonwalker/wayl-one:latest
set-image:
kubectl set image deployment/shot-wayl-one --namespace shot shot-wayl-one=waylonwalker/wayl-one:v1
convert:
kompose convert -o deployment.yaml -n wayl-one
deploy:
kubectl apply -f deployment.yaml
viz:
k8sviz -n wayl-one --kubeconfig $KUBECONFIG -t png -o wayl-one-k8s.png
restart:
kubectl rollout restart -n wayl-one deployment/wayl-one