syncthing working

This commit is contained in:
Waylon Walker 2023-10-29 18:03:20 -05:00
parent f3422bfb4a
commit 12452de0b5
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
4 changed files with 216 additions and 19 deletions

31
syncthing/justfile Normal file
View file

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