open5gs-hss
by Gradiant
Helm chart to deploy Open5gs HSS service on Kubernetes.
About this chart
open5gs-hss
Helm chart to deploy Open5gs HSS service on Kubernetes.
Homepage: https://github.com/gradiant/5g-charts
Maintainers
| Name | Url | |
|---|---|---|
| cgiraldo | [email protected] |
Source Code
Requirements
| Repository | Name | Version |
|---|---|---|
| file://../mongodb | mongodb | ~0.1.0 |
| https://charts.bitnami.com/bitnami | common | 2.x.x |
MongoDB and startup
This chart uses the local MongoDB Community Server chart with mongo:8.0.34
when mongodb.enabled=true. Set dbURI and disable the bundled database to
connect to an external MongoDB instance. By default, the local Service is named
<release>-mongodb; mongodb.service.port is respected when generating the URI.
The wait-for-mongodb init container checks the same URI as the application
before it starts. It retries a MongoDB ping for up to 300 seconds, with bounded
client attempts, and reports a timeout without logging the connection URI.
It also runs when the database is external. Set mongodbWait.enabled=false to
opt out, or adjust the timeout and retry interval below. User-supplied init
containers run after the readiness check. This check covers initial startup;
it does not implement recovery from a database outage after startup.
For existing Bitnami deployments, read the MongoDB migration notes before upgrading. PVC contents and Bitnami-specific values are not automatically converted. The local database supports standalone, unauthenticated deployments; use an external database for authentication or replica sets.
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-hss resources (sub-charts are not considered). Evaluated as a template |
| commonLabels | object | {} | Common labels to add to all open5gs-hss resources (sub-charts are not considered). Evaluated as a template |
| config.logLevel | string | "info" | |
| config.mme.frdi.hostname | string | "" | |
| config.mme.frdi.port | int | 3868 | |
| containerPorts.frdi | int | 3868 | Container port for Diameter. |
| 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 | {} | Optional probe definition; empty leaves this probe unconfigured. |
| customOpen5gsConfig | object | {} | overwrite open5gs configuration file |
| customReadinessProbe | object | {} | Optional probe definition; empty leaves this probe unconfigured. |
| customStartupProbe | object | {} | Optional probe definition; empty leaves this probe unconfigured. |
| dbURI | string | "" | MongoDB URI; empty selects -mongodb and its configured Service port. Helm templating is supported. |
| 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-hss.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 |
| mongodb.auth.enabled | bool | false | The local MongoDB chart does not implement authentication; keep false or use an authenticated external database. |
| mongodb.enabled | bool | true | set to 'false' to disable automatically deploying dependent charts -- Deploy the bundled local MongoDB chart; disable it when using an external database. |
| mongodbWait.enabled | bool | true | Wait for a successful MongoDB ping before application or subscriber initialization. |
| mongodbWait.image.digest | string | "" | Optional image digest; takes precedence over the tag. |
| mongodbWait.image.pullPolicy | string | "IfNotPresent" | Image pull policy: Always, IfNotPresent or Never. |
| mongodbWait.image.registry | string | "docker.io" | Container image registry. |
| mongodbWait.image.repository | string | "library/mongo" | Container image repository. |
| mongodbWait.image.tag | string | "8.0.34" | Container image tag. |
| mongodbWait.resources.limits.cpu | string | "1" | Container cpu limit as a Kubernetes quantity (for example 100m). |
| mongodbWait.resources.limits.memory | string | "512Mi" | Container memory limit as a Kubernetes quantity (for example 128Mi). |
| mongodbWait.resources.requests.cpu | string | "50m" | Container cpu request as a Kubernetes quantity (for example 100m). |
| mongodbWait.resources.requests.memory | string | "128Mi" | Container memory request as a Kubernetes quantity (for example 128Mi). |
| mongodbWait.retryIntervalSeconds | int | 5 | Delay between unsuccessful connection attempts in seconds (1-3600). |
| mongodbWait.timeoutSeconds | int | 300 | Maximum wait per init-container attempt in seconds (1-86400), not a fixed delay; Kubernetes may retry failed attempts. |
| nameOverride | string | "" | String to partially override open5gs-hss.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-hss pods' priorityClassName |
| 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.sessionAffinity | string | "None" | Service session-affinity policy. |
| services.frdi.sessionAffinityConfig | object | {} | |
| services.frdi.type | string | "ClusterIP" | Kubernetes Service type: ClusterIP, NodePort or LoadBalancer. |
| sessionAffinity | string | "None" | Control where client requests go, to the same pod or round-robin. Values: ClientIP or None |
| sidecars | list | [] | Attach additional containers to the pod (evaluated as a template) |
| tolerations | list | [] | Tolerations for pod assignment |
| topologySpreadConstraints | list | [] | Topology Spread Constraints for pod assignment |
| updateStrategy.type | string | "RollingUpdate" | Update strategy - only really applicable for deployments with RWO PVs attached |
Autogenerated from chart metadata using helm-docs v1.14.2
Deploy open5gs-hss with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has open5gs-hss 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-hss 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