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