This commit is contained in:
Waylon Walker 2023-11-12 11:34:39 -06:00
parent 9558e187ab
commit e0486cd1b2
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
11 changed files with 1045 additions and 0 deletions

24
home/justfile Normal file
View file

@ -0,0 +1,24 @@
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:
docker build -t registry.wayl.one/wayl-one -f Dockerfile .
tag:
docker tag registry.wayl.one/wayl-one registry.wayl.one/wayl-one:$(git rev-parse --short HEAD)
test:
docker run -p 5556:80 registry.wayl.one/wayl-one
push:
docker push registry.wayl.one/wayl-one:$(git rev-parse --short HEAD)
docker push registry.wayl.one/wayl-one:latest
set-image:
kubectl set image deployment/shot-wayl-one --namespace shot shot-wayl-one=registry.wayl.one/wayl-one:$(git rev-parse --short HEAD)
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