ella-ims

by joaquinito2051

Helm chartv0.0.2App v0.0.2

Ella IMS, an IP Multimedia Subsystem for private 4G and 5G networks.

About this chart

Ella IMS Helm Chart

Ella IMS is an IP Multimedia Subsystem for private 4G and 5G networks. This chart deploys Ella IMS as a standalone node or as a high-availability cluster.

Prerequisites

The cluster must meet the Kubernetes requirements.

Install

kubectl create namespace ella
kubectl label namespace ella pod-security.kubernetes.io/enforce=privileged pod-security.kubernetes.io/warn=privileged
helm install ella-ims oci://ghcr.io/ellanetworks/charts/ella-ims --namespace ella -f values.yaml

A standalone node, with its SIP interface on a macvlan network:

sip:
  address: 10.6.0.5/24
  networkAttachment:
    master: eth1
    routes:
      - dst: 10.46.0.0/16
        gw: 10.6.0.2

A high-availability cluster, with your own NetworkAttachmentDefinition that gives each pod its own SIP address, and a Secret with the cluster secret:

kubectl create secret generic ella-ims-cluster -n ella --from-literal=secret="$(openssl rand -base64 32)"
replicas: 3
sip:
  address: ""
  networkAttachment:
    create: false
    name: ims-sip
cluster:
  secretName: ella-ims-cluster

See Install and Deploy a High Availability Cluster.

Examples

A SIP interface that the cluster's network provides, here GKE multi-network:

sip:
  address: ""
  networkAttachment:
    create: false
nodeSelector:
  cloud.google.com/gke-nodepool: ims-sip
podAnnotations:
  networking.gke.io/default-interface: eth0
  networking.gke.io/interfaces: '[{"interfaceName":"eth0","network":"default"},{"interfaceName":"eth1","network":"ims-sip"}]'

A fixed SIP address, such as a load balancer's, that an init container adds to a SIP interface that the cluster's network provides:

sip:
  address: ""
  networkAttachment:
    create: false
config:
  sip:
    addresses: [10.60.0.100]
extraInitContainers:
  - name: sip-address
    image: busybox:1.36
    command: ["sh", "-c", "ip addr add 10.60.0.100/32 dev eth1 || true"]
    securityContext:
      runAsUser: 0
      allowPrivilegeEscalation: false
      readOnlyRootFilesystem: true
      capabilities:
        drop: ["ALL"]
        add: ["NET_ADMIN"]

Values

KeyDefaultDescription
replicas1Number of Ella IMS pods. 1 deploys a standalone node. 3 or more deploy a high-availability cluster, with one pod per Kubernetes node.
sip.interfaceeth1Name of the SIP interface in the pod. The CSCFs listen on its addresses.
sip.address10.6.0.5/24SIP address of the pod, in CIDR notation, set through the Multus network annotation. Empty for none. Must be empty with more than one replica.
sip.networkAttachment.createtrueCreate a macvlan NetworkAttachmentDefinition with static IPAM. Set to false to use your own.
sip.networkAttachment.name<release>-sipName of the NetworkAttachmentDefinition. With create false and an empty name, the pod gets no Multus network.
sip.networkAttachment.mastereth1Host interface on the network that phones reach Ella IMS on.
sip.networkAttachment.modebridgemacvlan mode.
sip.networkAttachment.routes[]Routes through the SIP interface, e.g. {dst: 10.46.0.0/16, gw: 10.6.0.2} for the phones' IP pool through the core's N6 or SGi address.
cluster.secretNameName of the Secret that holds the cluster secret in its secret key. Required with more than one replica.
configlogging.level: infoConfiguration file content, merged over the database, API, SIP, Diameter and cluster settings that the chart sets.
image.repositoryghcr.io/ellanetworks/ella-imsImage repository.
image.tagchart appVersionImage tag.
image.tagSuffixSuffix appended to the image tag. -ubi selects the image based on the Red Hat Universal Base Image.
image.digestImage digest. Takes precedence over image.tag.
image.pullPolicyIfNotPresentImage pull policy.
imagePullSecrets[]Image pull secrets.
service.typeClusterIPType of the API service.
service.port5020Port of the API service.
service.nodePortNode port, when service.type is NodePort.
service.annotations{}Annotations of the API service.
api.tls.secretNamekubernetes.io/tls Secret for HTTPS served by the pod itself. The probes and helm test then use HTTPS. With an Ingress, set the controller's annotation for HTTPS to the backend.
ingress.enabledfalseCreate an Ingress that exposes the API and UI.
ingress.classNameIngressClass name. Empty uses the cluster default.
ingress.hostHost name of the API and UI. Required when the Ingress is enabled.
ingress.annotations{}Ingress annotations, e.g. for cert-manager.
ingress.tls[]Ingress TLS entries, each with secretName and hosts.
networkPolicy.enabledtrueCreate a NetworkPolicy that limits the cluster port to the Ella IMS pods, with more than one replica.
persistence.size10GiSize of each pod's data volume.
persistence.storageClassNamedefault StorageClassStorageClass of the data volumes.
resources500m CPU, 256 MiB requested; 16 CPU, 1 GiB limitContainer resources.
clusterDomaincluster.localKubernetes cluster domain, used in the cluster addresses of high-availability pods.
nodeSelector{}Node selector.
tolerations[]Tolerations.
affinityone pod per Kubernetes node in high availabilityAffinity. Replaces the default anti-affinity.
priorityClassNamePriority class.
serviceAccount.createtrueCreate a service account.
serviceAccount.name<release>Service account name.
serviceAccount.annotations{}Service account annotations.
openshift.securityContextConstraints.createautoCreate a SecurityContextConstraints that grants the pod its security context. auto creates it on OpenShift only.
serviceMonitor.enabledfalseCreate a Prometheus Operator ServiceMonitor for /api/v1/metrics.
serviceMonitor.interval30sScrape interval.
serviceMonitor.labels{}Extra ServiceMonitor labels.
podAnnotations{}Extra pod annotations.
podLabels{}Extra pod labels.
extraInitContainers[]Init containers that run before Ella IMS, such as one that sets the SIP address.
extraVolumes[]Extra pod volumes, for extraInitContainers.
nameOverrideOverrides the chart name.
fullnameOverrideOverrides the resource name prefix.
tests.image.repositoryregistry.access.redhat.com/ubi10/ubi-minimalImage of the helm test pod.
tests.image.tag10.2Tag of the helm test image.

Deploy ella-ims with OpenTenant

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