Adding coder as a new app

This commit is contained in:
Moritz Graf 2024-04-21 14:53:13 +02:00
parent 030050d156
commit 150cbc85b4
3 changed files with 39 additions and 2 deletions

View File

@ -117,6 +117,34 @@ DATE=$( date +%Y%m%d )
velero backup create $DATE --include-namespaces datalab,development,nextcloud,tt-rss,mailu --wait
```
## coder
Coder is a code server see [https://coder.com/docs/v2/latest/install/kubernetes](https://coder.com/docs/v2/latest/install/kubernetes).
```sh
kubectl create namespace coder
# Install PostgreSQL
helm repo add bitnami https://charts.bitnami.com/bitnami
# create secret for postgresdb
kubectl apply -f coder/postgres_users.secret.yaml
helm upgrade --install coder-db bitnami/postgresql \
-n coder \
-f coder/bitnami_postgresql.secret.yaml \
--version 15.2.5
# db url postgres://coder:<password>@coder-db-postgresql.coder.svc.cluster.local:5432/coder?sslmode=disable
# Uses Bitnami PostgreSQL example. If you have another database,
# change to the proper URL.
USERPASS=$( kubectl get secret -n coder coder-db-postgresql -o=jsonpath='{.data.password}' | base64 -D )
kubectl create secret generic coder-db-url -n coder \
--from-literal=url="postgres://coder:${USERPASS}@coder-db-postgresql.coder.svc.cluster.local:5432/coder?sslmode=disable"
helm repo add coder-v2 https://helm.coder.com/v2
#
helm upgrade --install coder coder-v2/coder \
--namespace coder \
--values coder/coder.secret.yaml \
--version 2.10.0
```
## Add private docker registry
**TODO: chart no longer exists. Check how to replace this someday.**
@ -241,8 +269,6 @@ k create ns ameliegraf
k apply -f ameliegraf/ameliegraf.yml
```
# Deployment (persistent stuff)
From here everything should be covered by the backup. Implenting those objects should already be performed by the velero backup.
@ -285,6 +311,17 @@ for i in "${NAMESPACES_TO_ALERT[@]}"; do
done
```
### home-assistant hass
Install chart:
```sh
helm repo add pajikos http://pajikos.github.io/home-assistant-helm-chart/
helm repo update
#helm show values pajikos/home-assistant > ./home-assistant/home-assistant.yaml
helm install home-assistant pajikos/home-assistant
```
### robusta
```sh

Binary file not shown.

BIN
k8s/coder/coder.secret.yaml Normal file

Binary file not shown.