mogenius-operator

by mogenius

Helm chartv2.35.0App 2.35.0Verified publisher

mogenius-operator

About this chart

Helm Chart: mogenius-operator

Homepage: https://mogenius.com

Maintainers

NameEmailUrl
the mogenius tech team[email protected]

Source Code

Values

KeyTypeDefaultDescription
affinityobject{}
clusterobject{"domain":"cluster.local"}settings for the internal cluster communication
cluster.domainstring"cluster.local"the cluster domain, default for kubernetes is "cluster.local"
containerSecurityContext.capabilities.drop[0]string"ALL"
containerSecurityContext.privilegedboolfalse
containerSecurityContext.readOnlyRootFilesystembooltrue
envVarsobject{"MO_API_SERVER":"wss://k8s-ws.mogenius.com/ws","MO_EVENT_SERVER":"wss://k8s-dispatcher.mogenius.com/ws"}environment variables to be set in the mogenius-operator deployment
externalKeyValueStoreobject{"enabled":false,"existingSecret":{"key":"valkey-password","name":""},"host":"","port":6379,"tls":{"caCertSecret":{"key":"ca.crt","name":""},"clientCertSecret":{"certKey":"tls.crt","keyKey":"tls.key","name":""},"enabled":false,"insecureSkipVerify":false},"username":""}When enabled, set valkey.enabled to false.
externalKeyValueStore.enabledboolfalseenable using an external key-value store (mutually exclusive with valkey.enabled)
externalKeyValueStore.existingSecretobject{"key":"valkey-password","name":""}reference to an existing secret holding the password. Leave name empty if the store requires no auth.
externalKeyValueStore.existingSecret.keystring"valkey-password"key within the existing secret that holds the password
externalKeyValueStore.existingSecret.namestring""name of the existing secret holding the password
externalKeyValueStore.hoststring""hostname of the external key-value store (e.g. "my-redis.example.com")
externalKeyValueStore.portint6379port of the external key-value store (default: the standard Redis/Valkey port)
externalKeyValueStore.tlsobject{"caCertSecret":{"key":"ca.crt","name":""},"clientCertSecret":{"certKey":"tls.crt","keyKey":"tls.key","name":""},"enabled":false,"insecureSkipVerify":false}TLS settings for the connection to the external key-value store
externalKeyValueStore.tls.caCertSecretobject{"key":"ca.crt","name":""}Leave name empty to use the system trust store (e.g. for publicly-trusted managed services).
externalKeyValueStore.tls.caCertSecret.keystring"ca.crt"key within the existing secret that holds the CA certificate
externalKeyValueStore.tls.caCertSecret.namestring""name of the existing secret holding the CA certificate
externalKeyValueStore.tls.clientCertSecretobject{"certKey":"tls.crt","keyKey":"tls.key","name":""}Leave name empty to not present a client certificate.
externalKeyValueStore.tls.clientCertSecret.certKeystring"tls.crt"key within the existing secret that holds the client certificate (PEM)
externalKeyValueStore.tls.clientCertSecret.keyKeystring"tls.key"key within the existing secret that holds the client private key (PEM)
externalKeyValueStore.tls.clientCertSecret.namestring""name of the existing secret holding the client certificate and key
externalKeyValueStore.tls.enabledboolfalseenable TLS for the connection
externalKeyValueStore.tls.insecureSkipVerifyboolfalseskip TLS certificate verification (insecure; only for self-signed certs in trusted networks)
externalKeyValueStore.usernamestring""optional ACL username for the external key-value store (leave empty for the default user)
featuresobject{"autoUpgrade":{"enabled":true},"debugTools":{"enabled":false,"image":{"pullPolicy":"IfNotPresent","registry":"docker.io","repository":"nicolaka/netshoot","tag":"v0.16"}},"nodeMetricsDashboard":{"enabled":false,"httproute":{"annotations":{},"enabled":false,"hostnames":[],"labels":{},"parentRefs":[]},"ingress":{"annotations":{},"enabled":false,"host":null,"ingressClassName":null,"labels":{},"tls":[]}}}feature toggles for the mogenius-operator
features.debugTools.enabledboolfalseenable the debug tools container in the mogenius-operator pod
features.nodeMetricsDashboardobject{"enabled":false,"httproute":{"annotations":{},"enabled":false,"hostnames":[],"labels":{},"parentRefs":[]},"ingress":{"annotations":{},"enabled":false,"host":null,"ingressClassName":null,"labels":{},"tls":[]}}configure the integrated node metrics dashboard
features.nodeMetricsDashboard.enabledboolfalseenable the node metrics dashboard
features.nodeMetricsDashboard.httprouteobject{"annotations":{},"enabled":false,"hostnames":[],"labels":{},"parentRefs":[]}HTTPRoute settings for the node metrics dashboard
features.nodeMetricsDashboard.httproute.hostnameslist[]hostnames to place on the HTTPRoute
features.nodeMetricsDashboard.httproute.labelsobject{}labels to place on the HTTPRoute
features.nodeMetricsDashboard.httproute.parentRefslist[]parentRefs to place on the HTTPRoute
features.nodeMetricsDashboard.ingressobject{"annotations":{},"enabled":false,"host":null,"ingressClassName":null,"labels":{},"tls":[]}ingress settings for the node metrics dashboard
fullnameOverridestring"mogenius-operator"
global.apiKeySecretobject{"secretKey":"API_KEY","secretName":"mogenius-operator-api-secret"}secret reference for the api-key (will be used if global.api_key is not set)
global.api_keystringnilthe api key provided for your cluster by the mogenius platform (alternativly you can leave this empty and use global.apiKeySecret)
global.cluster_namestringnilthe name you gave your cluster on the mogenius platform
goRuntimeobject{"gcPercent":"","memLimit":""}Go runtime memory tuning. Both values are unset by default and should stay that way: the operator derives GOMEMLIMIT from the pod's memory limit at startup (90%, leaving headroom for non-heap memory), which is the only value that is actually correct for a given deployment. Set resources.limits.memory rather than pinning a number here. A hardcoded GOMEMLIMIT is actively dangerous. It is a soft limit: once the live heap exceeds it the Go GC does not fail or free anything, it simply runs continuously trying to reach a target it can never reach. The symptom is the operator burning multiple CPU cores at a flat heap with no log output. The previous default of 180MiB put clusters with ~200 resource kinds right on that cliff.
goRuntime.gcPercentstring""GC target percentage (GOGC), e.g. "50" to trade CPU for memory. Empty uses the Go default of 100.
goRuntime.memLimitstring""Soft memory limit for the Go runtime (GOMEMLIMIT), e.g. "1GiB". Empty derives it from the pod memory limit. Must exceed the live heap.
imageobject{"pullPolicy":"IfNotPresent","registry":"ghcr.io","repository":"mogenius/mogenius-operator","tag":null}image settings for the mogenius-operator and nodemetrics container
image.tagstringniltag of the image, if not set, the chart appVersion is used
metrics.enabledboolfalseenable the Prometheus /metrics endpoint scraping (creates a Service for the ServiceMonitor)
metrics.serviceMonitorobject{"enabled":false,"interval":"30s","labels":{},"relabelings":[],"scrapeTimeout":"10s"}ServiceMonitor for prometheus-operator; requires metrics.enabled: true
metrics.serviceMonitor.labelsobject{}labels added to the ServiceMonitor (use to match your Prometheus selector)
metrics.serviceMonitor.relabelingslist[]additional relabelings appended after the default instance relabeling
nodeMetrics.affinityobject{}
nodeMetrics.containerSecurityContext.capabilities.add[0]string"NET_ADMIN"
nodeMetrics.containerSecurityContext.capabilities.add[1]string"SYS_ADMIN"
nodeMetrics.containerSecurityContext.capabilities.add[2]string"BPF"
nodeMetrics.containerSecurityContext.capabilities.add[3]string"SYS_PTRACE"
nodeMetrics.containerSecurityContext.readOnlyRootFilesystembooltrue
nodeMetrics.enabledbooltrueenable the node metrics daemonset
nodeMetrics.nodeSelectorobject{}
nodeMetrics.podLabelsobject{}
nodeMetrics.podSecurityContextobject{}
nodeMetrics.resourcesobject{}
nodeMetrics.tolerations[0].effectstring"NoSchedule"
nodeMetrics.tolerations[0].keystring"node-role.kubernetes.io/control-plane"
nodeMetrics.tolerations[0].operatorstring"Exists"
nodeSelectorobject{}
podLabelsobject{}extra labels to be added to the pod
podSecurityContextobject{}
probes.enabledbooltrue
probes.livenessProbe.enabledbooltrue
probes.livenessProbe.pathstring"/healthz"
probes.readinessProbe.enabledbooltrue
probes.readinessProbe.pathstring"/healthz"
probes.startupProbe.enabledbooltrue
probes.startupProbe.pathstring"/healthz"
rbacobject{"create":true,"rules":[]}permissions granted to the operator's ServiceAccount. The operator manages a cluster end to end, so the defaults are admin-equivalent. Both settings below let you cut that down; doing so is unsupported (see the chart README).
rbac.createbooltruecreate the operator's ClusterRole and ClusterRoleBinding. Set to false to grant the ServiceAccount permissions yourself, out of band.
rbac.ruleslist[]replace the default blanket rule with your own ClusterRole rules. Whatever you leave out, the operator will hit as a Forbidden error at runtime.
resourcesobject{}
revisionHistoryLimitint10
serviceAccount.namestringnilname of the ServiceAccount used by the operator (default: mogenius-operator-service-account-app)
tolerationslist[]
valkey.affinityobject{}
valkey.auth.passwordstring""
valkey.containerSecurityContext.allowPrivilegeEscalationboolfalse
valkey.containerSecurityContext.capabilities.drop[0]string"ALL"
valkey.containerSecurityContext.readOnlyRootFilesystembooltrue
valkey.containerSecurityContext.runAsGroupint999
valkey.containerSecurityContext.runAsNonRootbooltrue
valkey.containerSecurityContext.runAsUserint999
valkey.customValkeyConfstring""optional additional Valkey configuration appended verbatim (e.g. "maxmemory 256mb\nmaxmemory-policy allkeys-lru")
valkey.enabledbooltruedeploy the bundled Valkey instance. Set to false to use an external key-value store (see externalKeyValueStore)
valkey.image.registrystring"docker.io"
valkey.image.repositorystring"valkey/valkey"
valkey.image.tagstring"9.1.1"
valkey.imagePullPolicystring"IfNotPresent"
valkey.metrics.enabledboolfalseenable the Prometheus metrics exporter sidecar (oliver006/redis_exporter)
valkey.metrics.exporter.containerSecurityContext.allowPrivilegeEscalationboolfalse
valkey.metrics.exporter.containerSecurityContext.capabilities.drop[0]string"ALL"
valkey.metrics.exporter.containerSecurityContext.readOnlyRootFilesystembooltrue
valkey.metrics.exporter.containerSecurityContext.runAsNonRootbooltrue
valkey.metrics.exporter.image.registrystring"docker.io"
valkey.metrics.exporter.image.repositorystring"oliver006/redis_exporter"
valkey.metrics.exporter.image.tagstring"v1.88.0"
valkey.metrics.exporter.resourcesobject{}
valkey.metrics.serviceMonitorobject{"enabled":false,"interval":"30s","labels":{},"relabelings":[],"scrapeTimeout":"10s"}ServiceMonitor for prometheus-operator; requires metrics.enabled: true
valkey.metrics.serviceMonitor.labelsobject{}labels added to the ServiceMonitor (use to match your Prometheus selector)
valkey.metrics.serviceMonitor.relabelingslist[]additional relabelings appended after the default instance relabeling
valkey.nodeSelectorobject{}
valkey.persistence.accessModes[0]string"ReadWriteOnce"
valkey.persistence.sizestring"5Gi"
valkey.persistence.storageClassstring""storage class to be used, default is empty which will use the class defined as standard
valkey.podLabelsobject{}
valkey.podSecurityContext.fsGroupint999
valkey.podSecurityContext.runAsGroupint999
valkey.podSecurityContext.runAsUserint999
valkey.podSecurityContext.seccompProfile.typestring"RuntimeDefault"
valkey.portint6379
valkey.resourcesobject{}
valkey.tolerationslist[]
valkey.updateStrategy.typestring"Recreate"

Add Mogenius Helm Repository, Update, and Deploy the Helm Chart

Add the Helm Repository:

To add the Mogenius Helm repository and update it, run the following commands:

helm repo add mogenius https://github.com/mogenius/mogenius-operator
helm repo update m

Deploy mogenius-operator with OpenTenant

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