-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#173 Using library-chart multiple ports exposition mechanism in all i…
…nteractive services
- Loading branch information
Showing
24 changed files
with
518 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,91 @@ | ||
{{- if eq .Values.userPreferences.language "fr" }} | ||
{{ (.Values.message).fr }} | ||
{{- if .Values.ingress.enabled }} | ||
{{- if eq .Values.userPreferences.language "fr" -}} | ||
{{ (.Values.message).fr }} | ||
|
||
{{ if .Values.ingress.enabled -}} | ||
- Vous pouvez vous connecter à ce Jupyter avec votre navigateur en utilisant ce [lien](http{{ if $.Values.ingress.tls }}s{{ end }}://{{ .Values.ingress.hostname }}). | ||
{{- if .Values.networking.user.enabled }} | ||
- Vous pouvez vous connecter à votre port personnalisé en utilisant ce [lien](http{{ if $.Values.ingress.tls }}s{{ end }}://{{ .Values.ingress.userHostname }}). | ||
Si vous ne lancez pas votre service personnalisé, vous obtiendrez une erreur 502 Bad Gateway. | ||
{{- end }} | ||
{{- end }} | ||
{{- if .Values.route.enabled }} | ||
- Vous pouvez vous connecter à ce Jupyter avec votre navigateur en utilisant ce [lien](https://{{ .Values.route.hostname }}). | ||
{{- if .Values.networking.user.enabled }} | ||
- Vous pouvez vous connecter à votre port personnalisé en utilisant ce [lien](https://{{ .Values.route.userHostname }}) | ||
Si vous ne lancez pas votre service personnalisé, vous obtiendrez une erreur 502 Bad Gateway. | ||
{{- end }} | ||
{{- end }} | ||
- Votre password: {{ .Values.security.password }} | ||
|
||
{{- if and .Values.networking.user .Values.networking.user.enabled (or .Values.networking.user.ports .Values.networking.user.port) }} | ||
{{ $userPorts := .Values.networking.user.ports | default (list .Values.networking.user.port) -}} | ||
{{- if eq (len $userPorts) 1 -}} | ||
{{- if .Values.ingress.enabled }} | ||
Vous pouvez vous connecter à votre port personnalisé ({{ first $userPorts }}) en utilisant [ce lien](http{{ if .Values.ingress.tls }}s{{ end }}://{{ .Values.ingress.userHostname }}). | ||
{{- end -}} | ||
{{- if .Values.route.enabled }} | ||
Vous pouvez vous connecter à votre port personnalisé ({{ first $userPorts }}) en utilisant [ce lien](https://{{ .Values.route.userHostname }}). | ||
{{- end -}} | ||
{{- else }} | ||
Vous pouvez vous connecter à vos services personnalisés en utilisant les liens ci-dessous : | ||
{{- range $userPort := $userPorts -}} | ||
{{- if $.Values.ingress.enabled -}} | ||
{{- $hostname := (regexReplaceAll "([^\\.]+)\\.(.*)" $.Values.ingress.userHostname (printf "${1}-%d.${2}" (int $userPort))) }} | ||
- [Port {{ $userPort }}](http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $hostname }}) | ||
{{- end -}} | ||
{{- if $.Values.route.enabled -}} | ||
{{- $hostname := (regexReplaceAll "([^\\.]+)\\.(.*)" $.Values.route.userHostname (printf "${1}-%d.${2}" (int $userPort))) }} | ||
- [Port {{ $userPort }}](https://{{ $hostname }}) | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end }} | ||
Si vous accédez ces URL sans démarrer vos services personnalisés, vous obtiendrez une erreur 502 Bad Gateway. | ||
{{- end }} | ||
|
||
*NOTES concernant la suppression :* | ||
|
||
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }} | ||
- Le volume associé au chemin suivant **/home/{{ .Values.environment.user }}/work** sera supprimé. | ||
- Par conséquent, vous devriez sauvegarder votre code dans un référentiel Git externe. | ||
- Vous devriez également sauvegarder vos données dans un référentiel de données externe tel que S3. | ||
- Vous pouvez facilement créer un nouveau service {{ .Chart.Name }}, cloner votre code et réinstaller les bibliothèques dont vous avez besoin. | ||
{{- end }} | ||
{{- else }} | ||
{{ (.Values.message).en }} | ||
{{- if .Values.ingress.enabled }} | ||
{{- end -}} | ||
|
||
|
||
{{- else -}} | ||
{{ (.Values.message).en }} | ||
|
||
{{ if .Values.ingress.enabled -}} | ||
- You can connect to this jupyter with your browser on this [link](http{{ if $.Values.ingress.tls }}s{{ end }}://{{ .Values.ingress.hostname }}) | ||
{{- if .Values.networking.user.enabled }} | ||
- You can connect to your custom port on this [link](http{{ if $.Values.ingress.tls }}s{{ end }}://{{ .Values.ingress.userHostname }}) | ||
If you don't run your custom service you will get a 502 bad gateway error. | ||
{{- end }} | ||
{{- end }} | ||
{{- if .Values.route.enabled }} | ||
- You can connect to this jupyter with your browser on this [link](https://{{ .Values.route.hostname }}) | ||
{{- if .Values.networking.user.enabled }} | ||
- You can connect to your custom port on this [link](https://{{ .Values.route.userHostname }}) | ||
If you don't run your custom service you will get a 502 bad gateway error. | ||
{{- end }} | ||
{{- end }} | ||
- Your password: {{ .Values.security.password }} | ||
|
||
*NOTES about deletion :* | ||
{{- if and .Values.networking.user .Values.networking.user.enabled (or .Values.networking.user.ports .Values.networking.user.port) }} | ||
{{ $userPorts := .Values.networking.user.ports | default (list .Values.networking.user.port) -}} | ||
{{- if eq (len $userPorts) 1 -}} | ||
{{- if .Values.ingress.enabled }} | ||
You can connect to your custom port ({{ first $userPorts }}) using [this link](http{{ if .Values.ingress.tls }}s{{ end }}://{{ .Values.ingress.userHostname }}). | ||
{{- end -}} | ||
{{- if .Values.route.enabled }} | ||
You can connect to your custom port ({{ first $userPorts }}) using [this link](https://{{ .Values.route.userHostname }}). | ||
{{- end -}} | ||
{{- else }} | ||
You can connect to your custom services using the following links: | ||
{{- range $userPort := $userPorts -}} | ||
{{- if $.Values.ingress.enabled -}} | ||
{{- $hostname := (regexReplaceAll "([^\\.]+)\\.(.*)" $.Values.ingress.userHostname (printf "${1}-%d.${2}" (int $userPort))) }} | ||
- [Port {{ $userPort }}](http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $hostname }}) | ||
{{- end -}} | ||
{{- if $.Values.route.enabled -}} | ||
{{- $hostname := (regexReplaceAll "([^\\.]+)\\.(.*)" $.Values.route.userHostname (printf "${1}-%d.${2}" (int $userPort))) }} | ||
- [Port {{ $userPort }}](https://{{ $hostname }}) | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end }} | ||
If you access these URL without starting the corresponding services you will get a 502 bad gateway error. | ||
{{- end }} | ||
|
||
*NOTES about deletion :* | ||
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }} | ||
- The volume associated with the following path **/home/{{ .Values.environment.user }}/work** will be deleted | ||
- So, you should save your code to an external git repository | ||
- So, You should save your data to an external data repository like S3 | ||
- You can easily create a new {{ .Chart.Name }} service, clone your code and install again some librairies you need | ||
{{- end }} | ||
{{- end }} | ||
{{- end -}} | ||
|
||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.