JupyterHub packaged by Bitnami¶
JupyterHub brings the power of notebooks to groups of users. It gives users access to computational environments and resources without burdening the users with installation and maintenance tasks.
Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
TL;DR¶
使用加速地址添加仓库:
Introduction¶
Bitnami charts for Helm are carefully engineered, actively maintained and are the quickest and easiest way to deploy containers on a Kubernetes cluster that are ready to handle production workloads.
This chart bootstraps a JupyterHub Deployment in a Kubernetes cluster using the Helm package manager.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.
Learn more about the default configuration of the chart.
Looking to use JupyterHub in production? Try VMware Application Catalog, the enterprise edition of Bitnami Application Catalog.
Prerequisites¶
- Kubernetes 1.19+
- Helm 3.2.0+
- PV provisioner support in the underlying infrastructure
Installing the Chart¶
To install the chart with the release name my-release
:
These commands deploy JupyterHub on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart¶
To uninstall/delete the my-release
helm release:
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters¶
Global parameters¶
Name | Description | Value |
---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters¶
Name | Description | Value |
---|---|---|
kubeVersion | Override Kubernetes version | "" |
nameOverride | String to partially override common.names.fullname (will maintain the release name) | "" |
fullnameOverride | String to fully override common.names.fullname | "" |
clusterDomain | Kubernetes Cluster Domain | cluster.local |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
extraDeploy | Array of extra objects to deploy with the release | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the the deployment(s)/daemonset(s) | ["sleep"] |
diagnosticMode.args | Args to override all containers in the the deployment(s)/daemonset(s) | ["infinity"] |
Hub deployment parameters¶
Name | Description | Value |
---|---|---|
hub.image.registry | Hub image registry | docker.io |
hub.image.repository | Hub image repository | bitnami/jupyterhub |
hub.image.tag | Hub image tag (immutable tags are recommended) | 4.0.1-debian-11-r7 |
hub.image.digest | Hub image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
hub.image.pullPolicy | Hub image pull policy | IfNotPresent |
hub.image.pullSecrets | Hub image pull secrets | [] |
hub.baseUrl | Hub base URL | / |
hub.adminUser | Hub Dummy authenticator admin user | user |
hub.password | Hub Dummy authenticator password | "" |
hub.configuration | Hub configuration file (to be used by jupyterhub_config.py) | "" |
hub.existingConfigmap | Configmap with Hub init scripts (replaces the scripts in templates/hub/configmap.yml) | "" |
hub.existingSecret | Secret with hub configuration (replaces the hub.configuration value) and proxy token | "" |
hub.command | Override Hub default command | [] |
hub.args | Override Hub default args | [] |
hub.extraEnvVars | Add extra environment variables to the Hub container | [] |
hub.extraEnvVarsCM | Name of existing ConfigMap containing extra env vars | "" |
hub.extraEnvVarsSecret | Name of existing Secret containing extra env vars | "" |
hub.containerPorts.http | Hub container port | 8081 |
hub.startupProbe.enabled | Enable startupProbe on Hub containers | true |
hub.startupProbe.initialDelaySeconds | Initial delay seconds for startupProbe | 10 |
hub.startupProbe.periodSeconds | Period seconds for startupProbe | 10 |
hub.startupProbe.timeoutSeconds | Timeout seconds for startupProbe | 3 |
hub.startupProbe.failureThreshold | Failure threshold for startupProbe | 30 |
hub.startupProbe.successThreshold | Success threshold for startupProbe | 1 |
hub.livenessProbe.enabled | Enable livenessProbe on Hub containers | true |
hub.livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 10 |
hub.livenessProbe.periodSeconds | Period seconds for livenessProbe | 10 |
hub.livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 3 |
hub.livenessProbe.failureThreshold | Failure threshold for livenessProbe | 30 |
hub.livenessProbe.successThreshold | Success threshold for livenessProbe | 1 |
hub.readinessProbe.enabled | Enable readinessProbe on Hub containers | true |
hub.readinessProbe.initialDelaySeconds | Initial delay seconds for readinessProbe | 10 |
hub.readinessProbe.periodSeconds | Period seconds for readinessProbe | 10 |
hub.readinessProbe.timeoutSeconds | Timeout seconds for readinessProbe | 3 |
hub.readinessProbe.failureThreshold | Failure threshold for readinessProbe | 30 |
hub.readinessProbe.successThreshold | Success threshold for readinessProbe | 1 |
hub.customStartupProbe | Override default startup probe | {} |
hub.customLivenessProbe | Override default liveness probe | {} |
hub.customReadinessProbe | Override default readiness probe | {} |
hub.resources.limits | The resources limits for the Hub containers | {} |
hub.resources.requests | The requested resources for the Hub containers | {} |
hub.containerSecurityContext.enabled | Enabled Hub containers' Security Context | true |
hub.containerSecurityContext.runAsUser | Set Hub container's Security Context runAsUser | 1000 |
hub.containerSecurityContext.runAsNonRoot | Set Hub container's Security Context runAsNonRoot | true |
hub.podSecurityContext.enabled | Enabled Hub pods' Security Context | true |
hub.podSecurityContext.fsGroup | Set Hub pod's Security Context fsGroup | 1001 |
hub.lifecycleHooks | LifecycleHooks for the Hub container to automate configuration before or after startup | {} |
hub.hostAliases | Add deployment host aliases | [] |
hub.podLabels | Add extra labels to the Hub pods | {} |
hub.podAnnotations | Add extra annotations to the Hub pods | {} |
hub.podAffinityPreset | Pod affinity preset. Ignored if hub.affinity is set. Allowed values: soft or hard | "" |
hub.podAntiAffinityPreset | Pod anti-affinity preset. Ignored if hub.affinity is set. Allowed values: soft or hard | soft |
hub.nodeAffinityPreset.type | Node affinity preset type. Ignored if hub.affinity is set. Allowed values: soft or hard | "" |
hub.nodeAffinityPreset.key | Node label key to match. Ignored if hub.affinity is set | "" |
hub.nodeAffinityPreset.values | Node label values to match. Ignored if hub.affinity is set | [] |
hub.affinity | Affinity for pod assignment. | {} |
hub.nodeSelector | Node labels for pod assignment. | {} |
hub.tolerations | Tolerations for pod assignment. | [] |
hub.topologySpreadConstraints | Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template | [] |
hub.priorityClassName | Priority Class Name | "" |
hub.schedulerName | Use an alternate scheduler, e.g. "stork". | "" |
hub.terminationGracePeriodSeconds | Seconds Hub pod needs to terminate gracefully | "" |
hub.updateStrategy.type | Update strategy - only really applicable for deployments with RWO PVs attached | RollingUpdate |
hub.updateStrategy.rollingUpdate | Hub deployment rolling update configuration parameters | {} |
hub.extraVolumes | Optionally specify extra list of additional volumes for Hub pods | [] |
hub.extraVolumeMounts | Optionally specify extra list of additional volumeMounts for Hub container(s) | [] |
hub.initContainers | Add additional init containers to the Hub pods | [] |
hub.sidecars | Add additional sidecar containers to the Hub pod | [] |
hub.pdb.create | Deploy Hub PodDisruptionBudget | false |
hub.pdb.minAvailable | Set minimum available hub instances | "" |
hub.pdb.maxUnavailable | Set maximum available hub instances | "" |
Hub RBAC parameters¶
Name | Description | Value |
---|---|---|
hub.serviceAccount.create | Specifies whether a ServiceAccount should be created | true |
hub.serviceAccount.name | Override Hub service account name | "" |
hub.serviceAccount.automountServiceAccountToken | Allows auto mount of ServiceAccountToken on the serviceAccount created | true |
hub.serviceAccount.annotations | Additional custom annotations for the ServiceAccount | {} |
hub.rbac.create | Specifies whether RBAC resources should be created | true |
hub.rbac.rules | Custom RBAC rules to set | [] |
Hub Traffic Exposure Parameters¶
Name | Description | Value |
---|---|---|
hub.networkPolicy.enabled | Deploy Hub network policies | true |
hub.networkPolicy.allowInterspaceAccess | Allow communication between pods in different namespaces | true |
hub.networkPolicy.extraIngress | Add extra ingress rules to the NetworkPolicy | "" |
hub.networkPolicy.extraEgress | Add extra ingress rules to the NetworkPolicy | "" |
hub.service.type | Hub service type | ClusterIP |
hub.service.ports.http | Hub service HTTP port | 8081 |
hub.service.nodePorts.http | NodePort for the HTTP endpoint | "" |
hub.service.sessionAffinity | Control where client requests go, to the same pod or round-robin | None |
hub.service.sessionAffinityConfig | Additional settings for the sessionAffinity | {} |
hub.service.clusterIP | Hub service Cluster IP | "" |
hub.service.loadBalancerIP | Hub service Load Balancer IP | "" |
hub.service.loadBalancerSourceRanges | Hub service Load Balancer sources | [] |
hub.service.externalTrafficPolicy | Hub service external traffic policy | Cluster |
hub.service.annotations | Additional custom annotations for Hub service | {} |
hub.service.extraPorts | Extra port to expose on Hub service | [] |
Hub Metrics parameters¶
Name | Description | Value |
---|---|---|
hub.metrics.authenticatePrometheus | Use authentication for Prometheus | false |
hub.metrics.serviceMonitor.enabled | If the operator is installed in your cluster, set to true to create a Service Monitor Entry | false |
hub.metrics.serviceMonitor.namespace | Namespace which Prometheus is running in | "" |
hub.metrics.serviceMonitor.path | HTTP path to scrape for metrics | /hub/metrics |
hub.metrics.serviceMonitor.interval | Interval at which metrics should be scraped | 30s |
hub.metrics.serviceMonitor.scrapeTimeout | Specify the timeout after which the scrape is ended | "" |
hub.metrics.serviceMonitor.labels | Additional labels that can be used so ServiceMonitor will be discovered by Prometheus | {} |
hub.metrics.serviceMonitor.selector | Prometheus instance selector labels | {} |
hub.metrics.serviceMonitor.relabelings | RelabelConfigs to apply to samples before scraping | [] |
hub.metrics.serviceMonitor.metricRelabelings | MetricRelabelConfigs to apply to samples before ingestion | [] |
hub.metrics.serviceMonitor.honorLabels | Specify honorLabels parameter to add the scrape endpoint | false |
hub.metrics.serviceMonitor.jobLabel | The name of the label on the target service to use as the job name in prometheus. | "" |
Proxy deployment parameters¶
Name | Description | Value |
---|---|---|
proxy.image.registry | Proxy image registry | docker.io |
proxy.image.repository | Proxy image repository | bitnami/configurable-http-proxy |
proxy.image.tag | Proxy image tag (immutable tags are recommended) | 4.5.5-debian-11-r28 |
proxy.image.digest | Proxy image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
proxy.image.pullPolicy | Proxy image pull policy | IfNotPresent |
proxy.image.pullSecrets | Proxy image pull secrets | [] |
proxy.image.debug | Activate verbose output | false |
proxy.secretToken | Proxy secret token (used for communication with the Hub) | "" |
proxy.command | Override Proxy default command | [] |
proxy.args | Override Proxy default args | [] |
proxy.extraEnvVars | Add extra environment variables to the Proxy container | [] |
proxy.extraEnvVarsCM | Name of existing ConfigMap containing extra env vars | "" |
proxy.extraEnvVarsSecret | Name of existing Secret containing extra env vars | "" |
proxy.containerPort.api | Proxy api container port | 8001 |
proxy.containerPort.metrics | Proxy metrics container port | 8002 |
proxy.containerPort.http | Proxy http container port | 8000 |
proxy.startupProbe.enabled | Enable startupProbe on Proxy containers | true |
proxy.startupProbe.initialDelaySeconds | Initial delay seconds for startupProbe | 10 |
proxy.startupProbe.periodSeconds | Period seconds for startupProbe | 10 |
proxy.startupProbe.timeoutSeconds | Timeout seconds for startupProbe | 3 |
proxy.startupProbe.failureThreshold | Failure threshold for startupProbe | 30 |
proxy.startupProbe.successThreshold | Success threshold for startupProbe | 1 |
proxy.livenessProbe.enabled | Enable livenessProbe on Proxy containers | true |
proxy.livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 10 |
proxy.livenessProbe.periodSeconds | Period seconds for livenessProbe | 10 |
proxy.livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 3 |
proxy.livenessProbe.failureThreshold | Failure threshold for livenessProbe | 30 |
proxy.livenessProbe.successThreshold | Success threshold for livenessProbe | 1 |
proxy.readinessProbe.enabled | Enable readinessProbe on Proxy containers | true |
proxy.readinessProbe.initialDelaySeconds | Initial delay seconds for readinessProbe | 10 |
proxy.readinessProbe.periodSeconds | Period seconds for readinessProbe | 10 |
proxy.readinessProbe.timeoutSeconds | Timeout seconds for readinessProbe | 3 |
proxy.readinessProbe.failureThreshold | Failure threshold for readinessProbe | 30 |
proxy.readinessProbe.successThreshold | Success threshold for readinessProbe | 1 |
proxy.customStartupProbe | Override default startup probe | {} |
proxy.customLivenessProbe | Override default liveness probe | {} |
proxy.customReadinessProbe | Override default readiness probe | {} |
proxy.resources.limits | The resources limits for the Proxy containers | {} |
proxy.resources.requests | The requested resources for the Proxy containers | {} |
proxy.containerSecurityContext.enabled | Enabled Proxy containers' Security Context | true |
proxy.containerSecurityContext.runAsUser | Set Proxy container's Security Context runAsUser | 1001 |
proxy.containerSecurityContext.runAsNonRoot | Set Proxy container's Security Context runAsNonRoot | true |
proxy.podSecurityContext.enabled | Enabled Proxy pods' Security Context | true |
proxy.podSecurityContext.fsGroup | Set Proxy pod's Security Context fsGroup | 1001 |
proxy.lifecycleHooks | Add lifecycle hooks to the Proxy deployment | {} |
proxy.hostAliases | Add deployment host aliases | [] |
proxy.podLabels | Add extra labels to the Proxy pods | {} |
proxy.podAnnotations | Add extra annotations to the Proxy pods | {} |
proxy.podAffinityPreset | Pod affinity preset. Ignored if proxy.affinity is set. Allowed values: soft or hard | "" |
proxy.podAntiAffinityPreset | Pod anti-affinity preset. Ignored if proxy.affinity is set. Allowed values: soft or hard | soft |
proxy.nodeAffinityPreset.type | Node affinity preset type. Ignored if proxy.affinity is set. Allowed values: soft or hard | "" |
proxy.nodeAffinityPreset.key | Node label key to match. Ignored if proxy.affinity is set | "" |
proxy.nodeAffinityPreset.values | Node label values to match. Ignored if proxy.affinity is set | [] |
proxy.affinity | Affinity for pod assignment. Evaluated as a template. | {} |
proxy.nodeSelector | Node labels for pod assignment. Evaluated as a template. | {} |
proxy.tolerations | Tolerations for pod assignment. Evaluated as a template. | [] |
proxy.topologySpreadConstraints | Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template | [] |
proxy.priorityClassName | Priority Class Name | "" |
proxy.schedulerName | Use an alternate scheduler, e.g. "stork". | "" |
proxy.terminationGracePeriodSeconds | Seconds Proxy pod needs to terminate gracefully | "" |
proxy.updateStrategy.type | Update strategy - only really applicable for deployments with RWO PVs attached | RollingUpdate |
proxy.updateStrategy.rollingUpdate | Proxy deployment rolling update configuration parameters | {} |
proxy.extraVolumes | Optionally specify extra list of additional volumes for Proxy pods | [] |
proxy.extraVolumeMounts | Optionally specify extra list of additional volumeMounts for Proxy container(s) | [] |
proxy.initContainers | Add additional init containers to the Proxy pods | [] |
proxy.sidecars | Add additional sidecar containers to the Proxy pod | [] |
proxy.pdb.create | Deploy Proxy PodDisruptionBudget | false |
proxy.pdb.minAvailable | Set minimum available proxy instances | "" |
proxy.pdb.maxUnavailable | Set maximum available proxy instances | "" |
Proxy RBAC Parameters¶
Name | Description | Value |
---|---|---|
proxy.serviceAccount.create | Specifies whether a ServiceAccount should be created | true |
proxy.serviceAccount.name | Override Hub service account name | "" |
proxy.serviceAccount.automountServiceAccountToken | Allows auto mount of ServiceAccountToken on the serviceAccount created | true |
proxy.serviceAccount.annotations | Additional custom annotations for the ServiceAccount | {} |
Proxy Traffic Exposure Parameters¶
Name | Description | Value |
---|---|---|
proxy.networkPolicy.enabled | Deploy Proxy network policies | true |
proxy.networkPolicy.allowInterspaceAccess | Allow communication between pods in different namespaces | true |
proxy.networkPolicy.extraIngress | Add extra ingress rules to the NetworkPolicy | "" |
proxy.networkPolicy.extraEgress | Add extra egress rules to the NetworkPolicy | "" |
proxy.service.api.type | API service type | ClusterIP |
proxy.service.api.ports.http | API service HTTP port | 8001 |
proxy.service.api.nodePorts.http | NodePort for the HTTP endpoint | "" |
proxy.service.api.sessionAffinity | Control where client requests go, to the same pod or round-robin | None |
proxy.service.api.sessionAffinityConfig | Additional settings for the sessionAffinity | {} |
proxy.service.api.clusterIP | Hub service Cluster IP | "" |
proxy.service.api.loadBalancerIP | Hub service Load Balancer IP | "" |
proxy.service.api.loadBalancerSourceRanges | Hub service Load Balancer sources | [] |
proxy.service.api.externalTrafficPolicy | Hub service external traffic policy | Cluster |
proxy.service.api.annotations | Additional custom annotations for Hub service | {} |
proxy.service.api.extraPorts | Extra port to expose on Hub service | [] |
proxy.service.metrics.type | Metrics service type | ClusterIP |
proxy.service.metrics.ports.http | Metrics service port | 8002 |
proxy.service.metrics.nodePorts.http | NodePort for the HTTP endpoint | "" |
proxy.service.metrics.sessionAffinity | Control where client requests go, to the same pod or round-robin | None |
proxy.service.metrics.sessionAffinityConfig | Additional settings for the sessionAffinity | {} |
proxy.service.metrics.clusterIP | Hub service Cluster IP | "" |
proxy.service.metrics.loadBalancerIP | Hub service Load Balancer IP | "" |
proxy.service.metrics.loadBalancerSourceRanges | Hub service Load Balancer sources | [] |
proxy.service.metrics.externalTrafficPolicy | Hub service external traffic policy | Cluster |
proxy.service.metrics.annotations | Additional custom annotations for Hub service | {} |
proxy.service.metrics.extraPorts | Extra port to expose on Hub service | [] |
proxy.service.public.type | Public service type | LoadBalancer |
proxy.service.public.ports.http | Public service HTTP port | 80 |
proxy.service.public.nodePorts.http | NodePort for the HTTP endpoint | "" |
proxy.service.public.sessionAffinity | Control where client requests go, to the same pod or round-robin | None |
proxy.service.public.sessionAffinityConfig | Additional settings for the sessionAffinity | {} |
proxy.service.public.clusterIP | Hub service Cluster IP | "" |
proxy.service.public.loadBalancerIP | Hub service Load Balancer IP | "" |
proxy.service.public.loadBalancerSourceRanges | Hub service Load Balancer sources | [] |
proxy.service.public.externalTrafficPolicy | Hub service external traffic policy | Cluster |
proxy.service.public.annotations | Additional custom annotations for Hub service | {} |
proxy.service.public.extraPorts | Extra port to expose on Hub service | [] |
proxy.ingress.enabled | Set to true to enable ingress record generation | false |
proxy.ingress.apiVersion | Force Ingress API version (automatically detected if not set) | "" |
proxy.ingress.ingressClassName | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) | "" |
proxy.ingress.pathType | Ingress path type | ImplementationSpecific |
proxy.ingress.hostname | Set ingress rule hostname | jupyterhub.local |
proxy.ingress.path | Path to the Proxy pod | / |
proxy.ingress.annotations | Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations. | {} |
proxy.ingress.tls | Enable TLS configuration for the host defined at ingress.hostname parameter | false |
proxy.ingress.selfSigned | Create a TLS secret for this ingress record using self-signed certificates generated by Helm | false |
proxy.ingress.extraHosts | An array with additional hostname(s) to be covered with the ingress record | [] |
proxy.ingress.extraPaths | An array with additional arbitrary paths that may need to be added to the ingress under the main host | [] |
proxy.ingress.extraTls | The tls configuration for additional hostnames to be covered with this ingress record. | [] |
proxy.ingress.secrets | Custom TLS certificates as secrets | [] |
proxy.ingress.extraRules | Additional rules to be covered with this ingress record | [] |
Proxy Metrics parameters¶
Name | Description | Value |
---|---|---|
proxy.metrics.serviceMonitor.enabled | If the operator is installed in your cluster, set to true to create a Service Monitor Entry | false |
proxy.metrics.serviceMonitor.namespace | Namespace which Prometheus is running in | "" |
proxy.metrics.serviceMonitor.path | HTTP path to scrape for metrics | /metrics |
proxy.metrics.serviceMonitor.interval | Interval at which metrics should be scraped | 30s |
proxy.metrics.serviceMonitor.scrapeTimeout | Specify the timeout after which the scrape is ended | "" |
proxy.metrics.serviceMonitor.labels | Additional labels that can be used so ServiceMonitor will be discovered by Prometheus | {} |
proxy.metrics.serviceMonitor.selector | Prometheus instance selector labels | {} |
proxy.metrics.serviceMonitor.relabelings | RelabelConfigs to apply to samples before scraping | [] |
proxy.metrics.serviceMonitor.metricRelabelings | MetricRelabelConfigs to apply to samples before ingestion | [] |
proxy.metrics.serviceMonitor.honorLabels | Specify honorLabels parameter to add the scrape endpoint | false |
proxy.metrics.serviceMonitor.jobLabel | The name of the label on the target service to use as the job name in prometheus. | "" |
Image puller deployment parameters¶
Name | Description | Value |
---|---|---|
imagePuller.enabled | Deploy ImagePuller daemonset | true |
imagePuller.command | Override ImagePuller default command | [] |
imagePuller.args | Override ImagePuller default args | [] |
imagePuller.extraEnvVars | Add extra environment variables to the ImagePuller container | [] |
imagePuller.extraEnvVarsCM | Name of existing ConfigMap containing extra env vars | "" |
imagePuller.extraEnvVarsSecret | Name of existing Secret containing extra env vars | "" |
imagePuller.customStartupProbe | Override default startup probe | {} |
imagePuller.customLivenessProbe | Override default liveness probe | {} |
imagePuller.customReadinessProbe | Override default readiness probe | {} |
imagePuller.resources.limits | The resources limits for the ImagePuller containers | {} |
imagePuller.resources.requests | The requested resources for the ImagePuller containers | {} |
imagePuller.containerSecurityContext.enabled | Enabled ImagePuller containers' Security Context | true |
imagePuller.containerSecurityContext.runAsUser | Set ImagePuller container's Security Context runAsUser | 1001 |
imagePuller.containerSecurityContext.runAsNonRoot | Set ImagePuller container's Security Context runAsNonRoot | true |
imagePuller.podSecurityContext.enabled | Enabled ImagePuller pods' Security Context | true |
imagePuller.podSecurityContext.fsGroup | Set ImagePuller pod's Security Context fsGroup | 1001 |
imagePuller.lifecycleHooks | Add lifecycle hooks to the ImagePuller deployment | {} |
imagePuller.hostAliases | Add deployment host aliases | [] |
imagePuller.podLabels | Pod extra labels | {} |
imagePuller.podAnnotations | Annotations for ImagePuller pods | {} |
imagePuller.podAffinityPreset | Pod affinity preset. Ignored if imagePuller.affinity is set. Allowed values: soft or hard | "" |
imagePuller.podAntiAffinityPreset | Pod anti-affinity preset. Ignored if imagePuller.affinity is set. Allowed values: soft or hard | soft |
imagePuller.nodeAffinityPreset.type | Node affinity preset type. Ignored if imagePuller.affinity is set. Allowed values: soft or hard | "" |
imagePuller.nodeAffinityPreset.key | Node label key to match. Ignored if imagePuller.affinity is set | "" |
imagePuller.nodeAffinityPreset.values | Node label values to match. Ignored if imagePuller.affinity is set | [] |
imagePuller.affinity | Affinity for pod assignment. Evaluated as a template. | {} |
imagePuller.nodeSelector | Node labels for pod assignment. Evaluated as a template. | {} |
imagePuller.tolerations | Tolerations for pod assignment. Evaluated as a template. | [] |
imagePuller.topologySpreadConstraints | Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template | [] |
imagePuller.priorityClassName | Priority Class Name | "" |
imagePuller.schedulerName | Use an alternate scheduler, e.g. "stork". | "" |
imagePuller.terminationGracePeriodSeconds | Seconds ImagePuller pod needs to terminate gracefully | "" |
imagePuller.updateStrategy.type | Update strategy - only really applicable for deployments with RWO PVs attached | RollingUpdate |
imagePuller.updateStrategy.rollingUpdate | ImagePuller deployment rolling update configuration parameters | {} |
imagePuller.extraVolumes | Optionally specify extra list of additional volumes for ImagePuller pods | [] |
imagePuller.extraVolumeMounts | Optionally specify extra list of additional volumeMounts for ImagePuller container(s) | [] |
imagePuller.initContainers | Add additional init containers to the ImagePuller pods | [] |
imagePuller.sidecars | Add additional sidecar containers to the ImagePuller pod | [] |
Singleuser deployment parameters¶
Name | Description | Value |
---|---|---|
singleuser.image.registry | Single User image registry | docker.io |
singleuser.image.repository | Single User image repository | bitnami/jupyter-base-notebook |
singleuser.image.tag | Single User image tag (immutabe tags are recommended) | 4.0.1-debian-11-r6 |
singleuser.image.digest | Single User image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
singleuser.image.pullPolicy | Single User image pull policy | IfNotPresent |
singleuser.image.pullSecrets | Single User image pull secrets | [] |
singleuser.notebookDir | Notebook directory (it will be the same as the PVC volume mount) | /opt/bitnami/jupyterhub-singleuser |
singleuser.allowPrivilegeEscalation | Controls whether a process can gain more privileges than its parent process | false |
singleuser.command | Override Single User default command | [] |
singleuser.extraEnvVars | Extra environment variables that should be set for the user pods | [] |
singleuser.containerPort | Single User container port | 8888 |
singleuser.resources.limits | The resources limits for the Singleuser containers | {} |
singleuser.resources.requests | The requested resources for the Singleuser containers | {} |
singleuser.containerSecurityContext.enabled | Enabled Single User containers' Security Context | true |
singleuser.containerSecurityContext.runAsUser | Set Single User container's Security Context runAsUser | 1001 |
singleuser.podSecurityContext.enabled | Enabled Single User pods' Security Context | true |
singleuser.podSecurityContext.fsGroup | Set Single User pod's Security Context fsGroup | 1001 |
singleuser.podLabels | Extra labels for Single User pods | {} |
singleuser.podAnnotations | Annotations for Single User pods | {} |
singleuser.nodeSelector | Node labels for pod assignment. Evaluated as a template. | {} |
singleuser.tolerations | Tolerations for pod assignment. Evaluated as a template. | [] |
singleuser.priorityClassName | Single User pod priority class name | "" |
singleuser.lifecycleHooks | Add lifecycle hooks to the Single User deployment to automate configuration before or after startup | {} |
singleuser.extraVolumes | Optionally specify extra list of additional volumes for Single User pods | [] |
singleuser.extraVolumeMounts | Optionally specify extra list of additional volumeMounts for Single User container(s) | [] |
singleuser.initContainers | Add additional init containers to the Single User pods | [] |
singleuser.sidecars | Add additional sidecar containers to the Single User pod | [] |
Single User RBAC parameters¶
Name | Description | Value |
---|---|---|
singleuser.serviceAccount.create | Specifies whether a ServiceAccount should be created | true |
singleuser.serviceAccount.name | Override Single User service account name | "" |
singleuser.serviceAccount.automountServiceAccountToken | Allows auto mount of ServiceAccountToken on the serviceAccount created | true |
singleuser.serviceAccount.annotations | Additional custom annotations for the ServiceAccount | {} |
Single User Persistence parameters¶
Name | Description | Value |
---|---|---|
singleuser.persistence.enabled | Enable persistent volume creation on Single User instances | true |
singleuser.persistence.storageClass | Persistent Volumes storage class | "" |
singleuser.persistence.accessModes | Persistent Volumes access modes | ["ReadWriteOnce"] |
singleuser.persistence.size | Persistent Volumes size | 10Gi |
Traffic exposure parameters¶
Name | Description | Value |
---|---|---|
singleuser.networkPolicy.enabled | Deploy Single User network policies | true |
singleuser.networkPolicy.allowInterspaceAccess | Allow communication between pods in different namespaces | true |
singleuser.networkPolicy.allowCloudMetadataAccess | Allow Single User pods to access Cloud Metada endpoints | false |
singleuser.networkPolicy.extraIngress | Add extra ingress rules to the NetworkPolicy | "" |
singleuser.networkPolicy.extraEgress | Add extra egress rules to the NetworkPolicy | "" |
Auxiliary image parameters¶
Name | Description | Value |
---|---|---|
auxiliaryImage.registry | Auxiliary image registry | docker.io |
auxiliaryImage.repository | Auxiliary image repository | bitnami/bitnami-shell |
auxiliaryImage.tag | Auxiliary image tag (immutabe tags are recommended) | 11-debian-11-r130 |
auxiliaryImage.digest | Auxiliary image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
auxiliaryImage.pullPolicy | Auxiliary image pull policy | IfNotPresent |
auxiliaryImage.pullSecrets | Auxiliary image pull secrets | [] |
JupyterHub database parameters¶
Name | Description | Value |
---|---|---|
postgresql.enabled | Switch to enable or disable the PostgreSQL helm chart | true |
postgresql.auth.username | Name for a custom user to create | bn_jupyterhub |
postgresql.auth.password | Password for the custom user to create | "" |
postgresql.auth.database | Name for a custom database to create | bitnami_jupyterhub |
postgresql.auth.existingSecret | Name of existing secret to use for PostgreSQL credentials | "" |
postgresql.architecture | PostgreSQL architecture (standalone or replication ) | standalone |
postgresql.service.ports.postgresql | PostgreSQL service port | 5432 |
externalDatabase.host | Database host | "" |
externalDatabase.port | Database port number | 5432 |
externalDatabase.user | Non-root username for JupyterHub | postgres |
externalDatabase.password | Password for the non-root username for JupyterHub | "" |
externalDatabase.database | JupyterHub database name | jupyterhub |
externalDatabase.existingSecret | Name of an existing secret resource containing the database credentials | "" |
externalDatabase.existingSecretPasswordKey | Name of an existing secret key containing the database credentials | "" |
Specify each parameter using the --set key=value[,key=value]
argument to helm install
. For example,
The above command sets the proxy.livenessProbe.successThreshold
to 5
.
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
Configuration and installation details¶
Rolling vs Immutable tags¶
It is strongly recommended to use immutable tags in a production environment. This ensures your deployment does not change automatically if the same tag is updated with a different image.
Bitnami will release a new chart updating its containers if a new version of the main container, significant changes, or critical vulnerabilities exist.
Configure authentication¶
The chart configures the Hub DummyAuthenticator by default, with the password set in the hub.password
(auto-generated if not set) chart parameter and user
as the administrator user. In order to change the authentication mechanism, change the hub.config.JupyterHub
section inside the hub.configuration
value.
Refer to the chart documentation for a configuration example.
Configure the Single User instances¶
As explained in the documentation, the Hub is responsible for deploying the Single User instances. The configuration of these instances is passed to the Hub instance via the hub.configuration
chart parameter. The chart's singleuser
section can be used to generate the hub.configuration
value.
For more information, including how to provide a secret or a custom ConfigMap, refer to the chart documentation on configuring Single User instances.
Restrict traffic using NetworkPolicies¶
The Bitnami JupyterHub chart enables NetworkPolicies by default. This restricts the communication between the three main components: the Proxy, the Hub and the Single User instances. There are two elements that were left open on purpose:
- Ingress access to the Proxy instance HTTP port: by default, it is open to any IP, as it is the entry point to the JupyterHub instance. This behavior can be changed by tweaking the
proxy.networkPolicy.extraIngress
value. - Hub egress access: As the Hub requires access to the Kubernetes API, the Hub can access to any IP by default (depending on the Kubernetes platform, the Service IP ranges can vary and so there is no easy way to detect the Kubernetes API internal IP). This behavior can be changed by tweaking the
hub.networkPolicy.extraEgress
value.
Use sidecars and init containers¶
If additional containers are needed in the same pod (such as additional metrics or logging exporters), they can be defined using the proxy.sidecars
, hub.sidecars
or singleuser.sidecars
config parameters. Similarly, extra init containers can be added using the hub.initContainers
, proxy.initContainers
and singleuser.initContainers
parameters.
Refer to the chart documentation for more information on, and examples of, configuring and using sidecars and init containers.
Configure Ingress¶
This chart provides support for Ingress resources for the JupyterHub proxy component. If an Ingress controller, such as nginx-ingress or traefik, that Ingress controller can be used to serve WordPress.
To enable Ingress integration, set proxy.ingress.enabled
to true
. The proxy.ingress.hostname
property can be used to set the host name. The proxy.ingress.tls
parameter can be used to add the TLS configuration for this host. It is also possible to have more than one host, with a separate TLS configuration for each host.
Learn more about configuring and using Ingress in the chart documentation.
Configure TLS secrets¶
This chart facilitates the creation of TLS secrets for use with the Ingress controller (although this is not mandatory). There are four common use cases:
- Helm generates/manages certificate secrets based on the parameters.
- User generates/manages certificates separately.
- Helm creates self-signed certificates and generates/manages certificate secrets.
- An additional tool (like cert-manager) manages the secrets for the application.
Refer to the chart documentation for more information on working with TLS.
Set pod affinity¶
This chart allows you to set your custom affinity using the hub.affinity
and proxy.affinity
parameters. Refer to the chart documentation on pod affinity.
Deploy extra resources¶
There are cases where you may want to deploy extra objects, such a ConfigMap containing your app's configuration or some extra deployment with a micro service used by your app. For covering this case, the chart allows adding the full specification of other objects using the extraDeploy
parameter.
Troubleshooting¶
Find more information about how to deal with common errors related to Bitnami's Helm charts in this troubleshooting guide.
Upgrading¶
To 3.0.0¶
This major updates the PostgreSQL subchart to its newest major, 12.0.0. Here you can find more information about the changes introduced in that version.
To any previous version¶
Refer to the chart documentation for more information about how to upgrade from previous releases.
License¶
Copyright © 2023 VMware, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.