OpenTenant / Marketplace / ilum / ilum-streamlit
Helm chart v0.1.0 Verified publisher
Chart for integrating Streamlit with Ilum. It is meant to be used within the main Ilum chart.
About this chart
Streamlit Helm Chart Introduction
This Helm chart is a part of Ilum - a modular Data Lakehouse for a Cloud Native World.
It provides the Streamlit module.
Parameters Global parameters Name Description Value
fullnameOverrideString to fully override common.names.fullname ""
nameOverrideString to partially override common.names.name ""
Common parameters Name Description Value
modeMode of operation for the Streamlit application (currently supported: "image") image
replicaCountNumber of Streamlit replicas to deploy 1
Image parameters Name Description Value
image.repositoryStreamlit image repository ilum/streamlit-example
image.pullPolicyStreamlit image pull policy IfNotPresent
image.tagStreamlit image tag (immutable tags are recommended). Overrides the Chart appVersion 1.0.0
Service parameters Name Description Value
service.typeStreamlit service type ClusterIP
service.portStreamlit service port 8501
service.targetPortStreamlit target port (container port) 8501
service.annotationsAdditional annotations for the Streamlit service {}
Resource parameters Name Description Value
resourcesThe resources limits and requests for the Streamlit containers {}
Deployment parameters Name Description Value
nodeSelectorNode labels for pod assignment {}
tolerationsTolerations for pod assignment []
affinityAffinity for pod assignment {}
podAnnotationsAnnotations for Streamlit pods {}
podLabelsExtra labels for Streamlit pods {}
podSecurityContextSecurity context for the Streamlit pod(s) {}
securityContextSecurity context for the Streamlit container(s) {}
Probe parameters Name Description Value
livenessProbe.enabledEnable livenessProbe on Streamlit containers true
livenessProbe.httpGet.pathPath for livenessProbe /_stcore/health
livenessProbe.httpGet.portPort for livenessProbe streamlit
livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe 30
livenessProbe.periodSecondsPeriod seconds for livenessProbe 10
livenessProbe.timeoutSecondsTimeout seconds for livenessProbe 5
livenessProbe.successThresholdSuccess threshold for livenessProbe 1
livenessProbe.failureThresholdFailure threshold for livenessProbe 3
readinessProbe.enabledEnable readinessProbe on Streamlit containers true
readinessProbe.httpGet.pathPath for readinessProbe /_stcore/health
readinessProbe.httpGet.portPort for readinessProbe streamlit
readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe 10
readinessProbe.periodSecondsPeriod seconds for readinessProbe 5
readinessProbe.timeoutSecondsTimeout seconds for readinessProbe 3
readinessProbe.successThresholdSuccess threshold for readinessProbe 1
readinessProbe.failureThresholdFailure threshold for readinessProbe 3
Environment variables Name Description Value
envArray with environment variables to add to Streamlit containers []
envFromArray with environment variables from ConfigMaps or Secrets []
Volume parameters Name Description Value
volumesOptionally specify extra list of additional volumes for the Streamlit pod(s) []
volumeMountsOptionally specify extra list of additional volumeMounts for the Streamlit container(s) []
Streamlit configuration Name Description Value
streamlit.server.portStreamlit server port 8501
streamlit.server.headlessEnable headless mode true
streamlit.server.enableCORSEnable CORS false
streamlit.server.enableXsrfProtectionEnable XSRF protection true
streamlit.browser.gatherUsageStatsGather usage statistics false
Additional containers Name Description Value
initContainersAdd additional init containers to the Streamlit pod(s) []
sidecarsAdd additional sidecar containers to the Streamlit pod(s) []
Configuration and installation details Setting up environment variables
You can set environment variables using the env parameter:
env:
- name: STREAMLIT_SERVER_PORT
value: "8501"
Using ConfigMaps and Secrets
You can inject environment variables from ConfigMaps or Secrets:
envFrom:
- configMapRef:
name: streamlit-config
- secretRef:
name: streamlit-secrets
Deploy ilum-streamlit with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ilum-streamlit on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
Pick a server Connect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.Place the chart ilum-streamlit is pinned at v0.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.Apply Save opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply Copy