contentserver

by foomo

Helm chartv0.8.1App 1.21.2Verified publisher

Helm chart for the foomo Content Server.

About this chart

contentserver

Helm chart for the foomo Content Server.

Homepage: https://www.foomo.org

Resources

Values

Autoscaling

KeyTypeDefaultDescription
autoscaling.additionalMetricsobject{}Additional scaling metrics
autoscaling.behaviorobject{}Autoscaling behavior settings
autoscaling.enabledboolfalseSpecifies whether a auto scaling should be enabled
autoscaling.maxReplicasint9Maximum replication number
autoscaling.maxUnavailableint1Maximum unavailablity
autoscaling.minAvailablestring""Minimum availablity
autoscaling.minReplicasint1Minimum replication number
autoscaling.targetCPUint75Target CPU utilization
autoscaling.targetMemorystringnilTarget Memory utilization

Content Server

KeyTypeDefaultDescription
contentserver.annotationsobject{}Content Server annotations
contentserver.basePathstring"/contentserver"Path to export the webserver on
contentserver.extraArgslist[]Arguements to add
contentserver.extraEnvlist[]Environment variables to add
contentserver.extraEnvFromlist[]Environment variables from secrets or configmaps to add
contentserver.extraLabelsobject{}Additional Content Server labels
contentserver.extraPortslist[]Port definitions to add
contentserver.extraVolumeMountslist[]Volume mounts to add
contentserver.extraVolumeslist[]Volumes to add
contentserver.hostAliaseslist[]Host aliases
contentserver.image.pullPolicystring"IfNotPresent"Image tag
contentserver.image.repositorystring"foomo/contentserver"Image repository
contentserver.image.tagstring"1.21.2"Image tag
contentserver.imagePullSecretslist[]Image pull secrets
contentserver.livenessProbeobject{"httpGet":{"path":"/healthz/liveness","port":9400}}Liveness probe settings for pods
contentserver.podAnnotationsobject{}Annotations for pods
contentserver.podLabelsobject{}Labels for pods
contentserver.readinessProbeobject{"httpGet":{"path":"/healthz/readiness","port":9400}}Readiness probe settings for pods
contentserver.repository.pollboolfalseIf true, the address arg will be used to periodically poll the content url e.g. http://contentserverexport:8080/poll-revision
contentserver.repository.pollIntervalstring"60s"Update poll interval
contentserver.repository.urlstring"http://contentserverexport:8080"Repository server url
contentserver.resourcesobject{}Resource request & limits
contentserver.securityContext.allowPrivilegeEscalationboolfalseControls whether a process can gain more privileges than its parent process
contentserver.securityContext.capabilitiesobject{"drop":["ALL"]}Grant certain privileges to a process without granting all the privileges of the root user
contentserver.securityContext.readOnlyRootFilesystembooltrueMounts the container's root filesystem as read-only
contentserver.startupProbeobject{"httpGet":{"path":"/healthz/startup","port":9400}}Startup probe settings for pods

Overrides

KeyTypeDefaultDescription
fullnameOverridestring""Overrides the chart's computed fullname
nameOverridestring""Overrides the chart's name
namespaceOverridestring""The name of the Namespace to deploy

Graceful Shutdown

KeyTypeDefaultDescription
graceful.delaySecondsint15Seconds to wait for kubernetes to deregister
graceful.enabledboolfalseIndicates wether graceful shutdown is enabled
graceful.periodSecondsint45Total seconds for the grace period

Ingress

KeyTypeDefaultDescription
ingress.additionalLabelsobject{}Additional labels
ingress.annotationsobject{}Ingress annotations
ingress.classNamestring""Ingress class name
ingress.enabledboolfalseIndicates wether the ingress is enabled or not
ingress.hostslist[]List of hosts
ingress.pathslist[]List of hosts
ingress.tlslist[]TLS settings

Logging

KeyTypeDefaultDescription
log.disableCallerboolfalseLog caller
log.levelstring"info"Log level
log.modestring"prod"Log mode

Network Policy

KeyTypeDefaultDescription
networkPolicy.egress.additionalRuleslist[]Additional egress rules
networkPolicy.egress.allowExternalbooltrueAllow ingress through labels
networkPolicy.egress.enabledbooltrueSpecifies whether egress should be enabled
networkPolicy.enabledboolfalseSpecifies whether Network Policies should be created
networkPolicy.ingress.additionalRuleslist[]Additional ingress rules
networkPolicy.ingress.allowExternalbooltrueAllow ingress through labels
networkPolicy.ingress.enabledbooltrueSpecifies whether ingress should be enabled
networkPolicy.ruleslist[]List of rules to apply via labels

OpenTelemetry

KeyTypeDefaultDescription
otel.enabledboolfalseIndicates wether to enable it or not
otel.otlpobject{"endpoint":"http://alloy:4317","insecure":true}OTLP exporter settings
otel.otlp.endpointstring"http://alloy:4317"Enpoint uri
otel.otlp.insecurebooltrueIndicates wether to use insecure connection
otel.profileobject{"block":{"enabled":false},"endpoint":"http://pyroscope:4040","mutex":{"enabled":false}}OTLP profile settings
otel.profile.blockobject{"enabled":false}OTLP profile block settings
otel.profile.block.enabledboolfalseIndicates wether to enable it or not
otel.profile.endpointstring"http://pyroscope:4040"Enpoint uri
otel.profile.mutexobject{"enabled":false}OTLP profile mutex settings
otel.profile.mutex.enabledboolfalseIndicates wether to enable it or not
otel.ratioint1Trace ratio

Persistence

KeyTypeDefaultDescription
persistence.accessModeslist["ReadWriteOnce"]Access modes for the PVC
persistence.annotationsobject{}Annotations for the PVC
persistence.enabledboolfalseEnable persistent storage
persistence.labelsobject{}Labels for the PVC
persistence.pathstring"/var/lib/contentserver"File storage location
persistence.sizestring"1Gi"Storage size
persistence.storageClassstring""Storage class to be used

RBAC

KeyTypeDefaultDescription
rbac.enabledboolfalseCreate PodSecurityPolicy

General

KeyTypeDefaultDescription
replicasint1Number of replications
revisionHistoryLimitint10Number of revisions to keep
updateStrategystring"RollingUpdate"Deployment update strategy

Routing

KeyTypeDefaultDescription
routing.enabledboolfalseIndicates wether routing is enabled or not
routing.hostnameslist[]Hostnames matched by the route; defaults to the listener hostname (supports tpl)
routing.parentRefslist[]Parent references
routing.pathslist[]Path matches

Scheduling

KeyTypeDefaultDescription
scheduling.affinityobject{"requiredDuringSchedulingIgnoredDuringExecution":{"nodeSelectorTerms":[{"matchExpressions":[{"key":"node-role.kubernetes.io/control-plane","operator":"In","values":[""]}]}]}}Affinity for pod assignment
scheduling.enabledboolfalseIndicates wether scheduling is enabled or not
scheduling.nodeSelectorobject{}Node labels for pod assignment
scheduling.priorityClassstringnilPriority class name
scheduling.tolerationslist[]Tolerations for pod assignment
scheduling.topologySpreadConstraintslist[{"matchLabelKeys":["pod-template-hash"],"maxSkew":1,"topologyKey":"kubernetes.io/hostname","whenUnsatisfiable":"DoNotSchedule"},{"maxSkew":1,"topologyKey":"topology.kubernetes.io/zone","whenUnsatisfiable":"ScheduleAnyway"}]Tolerations for pod assignment

Security Context

KeyTypeDefaultDescription
securityContext.fsGroupint1001File system group id
securityContext.runAsGroupint1001Run as group id
securityContext.runAsNonRootbooltrueIndicates wether to run as non root user
securityContext.runAsUserint1001Run as user id
securityContext.seccompProfileobject{"type":"RuntimeDefault"}Restrict a Container's Syscalls with seccomp

Service

KeyTypeDefaultDescription
service.additionalLabelsobject{}Additional Service labels
service.annotationsobject{}Service annotations
service.typestring"ClusterIP"Service type

Service Account

KeyTypeDefaultDescription
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.automountboolfalseAutomatically mount a ServiceAccount's API credentials?
serviceAccount.createboolfalseSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use.

Service Monitor

KeyTypeDefaultDescription
serviceMonitor.additionalLabelsobject{}Additional ServiceMonitor labels
serviceMonitor.annotationsobject{}ServiceMonitor annotations
serviceMonitor.enabledboolfalseIf enabled, ServiceMonitor resources for Prometheus Operator are created
serviceMonitor.intervalstring""ServiceMonitor scrape interval
serviceMonitor.metricRelabelingslist[]ServiceMonitor metric relabel configs to apply to samples before ingestion
serviceMonitor.relabelingslist[]ServiceMonitor relabel configs to apply to samples before scraping.
serviceMonitor.scrapeTimeoutstring""ServiceMonitor scrape timeout in Go duration format (e.g. 15s)
serviceMonitor.targetLabelslist[]ServiceMonitor will add labels from the service to the Prometheus metric

Other Values

KeyTypeDefaultDescription
extraObjectsobject{}

Deploy contentserver with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has contentserver 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 chartcontentserver is pinned at v0.8.1 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