Skip to content

Commit a416b7b

Browse files
gordalinadavidspek
andauthored
feat(jupyterhub): configure application (#618)
* jupyterhub: configure application * jupyterhub: update vendor_images * jupyterhub: bump version * Update Chart.yaml * Update deps.yaml --------- Co-authored-by: David van der Spek <[email protected]>
1 parent 48f4f9d commit a416b7b

File tree

10 files changed

+76
-151
lines changed

10 files changed

+76
-151
lines changed

jupyterhub/helm/jupyterhub/Chart.lock

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,5 @@ dependencies:
22
- name: jupyterhub
33
repository: https://charts.bitnami.com/bitnami
44
version: 3.0.12
5-
- name: postgres
6-
repository: https://pluralsh.github.io/module-library
7-
version: 0.1.16
8-
digest: sha256:ad4f0aae95f8b20c092751bc8db4352963aedfd920c8aaf2aa45d6de49fa2e36
9-
generated: "2023-03-31T15:40:56.375493-10:00"
5+
digest: sha256:7dbd4d47e44c4b1d35ad8ee1ccb3f52c3be682826399da28bffb98564b53938a
6+
generated: "2023-04-04T18:44:50.023965-10:00"

jupyterhub/helm/jupyterhub/Chart.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: jupyterhub
33
description: helm chart for jupyterhub
44
type: application
5-
version: 0.1.0
5+
version: 0.1.1
66
appVersion: "3.1.1"
77
maintainers:
88
- name: Samuel Gordalina
@@ -11,6 +11,3 @@ dependencies:
1111
- name: jupyterhub
1212
version: 3.0.12
1313
repository: https://charts.bitnami.com/bitnami
14-
- name: postgres
15-
version: 0.1.16
16-
repository: https://pluralsh.github.io/module-library
-5.38 KB
Binary file not shown.

jupyterhub/helm/jupyterhub/deps.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ spec:
1818
repo: ingress-nginx
1919
version: ">= 0.1.2"
2020
- type: helm
21-
name: postgres
22-
repo: postgres
23-
version: ">= 0.2.0"
21+
name: ingress-nginx
22+
repo: ingress-nginx
23+
version: '>= 0.1.2'

jupyterhub/helm/jupyterhub/templates/NOTES.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.

jupyterhub/helm/jupyterhub/templates/tests/test-connection.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 46 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,46 @@
1-
# Default values for jupyterhub.
2-
# This is a YAML-formatted file.
3-
# Declare variables to be passed into your templates.
4-
5-
replicaCount: 1
6-
7-
image:
8-
repository: dkr.plural.sh/jupyterhub/bitnami/jupyterhub
9-
pullPolicy: IfNotPresent
10-
# Overrides the image tag whose default is the chart appVersion.
11-
tag: "3.1.1"
12-
13-
imagePullSecrets: []
14-
nameOverride: ""
15-
fullnameOverride: ""
16-
17-
serviceAccount:
18-
# Specifies whether a service account should be created
19-
create: true
20-
# Annotations to add to the service account
21-
annotations: {}
22-
# The name of the service account to use.
23-
# If not set and create is true, a name is generated using the fullname template
24-
name: ""
25-
26-
podAnnotations: {}
27-
28-
podSecurityContext:
29-
{}
30-
# fsGroup: 2000
31-
32-
securityContext:
33-
{}
34-
# capabilities:
35-
# drop:
36-
# - ALL
37-
# readOnlyRootFilesystem: true
38-
# runAsNonRoot: true
39-
# runAsUser: 1000
40-
41-
service:
42-
type: ClusterIP
43-
port: 80
44-
45-
ingress:
46-
enabled: true
47-
className: nginx
48-
annotations:
49-
kubernetes.io/tls-acme: "true"
50-
cert-manager.io/cluster-issuer: letsencrypt-prod
51-
# Extend timeout to allow long running queries.
52-
nginx.ingress.kubernetes.io/proxy-connect-timeout: "300"
53-
nginx.ingress.kubernetes.io/proxy-read-timeout: "300"
54-
nginx.ingress.kubernetes.io/proxy-send-timeout: "300"
55-
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
56-
nginx.ingress.kubernetes.io/use-regex: "true"
57-
hosts:
58-
- host: chart-example.local
59-
paths:
60-
- path: /
61-
pathType: ImplementationSpecific
62-
tls: []
63-
# - secretName: chart-example-tls
64-
# hosts:
65-
# - chart-example.local
66-
67-
resources:
68-
{}
69-
# We usually recommend not to specify default resources and to leave this as a conscious
70-
# choice for the user. This also increases chances charts run on environments with little
71-
# resources, such as Minikube. If you do want to specify resources, uncomment the following
72-
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
73-
# limits:
74-
# cpu: 100m
75-
# memory: 128Mi
76-
# requests:
77-
# cpu: 100m
78-
# memory: 128Mi
79-
80-
autoscaling:
81-
enabled: false
82-
minReplicas: 1
83-
maxReplicas: 100
84-
targetCPUUtilizationPercentage: 80
85-
# targetMemoryUtilizationPercentage: 80
86-
87-
nodeSelector: {}
88-
89-
tolerations: []
90-
91-
affinity: {}
1+
jupyterhub:
2+
hub:
3+
adminUser: admin
4+
password: password
5+
# image:
6+
# repository: dkr.plural.sh/jupyterhub/bitnami/jupyterhub
7+
# tag: 3.1.1-debian-11-r20
8+
metrics:
9+
serviceMonitor:
10+
enabled: true
11+
12+
proxy:
13+
# image:
14+
# registry: dkr.plural.sh/jupyterhub/bitnami/configurable-http-proxy
15+
# tag: 4.5.4-debian-11-r39
16+
ingress:
17+
enabled: true
18+
path: /.*
19+
ingressClassName: nginx
20+
annotations:
21+
kubernetes.io/tls-acme: "true"
22+
cert-manager.io/cluster-issuer: letsencrypt-prod
23+
nginx.ingress.kubernetes.io/force-ssl-redirect: 'true'
24+
nginx.ingress.kubernetes.io/use-regex: "true"
25+
hostname: chart-example.local
26+
extraTls: []
27+
service:
28+
public:
29+
type: ClusterIP
30+
metrics:
31+
serviceMonitor:
32+
enabled: true
33+
34+
singleuser:
35+
# image:
36+
# repository: dkr.plural.sh/jupyterhub/bitnami/jupyter-base-notebook
37+
# tag: 3.1.1-debian-11-r20
38+
notebookDir: /data
39+
extraEnvVars:
40+
HOME: /data
41+
JUPYTERHUB_ROOT_DIR: /data
42+
43+
# auxiliaryImage:
44+
# image:
45+
# repository: dkr.plural.sh/jupyterhub/bitnami/bitnami-shell
46+
# tag: 11-debian-11-r102
Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
{{ $hostname := default "example.com" .Values.hostname }}
2+
{{ $password := dedupe . "jupyterhub.jupyterhub.hub.password" (randAlphaNum 30) }}
23

34
global:
45
application:
56
links:
67
- description: jupyterhub instance
78
url: {{ $hostname }}
89

9-
ingress:
10-
hosts:
11-
- host: {{ $hostname }}
12-
paths:
13-
- path: /
14-
pathType: ImplementationSpecific
15-
tls:
16-
- secretName: jupyterhub-tls
17-
hosts:
18-
- {{ $hostname }}
10+
jupyterhub:
11+
hub:
12+
password: {{ $password }}
13+
14+
proxy:
15+
ingress:
16+
hostname: {{ $hostname }}
17+
extraTls:
18+
- hosts:
19+
- {{ $hostname }}
20+
secretName: jupyterhub-tls

jupyterhub/plural/notes.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
Your jupyterhub installation is available at https://{{ .Values.hostname }}
2+
3+
You can login with
4+
username: {{ .Values.jupyterhub.hub.adminUser }}
5+
password: {{ .Values.jupyterhub.hub.password }}

jupyterhub/vendor_images.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
docker.io:
22
images-by-tag-regex:
3-
bitnami/jupyterhub: ^v?[0-9]+\.[0-9]+?\.[0-9]+$
3+
# >= 3.1.0
4+
bitnami/jupyterhub: (?:^v?3\.(?:[1-9]|[1-9][0-9]{1,})\.[0-9]+$)|(?:^v?(?:[4-9]|[1-9][0-9]{1,})\.[0-9]+?\.[0-9]+$)
5+
# >= 3.1.0
6+
bitnami/jupyter-base-notebook: (?:^v?3\.(?:[1-9]|[1-9][0-9]{1,})\.[0-9]+$)|(?:^v?(?:[4-9]|[1-9][0-9]{1,})\.[0-9]+?\.[0-9]+$)
7+
# >= 4.5.0
8+
bitnami/configurable-http-proxy: (?:^v?4\.(?:[5-9]|[1-9][0-9]{1,})\.[0-9]+$)|(?:^v?(?:[5-9]|[1-9][0-9]{1,})\.[0-9]+?\.[0-9]+$)
9+
# >= 10
10+
bitnami/bitnami-shell: (?:^v?(?:[1-9][0-9]{1,})$)

0 commit comments

Comments
 (0)