webservice

by joaquinito2051

Helm chartv0.40.5App 0.1.0

OSC webservice bootstrap Helm Chart

About this chart

webservice

OSC webservice bootstrap Helm Chart

Maintainers

NameEmailUrl
treydock

Requirements

RepositoryNameVersion
https://osc.github.io/osc-helm-charts/database0.21.1
https://osc.github.io/osc-helm-charts/osc-common0.17.0

Usage

See charts-private for examples.

Values

Image Config

KeyDescriptionDefault
global.imagePullSecret.usernameOSC container registry robot account"robot$webservices-read"
global.imagePullSecret.passwordPassword for the robot account.required
image.repositoryImage repository.required
image.tagImage tag. Also pulled from global.env.<env>.image.tag.required
image.pullPolicyimagePullPolicy. Forced to Always when image tag contains :latest."IfNotPresent"

Authentication

KeyDescriptionDefault
global.auth.enableEnable auth managementtrue
global.auth.upstreamThe upstream service for the OAuth2 proxy. required when auth is enabled"http://{{ include \"webservice.name\" $ }}.{{ $.Release.Namespace }}.svc.cluster.local:{{ .Values.global.service.port }}"
global.auth.skipAuthRoutesRoutes to skip auth[]
global.auth.allowGroupsRestrict access to these groups[]
global.auth.commonAllowGroupsCommon groups to allow["sysstf"]

Ingress

KeyDescriptionDefault
global.ingress.hostIngress hostrequired
global.ingress.hostAliasIngress host aliasrequired

Extra RBAC

KeyDescriptionDefault
global.debugGroupsGroups that debug pods[]
global.maintenanceGroupsGroups that can perform maintenance operations[]

App Config

KeyDescriptionDefault
global.service.portService port3000
appTypeThe application type"rails"
commandCommand to start webservicePulled from defaultCommand
argsArgs to start webservicePulled from defaultArgs
workingDirwebservice working directorynil
envList environment variables, eg: {"name": "<name>", "value": "<value>"}[]
defaultCommand.railsDefault command when appType is railsCommand for Rails
defaultCommand.rshinyDefault command when appType is rshinyCommand for RShiny
defaultCommand.noneDefault command when appType is none[]
defaultArgs.railsDefault args when appType is railsRails args
defaultArgs.rshinyDefault args when appType is rshinyRShiny args
defaultArgs.noneDefault args when appType is none[]
containersContainers used to run the web serviceA single container

Mounts

KeyDescriptionDefault
mounts.emptyDiremptyDir mounts{}
mounts.homewebservice home mount that is mounted at same location inside pod""
mounts.roDirRead-only directory volumes, name: path.{}
mounts.rwDirRead-write directory volumes, name: path.{}
mounts.socketSocket volumes, name: path.{}
mounts.roFileRead-only file volumes, name: path.{}

Database

KeyDescriptionDefault
database.enableEnable database subchartfalse
database.mariadb.enableEnable MariaDB databasefalse
database.mariadb.auth.rootPasswordThe root user admin passwordrequired
database.mariadb.auth.databaseThe database namerequired
database.mariadb.auth.usernameThe database usernamerequired
database.mariadb.auth.passwordThe database passwordrequired
database.postgresql.enableEnable PostgreSQL databasefalse
database.postgresql.auth.postgresPasswordThe postgres user admin passwordrequired
database.postgresql.auth.databaseThe database namerequired
database.postgresql.auth.usernameThe database usernamerequired
database.postgresql.auth.passwordThe database passwordrequired

Other Values

KeyDescriptionDefault
global.nodeSelectorRoleThe nodeSelector role"webservices"
global.storageClassThe persistent storage class"webservices-nfs-client"
global.alert.receiverThe alert receiver name. Also pulled from global.env.$environment.alert.receiver @section - Monitoring""
nodeSelectorAdditional nodeSelector that is added to existing role selection.{}
podResources.limits.cpuThe pod CPU limits4
podResources.limits.memoryThe pod memory limits"4Gi"
podResources.requests.cpuThe pod CPU request1
podResources.requests.memoryThe pod memory request"256Mi"
replicasNumber of replicas. Also pulled from global.env.<env>.replicas1
secretsSecrets for this webservice, eg {"name": "value"}{}
envSecretsEnvironment secrets for this webservice, eg {"NAME": "value"}{}
service.annotationsAdditional service annotations{}
service.typeAnnotations.rshinyDefault Service annotations when appType is rshinySpecific to rshiny
probes.typeType of probes to use, eg httpGet or tcpSockethttpGet
probes.pathDefault probe path for probes"/"
probes.typeDefaults.rshinyType of probes to use when appType is rshiny."tcpSocket"
startupProbe.httpGet.pathConfig for httpGet startupProbe pathcontainer probePath or probes.path
startupProbe.httpGet.portConfig for httpGet startupProbe portcontainer portName or container name
startupProbe.tcpSocketConfig for tcpSocket startupProbecontainer portName or container name
startupProbe.failureThresholdstartupProbe failureThreshold12
startupProbe.periodSecondsstartupProbe periodSeconds10
startupProbe.timeoutSecondsstartupProbe timeoutSeconds5
livenessProbe.httpGet.pathConfig for httpGet livenessProbe pathcontainer probePath or probes.path
livenessProbe.httpGet.portConfig for httpGet livenessProbe portcontainer portName or container name
livenessProbe.tcpSocketConfig for tcpSocket livenessProbecontainer portName or container name
livenessProbe.failureThresholdlivenessProbe failureThreshold6
livenessProbe.periodSecondslivenessProbe periodSeconds10
livenessProbe.timeoutSecondslivenessProbe timeoutSeconds5
readinessProbe.httpGet.pathConfig for httpGet readinessProbe pathcontainer probePath or probes.path
readinessProbe.httpGet.portConfig for httpGet readinessProbe portcontainer portName or container name
readinessProbe.tcpSocketConfig for tcpSocket readinessProbecontainer portName or container name
readinessProbe.failureThresholdreadinessProbe failureThreshold6
readinessProbe.periodSecondsreadinessProbe periodSeconds10
readinessProbe.timeoutSecondsreadinessProbe timeoutSeconds5
initContainerswebservice init containers{}
init.podResources.limits.cpuinit container pod CPU limits1
init.podResources.limits.memoryinit container pod memory limits"1Gi"
init.podResources.requests.cpuinit container pod CPU request"200m"
init.podResources.requests.memoryinit container pod memory request"256Mi"
data.enableEnable use of persistent data volumefalse
data.storageSizePersistent data volume size"10Gi"
data.pathPersistent data volume mount path"/data"

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy webservice with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has webservice 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartwebservice is pinned at v0.40.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave 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