k8 kompose photoview

This commit is contained in:
Waylon Walker 2023-10-29 18:04:56 -05:00
parent b3219b2b95
commit 2fb1980e28
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
6 changed files with 350 additions and 26 deletions

31
photoview/justfile Normal file
View file

@ -0,0 +1,31 @@
default: cred convert deploy viz
update: convert patch
create-ns:
kubectl create ns photoview
cred:
kubectl get secret -n default regcred --output=yaml -o yaml | sed 's/namespace: default/namespace: photoview/' | kubectl apply -n photoview -f - && echo deployed secret || echo secret exists
convert:
kompose convert -o deployment.yaml -n photoview
deploy:
kubectl apply -f deployment.yaml
delete:
kubectl delete all --all -n photoview --timeout=0s
viz:
k8sviz -n photoview --kubeconfig $KUBECONFIG -t png -o photoview-k8s.png
restart:
kubectl rollout restart -n photoview deployment/photoview
patch:
kubectl patch -f deployment.yaml
describe:
kubectl get deployment -n photoview
kubectl get rs -n photoview
kubectl get pod -n photoview
kubectl get svc -n photoview
kubectl get ing -n photoview
describe-pod:
kubectl describe pod -n photoview
logs:
kubectl logs --all-containers -l io.kompose.service=photoview-wayl-one -n photoview -f