diff --git a/k8s/README.md b/k8s/README.md index ed731dc..b3b3fa7 100644 --- a/k8s/README.md +++ b/k8s/README.md @@ -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:@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 diff --git a/k8s/coder/bitnami_postgresql.secret.yaml b/k8s/coder/bitnami_postgresql.secret.yaml new file mode 100644 index 0000000..f816832 Binary files /dev/null and b/k8s/coder/bitnami_postgresql.secret.yaml differ diff --git a/k8s/coder/coder.secret.yaml b/k8s/coder/coder.secret.yaml new file mode 100644 index 0000000..7a69d5d Binary files /dev/null and b/k8s/coder/coder.secret.yaml differ