🐹 Add domain fix from radex

master
cheshire 2023-10-14 14:23:43 +02:00
parent 07aa1b8b39
commit 21c705b42e
2 changed files with 9 additions and 8 deletions

View File

@ -49,7 +49,7 @@ local kube = import "../../kube/kube.libsonnet."
The import is done from the `kube.libsonnet` file in the `kube` folder in the `hscloud` folder. In order for the import to proceed correctly in this case, we need to go back one more folder: `../../../kube/kube.libsonnet`.
The `hscloud` configuration only allows the namespace in `personal-$hs_username` format. In addition, we need to change the domain to `test.hscloud.ovh`. Finally, we change the service name to `test`.
The `hscloud` configuration only allows the namespace in `personal-$hs_username` format. In addition, we need to change the domain to `*.$hs_username.hscloud.ovh`. Finally, we change the service name to `test`.
Finally, the above fragment of the `prod.jsonnet` file should look like this (remember to replace `$hs_username` with your username!):
@ -65,7 +65,7 @@ local kube = import "../../../kube/kube.libsonnet";
cfg:: {
name: 'test',
namespace: 'profile-$hs_username',
domain: '$hs_username-test.hscloud.ovh',
domain: 'test.$hs_username.hscloud.ovh',
image: 'registry.k0.hswaw.net/radex/ldap-web:1695486391',
},
...
@ -84,7 +84,7 @@ We invoke the command to apply the changes:
kubecfg update prod.jsonnet
```
Our service should be at `https://$hs_username-test.hscloud.ovh/`. During the first couple of minutes we will get a message about an invalid certificate, because the Let's Encrypt service has not yet managed to generate a certificate for our domain.
Our service should be at `https://test.$hs_username.hscloud.ovh/`. During the first couple of minutes we will get a message about an invalid certificate, because the Let's Encrypt service has not yet managed to generate a certificate for our domain.
To remove the service, call:
@ -95,5 +95,5 @@ kubectl delete -f deployment.json
or
```bash
kubectl delete service $hs_username-test -n personal-$hs_username
kubectl delete service test -n personal-$hs_username
```

View File

@ -49,7 +49,8 @@ local kube = import "../../kube/kube.libsonnet";
Import następuje z pliku `kube.libsonnet` w folderze `kube` w folderze `hscloud`. Aby w tym wypadku import przebiegał poprawnie, potrzebujemy cofnąć się o jeden folder więcej: `../../../kube/kube.libsonnet`.
Konfiguracja `hscloud` pozwala na przestrzeń nazw jedynie w formacie `personal-$hs_username`. Dodatkowo, musimy zmienić domenę na `test.hscloud.ovh`. Na końcu, zmieniamy nazwę usługi na `test`.
Konfiguracja `hscloud` pozwala na przestrzeń nazw jedynie w formacie `personal-$hs_username`. Dodatkowo, musimy zmienić domenę na `*.$hs_username.hscloud.ovh`. Na końcu, zmieniamy nazwę usługi na `test`.
Ostatecznie, powyższy fragment pliku `prod.jsonnet` powinien wyglądać tak (pamiętaj o podmianie `$hs_username` na swoją nazwę użytkownika!):
@ -63,7 +64,7 @@ local kube = import "../../../kube/kube.libsonnet";
cfg:: {
name: 'test',
namespace: 'profile-$hs_username',
domain: '$hs_username-test.hscloud.ovh',
domain: 'test.$hs_username.hscloud.ovh',
image: 'registry.k0.hswaw.net/radex/ldap-web:1695486391',
},
...
@ -82,7 +83,7 @@ Wywołujemy komendę zastosowania zmian:
kubecfg update prod.jsonnet
```
Nasza usługa powinna być pod adresem `https://$hs_username-test.hscloud.ovh/`. W trakcie pierwszych paru minut dostaniemy informację o niepoprawnym certyfikacie, ponieważ usługa Let's Encrypt nie zdążyła jeszcze wygenerować certyfikatu dla naszej domeny.
Nasza usługa powinna być pod adresem `https://test.$hs_username.hscloud.ovh/`. W trakcie pierwszych paru minut dostaniemy informację o niepoprawnym certyfikacie, ponieważ usługa Let's Encrypt nie zdążyła jeszcze wygenerować certyfikatu dla naszej domeny.
Aby usunąć usługę, należy wywołać:
@ -93,5 +94,5 @@ kubectl delete -f deployment.json
lub
```bash
kubectl delete service $hs_username-test -n personal-$hs_username
kubectl delete service test -n personal-$hs_username
```