open5gs-smf

by Gradiant

Helm chartv2.4.1App 2.8.0Verified publisher

Helm chart to deploy Open5gs SMF service on Kubernetes.

About this chart

open5gs-smf

Helm chart to deploy Open5gs SMF service on Kubernetes.

Homepage: https://github.com/gradiant/5g-charts

Maintainers

NameEmailUrl
cgiraldo[email protected]

Source Code

Requirements

RepositoryNameVersion
https://charts.bitnami.com/bitnamicommon2.x.x

Health probes

Startup checks are enabled immediately, with a budget of approximately five minutes (60 attempts at 5-second intervals). Once startup succeeds, readiness and liveness checks can begin without a fixed delay. Readiness uses three consecutive failures at 5-second intervals; liveness uses three at 10-second intervals. A successful readiness check can mark the Pod Ready immediately.

customStartupProbe, customReadinessProbe and customLivenessProbe replace the corresponding default probe, including when its enabled flag is true. To omit a probe, disable it and leave its custom override empty. Startup and liveness successThreshold must remain 1; probe intervals and timeouts must be positive.

The default probes check a TCP connection to the application port. They do not prove successful protocol exchanges, dependency availability, or the absence of every application deadlock.

Application Services exclude unready Pods by default. Set services.<name>.publishNotReadyAddresses=true only when peer discovery or bootstrap requires publishing them before readiness. Metrics Services keep this setting enabled by default so unhealthy instances remain observable.

Values

KeyTypeDefaultDescription
affinityobject{}Affinity for pod assignment
argslist[]Override default container args (useful when using custom images)
autoscaling.enabledboolfalseCreate a HorizontalPodAutoscaler for the Deployment
autoscaling.maxReplicasint1Maximum number of replicas for the autoscaler
autoscaling.minReplicasint1Minimum number of replicas for the autoscaler
commandlist[]Override default container command (useful when using custom images)
commonAnnotationsobject{}Common annotations to add to all open5gs-smf resources (sub-charts are not considered). Evaluated as a template
commonLabelsobject{}Common labels to add to all open5gs-smf resources (sub-charts are not considered). Evaluated as a template
config.dnsListlist["8.8.8.8","8.8.4.4","2001:4860:4860::8888","2001:4860:4860::8844"]DNS servers advertised to UEs.
config.logLevelstring"info"
config.mtuint1400
config.pcrf.enabledbooltrue
config.pcrf.frdi.hostnamestring""
config.pcrf.frdi.portint3868
config.sbi.client.nrf.enabledboolfalse
config.sbi.client.nrf.uristring""
config.sbi.client.scp.enabledbooltrue
config.sbi.client.scp.uristring""
config.sbi.serverstringnil
config.subnetListlist[{"dnn":"internet","gateway":"10.45.0.1","subnet":"10.45.0.0/16"}]UE subnets, DNNs and related user-plane settings.
config.upf.pfcp.hostnamestring""
containerPorts.frdiint3868Container port for Diameter.
containerPorts.gtpcint2123Container port for GTP-C.
containerPorts.gtpuint2152Container port for GTP-U.
containerPorts.metricsint9090Container port for metrics.
containerPorts.pfcpint8805Container port for PFCP.
containerPorts.sbiint7777Container port for SBI.
containerSecurityContext.enabledbooltrueApply this security context.
containerSecurityContext.runAsGroupint999GID used by this security context.
containerSecurityContext.runAsNonRootbooltrueRequire the container to run as a non-root user.
containerSecurityContext.runAsUserint999UID used by this security context.
customLivenessProbeobject{}Complete replacement for the default probe, taking priority even when it is enabled. Empty uses the default or omits it when disabled.
customOpen5gsConfigobject{}overwrite open5gs configuration file
customReadinessProbeobject{}Complete replacement for the default probe, taking priority even when it is enabled. Empty uses the default or omits it when disabled.
customStartupProbeobject{}Complete replacement for the default probe, taking priority even when it is enabled. Empty uses the default or omits it when disabled.
extraDeploylist[]Array of extra objects to deploy with the release (evaluated as a template).
extraEnvVarslist[]Extra environment variables
extraEnvVarsCMstring""ConfigMap containing extra env vars
extraEnvVarsSecretstring""Secret containing extra env vars (in case of sensitive data)
extraVolumeMountslist[]Array of extra volume mounts to be added to the container (evaluated as template). Normally used with extraVolumes.
extraVolumeslist[]Array of extra volumes to be added to the deployment (evaluated as template). Requires setting extraVolumeMounts
fullnameOverridestring""String to fully override open5gs-smf.fullname template
global.imagePullSecretslist[]Global Docker registry secret names as an array
global.imageRegistrystring""Global Docker image registry
global.storageClassstring""Global StorageClass for Persistent Volume(s)
hostAliaseslist[][array] Add deployment host aliases
image.debugboolfalseSpecify if debug logs should be enabled
image.digeststring""Optional image digest; takes precedence over the tag.
image.pullPolicystring"IfNotPresent"Image pull policy: Always, IfNotPresent or Never.
image.pullSecretslist[]Image pull Secret names in the workload namespace.
image.registrystring"docker.io"Container image registry.
image.repositorystring"gradiant/open5gs"Container image repository.
image.tagstring"2.8.0"Container image tag.
initContainerslist[]Add additional init containers to the pod (evaluated as a template)
kubeVersionstring""Force target Kubernetes version (using Helm capabilities if not set)
lifecycleHooksobject{}LifecycleHook to set additional configuration at startup Evaluated as a template
livenessProbe.enabledbooltrueEnable the default liveness probe. A non-empty custom probe takes priority.
livenessProbe.failureThresholdint3Consecutive failed checks before restarting the container after startup has succeeded.
livenessProbe.initialDelaySecondsint0Delay in seconds before checks can begin (minimum 0). Application probes run after init containers.
livenessProbe.periodSecondsint10Interval between checks in seconds (minimum 1).
livenessProbe.successThresholdint1Consecutive successes required; Kubernetes requires 1 for startup and liveness.
livenessProbe.timeoutSecondsint2Timeout for one check in seconds (minimum 1).
metrics.enabledboolfalse
metrics.serviceMonitor.additionalLabelsobject{}Additional labels that can be used so ServiceMonitor resource(s) can be discovered by Prometheus
metrics.serviceMonitor.enabledboolfalseCreate ServiceMonitor resource(s) for scraping metrics using PrometheusOperator
metrics.serviceMonitor.honorLabelsboolfalseSpecify honorLabels parameter to add the scrape endpoint
metrics.serviceMonitor.intervalstring""The interval at which metrics should be scraped
metrics.serviceMonitor.metricRelabelingslist[]Metrics RelabelConfigs to apply to samples before ingestion.
metrics.serviceMonitor.namespacestring""The namespace in which the ServiceMonitor will be created
metrics.serviceMonitor.relabelingslist[]
metrics.serviceMonitor.scrapeTimeoutstring""The timeout after which the scrape is ended
metrics.serviceScrape.additionalLabelsobject{}Additional labels that can be used so VMServiceScrape resource(s) can be discovered by VictoriaMetrics
metrics.serviceScrape.enabledboolfalseCreate VMServiceScrape resource(s) for scraping metrics using VictoriaMetrics Operator
metrics.serviceScrape.namespacestring""The namespace in which the VMServiceScrape will be created
metrics.serviceScrape.scrape_intervalstring"15s"The interval at which metrics should be scraped
nameOverridestring""String to partially override open5gs-smf.fullname template (will maintain the release name)
namespaceOverridestring""String to fully override common.names.namespace
nodeAffinityPreset.keystring""Node label key to match Ignored if affinity is set.
nodeAffinityPreset.typestring""Node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard
nodeAffinityPreset.valueslist[]Node label values to match. Ignored if affinity is set.
nodeSelectorobject{}Node labels for pod assignment. Evaluated as a template.
podAffinityPresetstring""Pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard
podAnnotationsobject{}Pod annotations
podAntiAffinityPresetstring"soft"Pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hard
podLabelsobject{}Add additional labels to the pod (evaluated as a template)
podSecurityContext.enabledbooltrueApply this security context.
podSecurityContext.fsGroupint999Group used for mounted-volume access.
priorityClassNamestring""open5gs-smf pods' priorityClassName
readinessProbe.enabledbooltrueEnable the default readiness probe. A non-empty custom probe takes priority.
readinessProbe.failureThresholdint3Consecutive failed checks before marking the Pod NotReady; this does not restart the container.
readinessProbe.initialDelaySecondsint0Delay in seconds before checks can begin (minimum 0). Application probes run after init containers.
readinessProbe.periodSecondsint5Interval between checks in seconds (minimum 1).
readinessProbe.successThresholdint1Consecutive successes needed to restore readiness (minimum 1).
readinessProbe.timeoutSecondsint2Timeout for one check in seconds (minimum 1).
replicaCountint1Number of application replicas.
resources.limits.cpustring"500m"Container cpu limit as a Kubernetes quantity (for example 100m).
resources.limits.memorystring"512Mi"Container memory limit as a Kubernetes quantity (for example 128Mi).
resources.requests.cpustring"50m"Container cpu request as a Kubernetes quantity (for example 100m).
resources.requests.memorystring"64Mi"Container memory request as a Kubernetes quantity (for example 128Mi).
schedulerNamestring""Name of the k8s scheduler (other than default)
serviceAccount.annotationsobject{}Add annotations
serviceAccount.automountServiceAccountTokenboolfalseMount an API token in pods and on the ServiceAccount created by the chart.
serviceAccount.createbooltrueSpecifies whether a dedicated service account should be created.
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
services.frdi.annotationsobject{}
services.frdi.clusterIPstring""Fixed Service cluster IP; empty lets Kubernetes allocate it.
services.frdi.externalTrafficPolicystring"Cluster"Traffic policy for externally exposed Services.
services.frdi.extraPortslist[]
services.frdi.loadBalancerIPstring""
services.frdi.loadBalancerSourceRangeslist[]
services.frdi.nodePorts.frdistring""NodePort override; empty lets Kubernetes allocate the port.
services.frdi.ports.frdiint3868Service port for Diameter.
services.frdi.publishNotReadyAddressesboolfalsePublish unready Pod endpoints; enable only for required bootstrap/discovery or metrics diagnostics.
services.frdi.sessionAffinitystring"None"Service session-affinity policy.
services.frdi.sessionAffinityConfigobject{}
services.frdi.typestring"ClusterIP"Kubernetes Service type: ClusterIP, NodePort or LoadBalancer.
services.gtpc.annotationsobject{}
services.gtpc.clusterIPstring""Fixed Service cluster IP; empty lets Kubernetes allocate it.
services.gtpc.externalTrafficPolicystring"Cluster"Traffic policy for externally exposed Services.
services.gtpc.extraPortslist[]
services.gtpc.loadBalancerIPstring""
services.gtpc.loadBalancerSourceRangeslist[]
services.gtpc.nodePorts.gtpcstring""NodePort override; empty lets Kubernetes allocate the port.
services.gtpc.ports.gtpcint2123Service port for GTP-C.
services.gtpc.publishNotReadyAddressesboolfalsePublish unready Pod endpoints; enable only for required bootstrap/discovery or metrics diagnostics.
services.gtpc.sessionAffinitystring"None"Servi

Deploy open5gs-smf with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has open5gs-smf 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 chartopen5gs-smf is pinned at v2.4.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