Skip to content
Snippets Groups Projects
Commit 9e123601 authored by Théo Zimmermann's avatar Théo Zimmermann
Browse files

Fixes regarding Helm after discussing with Nicolas.

parent e5d80609
No related branches found
No related tags found
No related merge requests found
...@@ -200,16 +200,15 @@ Copy the `postgresql-pvc.yml`, `postgresql-values.yml`, and `coder-values.yml` f ...@@ -200,16 +200,15 @@ Copy the `postgresql-pvc.yml`, `postgresql-values.yml`, and `coder-values.yml` f
scp -J ubuntu@137.194.210.143 postgresql-pvc.yml postgresql-values.yml coder-values.yml core@$MASTER_IP:/tmp scp -J ubuntu@137.194.210.143 postgresql-pvc.yml postgresql-values.yml coder-values.yml core@$MASTER_IP:/tmp
``` ```
Once the files are copied, log in to the master node and install Coder. Once the files are copied, log in to the master node and install Coder. In the commands below, we use versions of PostgreSQL and Coder that are known to work with Helm 3.2, which is installed by Magnum. But it is also possible to install a newer version of Helm first (see the method documented in [kube-jupyterhub.md](kube-jupyterhub.md)).
```bash ```bash
ssh -J ubuntu@137.194.210.143 core@$MASTER_IP ssh -J ubuntu@137.194.210.143 core@$MASTER_IP
sudo -i sudo -i
rpm-ostree install helm # no reboot required
kubectl create namespace coder kubectl create namespace coder
kubectl apply -f /tmp/postgresql-pvc.yml -n coder kubectl apply -f /tmp/postgresql-pvc.yml -n coder
helm repo add bitnami https://charts.bitnami.com/bitnami helm repo add bitnami https://charts.bitnami.com/bitnami
helm install coder-db bitnami/postgresql -n coder -f /tmp/postgresql-values.yml --version 13.0.0 # latest compatible version with Helm 3.2 and thus coreos 38 helm install coder-db bitnami/postgresql -n coder -f /tmp/postgresql-values.yml --version 13.0.0 # latest compatible version with Helm 3.2 which is installed by Magnum
kubectl create secret generic coder-db-url -n coder --from-literal=url="postgres://coder:coder@coder-db-postgresql.coder.svc.cluster.local:5432/coder?sslmode=disable" kubectl create secret generic coder-db-url -n coder --from-literal=url="postgres://coder:coder@coder-db-postgresql.coder.svc.cluster.local:5432/coder?sslmode=disable"
helm repo add coder-v2 https://helm.coder.com/v2 helm repo add coder-v2 https://helm.coder.com/v2
helm install coder coder-v2/coder --namespace coder --values /tmp/coder-values.yml --version 2.13.5 # Latest stable version helm install coder coder-v2/coder --namespace coder --values /tmp/coder-values.yml --version 2.13.5 # Latest stable version
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment