Skip to content

Commit 80a1d21

Browse files
author
ogiorgis
committed
[auto] add onyxia-demo service
1 parent 88a9bb3 commit 80a1d21

28 files changed

+1434
-0
lines changed

charts/onyxia-demo/.helmignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/

charts/onyxia-demo/Chart.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
apiVersion: v2
2+
name: onyxia-demo
3+
description: voila demo for onyxia
4+
icon: https://raw.githubusercontent.com/voila-dashboards/voila/main/docs/voila-logo.svg
5+
keywords:
6+
- voila
7+
- Jupyter
8+
home: https://voila-gallery.org
9+
sources:
10+
- https://github.com/djangoliv/voila-demo
11+
- https://forge.extranet.logilab.fr/open-source/onyxia/helm-charts-logilab-services
12+
- https://github.com/InseeFrLab/helm-charts-interactive-services
13+
# A chart can be either an 'application' or a 'library' chart.
14+
#
15+
# Application charts are a collection of templates that can be packaged into versioned archives
16+
# to be deployed.
17+
#
18+
# Library charts provide useful utilities or functions for the chart developer. They're included as
19+
# a dependency of application charts to inject those utilities and functions into the rendering
20+
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
21+
type: application
22+
23+
# This is the chart version. This version number should be incremented each time you make changes
24+
# to the chart and its templates, including the app version.
25+
# Versions are expected to follow Semantic Versioning (https://semver.org/)
26+
27+
version: 0.0.1
28+
29+
appVersion: 1.0
30+
31+
dependencies:
32+
- name: library-chart
33+
version: 1.5.21
34+
repository: https://inseefrlab.github.io/helm-charts-interactive-services

charts/onyxia-demo/README.md

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
# ${SERVICE_NAME}
2+
3+
![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
4+
5+
Voila official demo
6+
7+
**Homepage:** <https://voila-gallery.org>
8+
9+
## Source Code
10+
11+
* <https://forge.extranet.logilab.fr/open-source/onyxia/helm-charts-logilab-services>
12+
* <https://github.com/InseeFrLab/helm-charts-interactive-services>
13+
14+
## Requirements
15+
16+
| Repository | Name | Version |
17+
|------------|------|---------|
18+
| https://inseefrlab.github.io/helm-charts-interactive-services | library-chart | 1.5.21 |
19+
20+
## Values
21+
22+
| Key | Type | Default | Description |
23+
|-----|------|---------|-------------|
24+
| affinity | object | `{}` | |
25+
| autoscaling.enabled | bool | `false` | |
26+
| autoscaling.maxReplicas | int | `100` | |
27+
| autoscaling.minReplicas | int | `1` | |
28+
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
29+
| coresite.configMapName | string | `""` | |
30+
| discovery.hive | bool | `true` | |
31+
| discovery.metaflow | bool | `true` | |
32+
| discovery.mlflow | bool | `true` | |
33+
| environment.group | string | `"users"` | |
34+
| environment.user | string | `"onyxia"` | |
35+
| fullnameOverride | string | `""` | |
36+
| git.branch | string | `""` | |
37+
| git.cache | string | `""` | |
38+
| git.configMapName | string | `""` | |
39+
| git.email | string | `""` | |
40+
| git.enabled | bool | `false` | |
41+
| git.name | string | `""` | |
42+
| git.repository | string | `""` | |
43+
| git.token | string | `""` | |
44+
| hive.configMapName | string | `""` | |
45+
| imagePullSecrets | list | `[]` | |
46+
| ingress.annotations | list | `[]` | |
47+
| ingress.certManagerClusterIssuer | string | `""` | |
48+
| ingress.enabled | bool | `false` | |
49+
| ingress.hostname | string | `"chart-example.local"` | |
50+
| ingress.ingressClassName | string | `""` | |
51+
| ingress.tls | bool | `true` | |
52+
| ingress.useCertManager | bool | `false` | |
53+
| ingress.userHostname | string | `"chart-example-user.local"` | |
54+
| init.personalInit | string | `""` | |
55+
| init.personalInitArgs | string | `""` | |
56+
| init.regionInit | string | `""` | |
57+
| init.standardInitPath | string | `"/opt/onyxia-init.sh"` | |
58+
| kubernetes.enabled | bool | `false` | |
59+
| kubernetes.role | string | `"view"` | |
60+
| metaflow.configMapName | string | `""` | |
61+
| mlflow.configMapName | string | `""` | |
62+
| nameOverride | string | `""` | |
63+
| networking.clusterIP | string | `"None"` | |
64+
| networking.service.port | int | `8888` | |
65+
| networking.sparkui.port | int | `4040` | |
66+
| networking.type | string | `"ClusterIP"` | |
67+
| networking.user.enabled | bool | `false` | |
68+
| networking.user.port | int | `5000` | |
69+
| nodeSelector | object | `{}` | |
70+
| persistence.accessMode | string | `"ReadWriteOnce"` | |
71+
| persistence.enabled | bool | `false` | |
72+
| persistence.size | string | `"10Gi"` | |
73+
| podAnnotations | object | `{}` | |
74+
| podSecurityContext.fsGroup | int | `100` | |
75+
| replicaCount | int | `1` | |
76+
| repository.condaRepository | string | `""` | |
77+
| repository.configMapName | string | `""` | |
78+
| repository.pipRepository | string | `""` | |
79+
| resources | object | `{}` | |
80+
| route.annotations | list | `[]` | |
81+
| route.enabled | bool | `false` | |
82+
| route.hostname | string | `"chart-example.local"` | |
83+
| route.tls.termination | string | `"edge"` | |
84+
| route.userHostname | string | `"chart-example-user.local"` | |
85+
| route.wildcardPolicy | string | `"None"` | |
86+
| s3.accessKeyId | string | `""` | |
87+
| s3.configMapName | string | `""` | |
88+
| s3.defaultRegion | string | `""` | |
89+
| s3.enabled | bool | `false` | |
90+
| s3.endpoint | string | `""` | |
91+
| s3.secretAccessKey | string | `""` | |
92+
| s3.sessionToken | string | `""` | |
93+
| security.allowlist.enabled | bool | `false` | |
94+
| security.allowlist.ip | string | `"0.0.0.0/0"` | |
95+
| security.networkPolicy.enabled | bool | `false` | |
96+
| security.networkPolicy.from | list | `[]` | |
97+
| security.password | string | `"changeme"` | |
98+
| securityContext | object | `{}` | |
99+
| service.image.custom.enabled | bool | `false` | |
100+
| service.image.custom.version | string | `""` | |
101+
| service.image.pullPolicy | string | `"IfNotPresent"` | |
102+
| service.image.version | string | `""` | |
103+
| serviceAccount.annotations | object | `{}` | |
104+
| serviceAccount.create | bool | `true` | |
105+
| serviceAccount.name | string | `""` | |
106+
| startupProbe.failureThreshold | int | `60` | |
107+
| startupProbe.initialDelaySeconds | int | `10` | |
108+
| startupProbe.periodSeconds | int | `10` | |
109+
| startupProbe.successThreshold | int | `1` | |
110+
| startupProbe.timeoutSeconds | int | `5` | |
111+
| tolerations | list | `[]` | |
112+
| userPreferences.darkMode | bool | `false` | |
113+
| userPreferences.language | string | `"en"` | |
114+
| vault.configMapName | string | `""` | |
115+
| vault.directory | string | `""` | |
116+
| vault.enabled | bool | `false` | |
117+
| vault.mount | string | `""` | |
118+
| vault.secret | string | `""` | |
119+
| vault.token | string | `""` | |
120+
| vault.url | string | `""` | |
121+
122+
----------------------------------------------
123+
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)

charts/onyxia-demo/jcomposer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"name": "onyxia-demo", "version": "0.0.1", "desc": "voila demo for onyxia", "iconURL": "https://raw.githubusercontent.com/voila-dashboards/voila/main/docs/voila-logo.svg", "dockerImageTag": "1.0", "notebookName": "voila-vuetify.ipynb", "appType": "voila", "appBuildType": "fromRepo", "appRepoURL": "https://github.com/djangoliv/voila-demo", "cpuLimit": 2000, "memLimit": 2}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{{- if eq .Values.userPreferences.language "fr" }}
2+
{{- if .Values.ingress.enabled }}
3+
- Vous pouvez vous connecter à ce Jupyter avec votre navigateur en utilisant ce [lien](http{{ if $.Values.ingress.tls }}s{{ end }}://{{ .Values.ingress.hostname }}).
4+
{{- if .Values.networking.user.enabled }}
5+
- Vous pouvez vous connecter à votre port personnalisé en utilisant ce [lien](http{{ if $.Values.ingress.tls }}s{{ end }}://{{ .Values.ingress.userHostname }}).
6+
Si vous ne lancez pas votre service personnalisé, vous obtiendrez une erreur 502 Bad Gateway.
7+
{{- end }}
8+
{{- end }}
9+
{{- if .Values.route.enabled }}
10+
- Vous pouvez vous connecter à ce Jupyter avec votre navigateur en utilisant ce [lien](https://{{ .Values.route.hostname }}).
11+
{{- if .Values.networking.user.enabled }}
12+
- Vous pouvez vous connecter à votre port personnalisé en utilisant ce [lien](https://{{ .Values.route.userHostname }})
13+
Si vous ne lancez pas votre service personnalisé, vous obtiendrez une erreur 502 Bad Gateway.
14+
{{- end }}
15+
{{- end }}
16+
- Votre jeton d'accès est **{{ .Values.security.password }}**
17+
18+
*NOTES concernant la suppression :*
19+
20+
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
21+
- Le volume associé au chemin suivant {{ .Values.persistence.mountPath }} sera supprimé.
22+
- Par conséquent, vous devriez sauvegarder votre code dans un référentiel Git externe.
23+
- Vous devriez également sauvegarder vos données dans un référentiel de données externe tel que S3.
24+
- Vous pouvez facilement créer un nouveau service {{ .Chart.Name }}, cloner votre code et réinstaller les bibliothèques dont vous avez besoin.
25+
{{- end }}
26+
{{- else }}
27+
{{- if .Values.ingress.enabled }}
28+
- You can connect to this jupyter with your browser on this [link](http{{ if $.Values.ingress.tls }}s{{ end }}://{{ .Values.ingress.hostname }})
29+
{{- if .Values.networking.user.enabled }}
30+
- You can connect to your custom port on this [link](http{{ if $.Values.ingress.tls }}s{{ end }}://{{ .Values.ingress.userHostname }})
31+
If you don't run your custom service you will get a 502 bad gateway error.
32+
{{- end }}
33+
{{- end }}
34+
{{- if .Values.route.enabled }}
35+
- You can connect to this jupyter with your browser on this [link](https://{{ .Values.route.hostname }})
36+
{{- if .Values.networking.user.enabled }}
37+
- You can connect to your custom port on this [link](https://{{ .Values.route.userHostname }})
38+
If you don't run your custom service you will get a 502 bad gateway error.
39+
{{- end }}
40+
{{- end }}
41+
- Your access token is **{{ .Values.security.password }}**
42+
43+
*NOTES about deletion :*
44+
45+
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
46+
- The volume associated with the following path **{{ .Values.persistence.mountPath }}** will be deleted
47+
- So, you should save your code to an external git repository
48+
- So, You should save your data to an external data repository like S3
49+
- You can easily create a new {{ .Chart.Name }} service, clone your code and install again some librairies you need
50+
{{- end }}
51+
{{- end }}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ include "library-chart.configMapRepository" . }}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ include "library-chart.ingressUser" . }}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ include "library-chart.ingress" . }}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ include "library-chart.networkPolicyIngress" . }}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ include "library-chart.networkPolicy" . }}

0 commit comments

Comments
 (0)