You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pick a `<cluster-name>` that describes what cluster this is - we will be consistently using it for other files too.
69
+
70
+
Note the `.yml` here - everything else is `.yaml`!
71
+
72
+
2. Change the `server` field under `clusters.0.cluster` from `https://127.0.0.1:6443` to `https://<public-ip>:6443`.
73
+
74
+
## Create a new ssh key for mybinder team members
75
+
76
+
For easy access to this node for mybinder team members, we create and check-in an ssh key as
77
+
a secret.
78
+
79
+
1. Run `ssh-keygen -t ed25519 -f secrets/<cluster-name>.key` to create the ssh key. Leave the passphrase blank.
80
+
2. Set appropriate permissions with `chmod 0400 secrets/<cluster-name>.key`.
81
+
3. Copy `secrets/<cluster-name>.key.pub` (**NOTE THE .pub**) and paste it as a **new line** in `/root/.ssh/authorized_keys` on your server. Do not replace any existing lines in this file.
59
82
60
83
## Setup DNS entries
61
84
@@ -70,16 +93,31 @@ Add the following entries:
70
93
71
94
Give this a few minutes because it may take a while to propagate.
72
95
73
-
## Make a config copy for this new member
96
+
## Make a config + secret copy for this new member
97
+
98
+
Now we gotta start a config file and a secret config file for this new member. We can start off by copying an existing one!
74
99
75
-
TODO
100
+
Let's copy `config/hetzner-2i2c.yaml` to `config/<cluster-name>.yaml` and make changes!
76
101
77
-
## Make a secret config for this new member
102
+
1. Find all hostnames, and change them to point to the DNS entries you made in the previous step.
103
+
2. Change `ingress-nginx.controller.service.loadbalancerIP` to be the external public IP of your cluster
104
+
3. Adjust the following parameters based on the size of the server:
105
+
a. `binderhub.config.LaunchQuota.total_quota`
106
+
b. `dind.resources`
107
+
c. `imageCleaner`
108
+
4. TODO: Something about the registry.
78
109
79
-
TODO
110
+
We also need a secrets file, so let's copy `secrets/config/hetzner-2i2c.yaml` to `secrets/config/<cluster-name>.yaml` and make changes!
111
+
112
+
1. Find all hostnames, and change them to point to the DNS entries you made in the previous step.
113
+
2. TODO: Something about the registry
80
114
81
115
## Deploy binder!
82
116
117
+
Let's tell `deploy.py` script that we have a new cluster by adding `<cluster-name>` to `KUBECONFIG_CLUSTERS` variable in `deploy.py`.
118
+
119
+
Once done, you can do a deployment with `./deploy.py <cluster-name>`! If it errors out, tweak and debug until it works.
0 commit comments