open5gs-smf
by Gradiant
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
| Name | Url | |
|---|---|---|
| cgiraldo | [email protected] |
Source Code
Requirements
| Repository | Name | Version |
|---|---|---|
| https://charts.bitnami.com/bitnami | common | 2.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
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Affinity for pod assignment |
| args | list | [] | Override default container args (useful when using custom images) |
| autoscaling.enabled | bool | false | Create a HorizontalPodAutoscaler for the Deployment |
| autoscaling.maxReplicas | int | 1 | Maximum number of replicas for the autoscaler |
| autoscaling.minReplicas | int | 1 | Minimum number of replicas for the autoscaler |
| command | list | [] | Override default container command (useful when using custom images) |
| commonAnnotations | object | {} | Common annotations to add to all open5gs-smf resources (sub-charts are not considered). Evaluated as a template |
| commonLabels | object | {} | Common labels to add to all open5gs-smf resources (sub-charts are not considered). Evaluated as a template |
| config.dnsList | list | ["8.8.8.8","8.8.4.4","2001:4860:4860::8888","2001:4860:4860::8844"] | DNS servers advertised to UEs. |
| config.logLevel | string | "info" | |
| config.mtu | int | 1400 | |
| config.pcrf.enabled | bool | true | |
| config.pcrf.frdi.hostname | string | "" | |
| config.pcrf.frdi.port | int | 3868 | |
| config.sbi.client.nrf.enabled | bool | false | |
| config.sbi.client.nrf.uri | string | "" | |
| config.sbi.client.scp.enabled | bool | true | |
| config.sbi.client.scp.uri | string | "" | |
| config.sbi.server | string | nil | |
| config.subnetList | list | [{"dnn":"internet","gateway":"10.45.0.1","subnet":"10.45.0.0/16"}] | UE subnets, DNNs and related user-plane settings. |
| config.upf.pfcp.hostname | string | "" | |
| containerPorts.frdi | int | 3868 | Container port for Diameter. |
| containerPorts.gtpc | int | 2123 | Container port for GTP-C. |
| containerPorts.gtpu | int | 2152 | Container port for GTP-U. |
| containerPorts.metrics | int | 9090 | Container port for metrics. |
| containerPorts.pfcp | int | 8805 | Container port for PFCP. |
| containerPorts.sbi | int | 7777 | Container port for SBI. |
| containerSecurityContext.enabled | bool | true | Apply this security context. |
| containerSecurityContext.runAsGroup | int | 999 | GID used by this security context. |
| containerSecurityContext.runAsNonRoot | bool | true | Require the container to run as a non-root user. |
| containerSecurityContext.runAsUser | int | 999 | UID used by this security context. |
| customLivenessProbe | object | {} | Complete replacement for the default probe, taking priority even when it is enabled. Empty uses the default or omits it when disabled. |
| customOpen5gsConfig | object | {} | overwrite open5gs configuration file |
| customReadinessProbe | object | {} | Complete replacement for the default probe, taking priority even when it is enabled. Empty uses the default or omits it when disabled. |
| customStartupProbe | object | {} | Complete replacement for the default probe, taking priority even when it is enabled. Empty uses the default or omits it when disabled. |
| extraDeploy | list | [] | Array of extra objects to deploy with the release (evaluated as a template). |
| extraEnvVars | list | [] | Extra environment variables |
| extraEnvVarsCM | string | "" | ConfigMap containing extra env vars |
| extraEnvVarsSecret | string | "" | Secret containing extra env vars (in case of sensitive data) |
| extraVolumeMounts | list | [] | Array of extra volume mounts to be added to the container (evaluated as template). Normally used with extraVolumes. |
| extraVolumes | list | [] | Array of extra volumes to be added to the deployment (evaluated as template). Requires setting extraVolumeMounts |
| fullnameOverride | string | "" | String to fully override open5gs-smf.fullname template |
| global.imagePullSecrets | list | [] | Global Docker registry secret names as an array |
| global.imageRegistry | string | "" | Global Docker image registry |
| global.storageClass | string | "" | Global StorageClass for Persistent Volume(s) |
| hostAliases | list | [] | [array] Add deployment host aliases |
| image.debug | bool | false | Specify if debug logs should be enabled |
| image.digest | string | "" | Optional image digest; takes precedence over the tag. |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy: Always, IfNotPresent or Never. |
| image.pullSecrets | list | [] | Image pull Secret names in the workload namespace. |
| image.registry | string | "docker.io" | Container image registry. |
| image.repository | string | "gradiant/open5gs" | Container image repository. |
| image.tag | string | "2.8.0" | Container image tag. |
| initContainers | list | [] | Add additional init containers to the pod (evaluated as a template) |
| kubeVersion | string | "" | Force target Kubernetes version (using Helm capabilities if not set) |
| lifecycleHooks | object | {} | LifecycleHook to set additional configuration at startup Evaluated as a template |
| livenessProbe.enabled | bool | true | Enable the default liveness probe. A non-empty custom probe takes priority. |
| livenessProbe.failureThreshold | int | 3 | Consecutive failed checks before restarting the container after startup has succeeded. |
| livenessProbe.initialDelaySeconds | int | 0 | Delay in seconds before checks can begin (minimum 0). Application probes run after init containers. |
| livenessProbe.periodSeconds | int | 10 | Interval between checks in seconds (minimum 1). |
| livenessProbe.successThreshold | int | 1 | Consecutive successes required; Kubernetes requires 1 for startup and liveness. |
| livenessProbe.timeoutSeconds | int | 2 | Timeout for one check in seconds (minimum 1). |
| metrics.enabled | bool | false | |
| metrics.serviceMonitor.additionalLabels | object | {} | Additional labels that can be used so ServiceMonitor resource(s) can be discovered by Prometheus |
| metrics.serviceMonitor.enabled | bool | false | Create ServiceMonitor resource(s) for scraping metrics using PrometheusOperator |
| metrics.serviceMonitor.honorLabels | bool | false | Specify honorLabels parameter to add the scrape endpoint |
| metrics.serviceMonitor.interval | string | "" | The interval at which metrics should be scraped |
| metrics.serviceMonitor.metricRelabelings | list | [] | Metrics RelabelConfigs to apply to samples before ingestion. |
| metrics.serviceMonitor.namespace | string | "" | The namespace in which the ServiceMonitor will be created |
| metrics.serviceMonitor.relabelings | list | [] | |
| metrics.serviceMonitor.scrapeTimeout | string | "" | The timeout after which the scrape is ended |
| metrics.serviceScrape.additionalLabels | object | {} | Additional labels that can be used so VMServiceScrape resource(s) can be discovered by VictoriaMetrics |
| metrics.serviceScrape.enabled | bool | false | Create VMServiceScrape resource(s) for scraping metrics using VictoriaMetrics Operator |
| metrics.serviceScrape.namespace | string | "" | The namespace in which the VMServiceScrape will be created |
| metrics.serviceScrape.scrape_interval | string | "15s" | The interval at which metrics should be scraped |
| nameOverride | string | "" | String to partially override open5gs-smf.fullname template (will maintain the release name) |
| namespaceOverride | string | "" | String to fully override common.names.namespace |
| nodeAffinityPreset.key | string | "" | Node label key to match Ignored if affinity is set. |
| nodeAffinityPreset.type | string | "" | Node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard |
| nodeAffinityPreset.values | list | [] | Node label values to match. Ignored if affinity is set. |
| nodeSelector | object | {} | Node labels for pod assignment. Evaluated as a template. |
| podAffinityPreset | string | "" | Pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard |
| podAnnotations | object | {} | Pod annotations |
| podAntiAffinityPreset | string | "soft" | Pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hard |
| podLabels | object | {} | Add additional labels to the pod (evaluated as a template) |
| podSecurityContext.enabled | bool | true | Apply this security context. |
| podSecurityContext.fsGroup | int | 999 | Group used for mounted-volume access. |
| priorityClassName | string | "" | open5gs-smf pods' priorityClassName |
| readinessProbe.enabled | bool | true | Enable the default readiness probe. A non-empty custom probe takes priority. |
| readinessProbe.failureThreshold | int | 3 | Consecutive failed checks before marking the Pod NotReady; this does not restart the container. |
| readinessProbe.initialDelaySeconds | int | 0 | Delay in seconds before checks can begin (minimum 0). Application probes run after init containers. |
| readinessProbe.periodSeconds | int | 5 | Interval between checks in seconds (minimum 1). |
| readinessProbe.successThreshold | int | 1 | Consecutive successes needed to restore readiness (minimum 1). |
| readinessProbe.timeoutSeconds | int | 2 | Timeout for one check in seconds (minimum 1). |
| replicaCount | int | 1 | Number of application replicas. |
| resources.limits.cpu | string | "500m" | Container cpu limit as a Kubernetes quantity (for example 100m). |
| resources.limits.memory | string | "512Mi" | Container memory limit as a Kubernetes quantity (for example 128Mi). |
| resources.requests.cpu | string | "50m" | Container cpu request as a Kubernetes quantity (for example 100m). |
| resources.requests.memory | string | "64Mi" | Container memory request as a Kubernetes quantity (for example 128Mi). |
| schedulerName | string | "" | Name of the k8s scheduler (other than default) |
| serviceAccount.annotations | object | {} | Add annotations |
| serviceAccount.automountServiceAccountToken | bool | false | Mount an API token in pods and on the ServiceAccount created by the chart. |
| serviceAccount.create | bool | true | Specifies whether a dedicated service account should be created. |
| serviceAccount.name | string | "" | 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.annotations | object | {} | |
| services.frdi.clusterIP | string | "" | Fixed Service cluster IP; empty lets Kubernetes allocate it. |
| services.frdi.externalTrafficPolicy | string | "Cluster" | Traffic policy for externally exposed Services. |
| services.frdi.extraPorts | list | [] | |
| services.frdi.loadBalancerIP | string | "" | |
| services.frdi.loadBalancerSourceRanges | list | [] | |
| services.frdi.nodePorts.frdi | string | "" | NodePort override; empty lets Kubernetes allocate the port. |
| services.frdi.ports.frdi | int | 3868 | Service port for Diameter. |
| services.frdi.publishNotReadyAddresses | bool | false | Publish unready Pod endpoints; enable only for required bootstrap/discovery or metrics diagnostics. |
| services.frdi.sessionAffinity | string | "None" | Service session-affinity policy. |
| services.frdi.sessionAffinityConfig | object | {} | |
| services.frdi.type | string | "ClusterIP" | Kubernetes Service type: ClusterIP, NodePort or LoadBalancer. |
| services.gtpc.annotations | object | {} | |
| services.gtpc.clusterIP | string | "" | Fixed Service cluster IP; empty lets Kubernetes allocate it. |
| services.gtpc.externalTrafficPolicy | string | "Cluster" | Traffic policy for externally exposed Services. |
| services.gtpc.extraPorts | list | [] | |
| services.gtpc.loadBalancerIP | string | "" | |
| services.gtpc.loadBalancerSourceRanges | list | [] | |
| services.gtpc.nodePorts.gtpc | string | "" | NodePort override; empty lets Kubernetes allocate the port. |
| services.gtpc.ports.gtpc | int | 2123 | Service port for GTP-C. |
| services.gtpc.publishNotReadyAddresses | bool | false | Publish unready Pod endpoints; enable only for required bootstrap/discovery or metrics diagnostics. |
| services.gtpc.sessionAffinity | string | "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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartopen5gs-smf is pinned at v2.4.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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