diff options
author | Quentin <quentin@dufour.io> | 2021-01-19 15:49:11 +0100 |
---|---|---|
committer | Quentin <quentin@dufour.io> | 2021-01-19 15:49:11 +0100 |
commit | af2b8b06babaa076798e8e2c2f4cf12b9d6e94fb (patch) | |
tree | e19c7deb1d866987b1a50dc3889e73dddf26609e /README.md | |
parent | eb925049ac4aab369763fbecb0caaec3579977a3 (diff) | |
parent | 98280c8628bc1df6197a1a830808bcd8631101bf (diff) | |
download | infrastructure-af2b8b06babaa076798e8e2c2f4cf12b9d6e94fb.tar.gz infrastructure-af2b8b06babaa076798e8e2c2f4cf12b9d6e94fb.zip |
Merge pull request 'master' (#30) from adrien/infrastructure:master into master
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/infrastructure/pulls/30
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 31 |
1 files changed, 26 insertions, 5 deletions
@@ -46,7 +46,7 @@ To ease the development, we make the choice of a fully integrated environment ### Deploying/Updating new services is done from your machine -*The following instructions are provided for ops that already have access to the servers.* +*The following instructions are provided for ops that already have access to the servers (meaning: their SSH public key is known by the cluster).* Deploy Nomad on your machine: @@ -74,16 +74,37 @@ Create an alias (and put it in your `.bashrc`) to bind APIs on your machine: alias bind_df="ssh \ -p110 \ -N \ + -L 1389:bottin2.service.2.cluster.deuxfleurs.fr:389 \ -L 4646:127.0.0.1:4646 \ - -L 8500:127.0.0.1:8500 \ - -L 8082:traefik-admin.service.2.cluster.deuxfleurs.fr:8082 \ -L 5432:psql-proxy.service.2.cluster.deuxfleurs.fr:5432 \ - -L 1389:bottin2.service.2.cluster.deuxfleurs.fr:389 \ + -L 8082:traefik-admin.service.2.cluster.deuxfleurs.fr:8082 \ + -L 8500:127.0.0.1:8500 \ <a server from the cluster>" ``` and run: + bind_df + +Adrien uses `.ssh/config` configuration instead. I works basically the same. Here it goes: + ``` -bind_df +# in ~/.ssh/config + +Host deuxfleurs + User adrien + Hostname deuxfleurs.fr + # If you don't use the default ~/.ssh/id_rsa to connect to Deuxfleurs + IdentityFile <some_key_path> + PubKeyAuthentication yes + ForwardAgent No + LocalForward 1389 bottin2.service.2.cluster.deuxfleurs.fr:389 + LocalForward 4646 127.0.0.1:4646 + LocalForward 5432 psql-proxy.service.2.cluster.deuxfleurs.fr:5432 + LocalForward 8082 traefik-admin.service.2.cluster.deuxfleurs.fr:8082 + LocalForward 8500 127.0.0.1:8500 ``` + +Now, to connect, do the following: + + ssh deuxfleurs -N |