kube/camtiler/README.md

40 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2022-08-16 09:40:54 +00:00
To apply changes:
```
2022-12-18 14:28:45 +00:00
kubectl apply -n camtiler \
-f application.yml \
2023-05-18 19:55:40 +00:00
-f minio.yml \
2022-12-18 14:28:45 +00:00
-f mongoexpress.yml \
-f mongodb-support.yml \
-f camera-tiler.yml \
-f logmower.yml \
-f ingress.yml \
-f network-policies.yml \
-f networkpolicy-base.yml
2022-08-16 09:40:54 +00:00
```
To deploy changes:
```
kubectl -n camtiler rollout restart deployment.apps/camtiler
```
To initialize secrets:
```
kubectl create secret generic -n camtiler mongodb-application-readwrite-password --from-literal="password=$(cat /dev/urandom | base64 | head -c 30)"
kubectl create secret generic -n camtiler mongodb-application-readonly-password --from-literal="password=$(cat /dev/urandom | base64 | head -c 30)"
2022-12-12 18:37:03 +00:00
kubectl create secret generic -n camtiler minio-secrets \
2022-08-16 09:40:54 +00:00
--from-literal="MINIO_ROOT_USER=root" \
2022-12-12 18:37:03 +00:00
--from-literal="MINIO_ROOT_PASSWORD=$(cat /dev/urandom | base64 | head -c 30)"
2022-08-16 09:40:54 +00:00
kubectl -n camtiler create secret generic camera-secrets \
--from-literal=username=... \
--from-literal=password=...
```
2022-12-18 14:28:45 +00:00
To restart all deployments:
```
for j in $(kubectl get deployments -n camtiler -o name); do kubectl rollout restart -n camtiler $j; done
```