osm-edge
A Helm chart to install the osm-edge control plane on Kubernetes
About this chart
Open Service Mesh Edge Helm Chart
A Helm chart to install the osm-edge control plane on Kubernetes.
Prerequisites
- Kubernetes >= 1.19.0-0
Get Repo Info
helm repo add osm https://flomesh-io.github.io/osm-edge
helm repo update
Install Chart
helm install [RELEASE_NAME] osm/osm
The command deploys osm-controller on the Kubernetes cluster in the default configuration.
See configuration below.
See helm install for command documentation.
Uninstall Chart
helm uninstall [RELEASE_NAME]
This removes all the Kubernetes components associated with the chart and deletes the release.
See helm uninstall for command documentation.
Upgrading Chart
helm upgrade [RELEASE_NAME] [CHART] --install
See helm upgrade for command documentation.
Configuration
See Customizing the Chart Before Installing. To see all configurable options with detailed comments, visit the chart's values.yaml, or run these configuration commands:
helm show values osm/osm
The following table lists the configurable parameters of the osm chart and their default values.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| contour.contour | object | {"image":{"registry":"ghcr.io","repository":"projectcontour/contour","tag":"v1.21.1"}} | Contour controller configuration |
| contour.enabled | bool | false | Enables deployment of Contour control plane and gateway |
| contour.envoy | object | {"image":{"registry":"docker.io","repository":"envoyproxy/envoy-distroless","tag":"v1.22.2"}} | Contour envoy edge proxy configuration |
| fsm.enabled | bool | false | Enables deployment of fsm control plane and gateway |
| osm.caBundleSecretName | string | "osm-ca-bundle" | The Kubernetes secret name to store CA bundle for the root CA used in OSM |
| osm.certificateProvider.certKeyBitSize | int | 2048 | Certificate key bit size for data plane certificates issued to workloads to communicate over mTLS |
| osm.certificateProvider.kind | string | "tresor" | The Certificate manager type: tresor, vault or cert-manager |
| osm.certificateProvider.serviceCertValidityDuration | string | "24h" | Service certificate validity duration for certificate issued to workloads to communicate over mTLS |
| osm.certmanager.issuerGroup | string | "cert-manager.io" | cert-manager issuer group |
| osm.certmanager.issuerKind | string | "Issuer" | cert-manager issuer kind |
| osm.certmanager.issuerName | string | "osm-ca" | cert-manager issuer namecert-manager issuer name |
| osm.cleanup.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].key | string | "kubernetes.io/os" | |
| osm.cleanup.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].operator | string | "In" | |
| osm.cleanup.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[0] | string | "linux" | |
| osm.cleanup.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[1].key | string | "kubernetes.io/arch" | |
| osm.cleanup.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[1].operator | string | "In" | |
| osm.cleanup.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[1].values[0] | string | "amd64" | |
| osm.cleanup.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[1].values[1] | string | "arm64" | |
| osm.cleanup.nodeSelector | object | {} | |
| osm.cleanup.tolerations | list | [] | Node tolerations applied to control plane pods. The specified tolerations allow pods to schedule onto nodes with matching taints. |
| osm.configResyncInterval | string | "0s" | Sets the resync interval for regular proxy broadcast updates, set to 0s to not enforce any resync |
| osm.controlPlaneTolerations | list | [] | Node tolerations applied to control plane pods. The specified tolerations allow pods to schedule onto nodes with matching taints. |
| osm.controllerLogLevel | string | "info" | Controller log verbosity |
| osm.curlImage | string | "quay.io/flomesh/curl-ubi8:7.84.0" | Curl image for control plane init container |
| osm.deployJaeger | bool | false | Deploy Jaeger during OSM installation |
| osm.deployPrometheus | bool | false | Deploy Prometheus with OSM installation |
| osm.enableDebugServer | bool | false | Enable the debug HTTP server on OSM controller |
| osm.enableEgress | bool | true | Enable egress in the mesh |
| osm.enablePermissiveTrafficPolicy | bool | true | Enable permissive traffic policy mode |
| osm.enablePrivilegedInitContainer | bool | false | Run init container in privileged mode |
| osm.enableReconciler | bool | false | Enable reconciler for OSM's CRDs and mutating webhook |
| osm.enforceSingleMesh | bool | true | Enforce only deploying one mesh in the cluster |
| osm.featureFlags.enableAccessCertPolicy | bool | false | |
| osm.featureFlags.enableAccessControlPolicy | bool | false | Enables OSM's AccessControl policy API. When enabled, OSM will use the AccessControl API allow access control traffic to mesh backends |
| osm.featureFlags.enableAsyncProxyServiceMapping | bool | false | Enable async proxy-service mapping |
| osm.featureFlags.enableEgressPolicy | bool | true | Enable OSM's Egress policy API. When enabled, fine grained control over Egress (external) traffic is enforced |
| osm.featureFlags.enableIngressBackendPolicy | bool | true | Enables OSM's IngressBackend policy API. When enabled, OSM will use the IngressBackend API allow ingress traffic to mesh backends |
| osm.featureFlags.enableMeshRootCertificate | bool | false | Enable the MeshRootCertificate to configure the OSM certificate provider |
| osm.featureFlags.enableRetryPolicy | bool | false | Enable Retry Policy for automatic request retries |
| osm.featureFlags.enableSidecarActiveHealthChecks | bool | false | Enable Sidecar active health checks |
| osm.featureFlags.enableSnapshotCacheMode | bool | false | Enables SnapshotCache feature for Sidecar xDS server. |
| osm.featureFlags.enableWASMStats | bool | false | Enable extra Envoy statistics generated by a custom WASM extension |
| osm.image.digest | object | {"osmBootstrap":"","osmCRDs":"","osmController":"","osmHealthcheck":"","osmInjector":"","osmPreinstall":"","osmSidecarInit":""} | Image digest (defaults to latest compatible tag) |
| osm.image.digest.osmBootstrap | string | "" | osm-boostrap's image digest |
| osm.image.digest.osmCRDs | string | "" | osm-crds' image digest |
| osm.image.digest.osmController | string | "" | osm-controller's image digest |
| osm.image.digest.osmHealthcheck | string | "" | osm-healthcheck's image digest |
| osm.image.digest.osmInjector | string | "" | osm-injector's image digest |
| osm.image.digest.osmPreinstall | string | "" | osm-preinstall's image digest |
| osm.image.digest.osmSidecarInit | string | "" | Sidecar init container's image digest |
| osm.image.name | object | {"osmBootstrap":"osm-edge-bootstrap-ubi8","osmCRDs":"osm-edge-crds-ubi8","osmController":"osm-edge-controller-ubi8","osmHealthcheck":"osm-edge-healthcheck-ubi8","osmInjector":"osm-edge-injector-ubi8","osmPreinstall":"osm-edge-preinstall-ubi8","osmSidecarInit":"osm-edge-sidecar-init-ubi8"} | Image name defaults |
| osm.image.name.osmBootstrap | string | "osm-edge-bootstrap-ubi8" | osm-boostrap's image name |
| osm.image.name.osmCRDs | string | "osm-edge-crds-ubi8" | osm-crds' image name |
| osm.image.name.osmController | string | "osm-edge-controller-ubi8" | osm-controller's image name |
| osm.image.name.osmHealthcheck | string | "osm-edge-healthcheck-ubi8" | osm-healthcheck's image name |
| osm.image.name.osmInjector | string | "osm-edge-injector-ubi8" | osm-injector's image name |
| osm.image.name.osmPreinstall | string | "osm-edge-preinstall-ubi8" | osm-preinstall's image name |
| osm.image.name.osmSidecarInit | string | "osm-edge-sidecar-init-ubi8" | Sidecar init container's image name |
| osm.image.pullPolicy | string | "IfNotPresent" | Container image pull policy for control plane containers |
| osm.image.registry | string | "quay.io/flomesh" | Container image registry for control plane images |
| osm.image.tag | string | "1.2.1" | Container image tag for control plane images |
| osm.imagePullSecrets | list | [] | osm-controller image pull secret |
| osm.inboundPortExclusionList | list | [] | Specifies a global list of ports to exclude from inbound traffic interception by the sidecar proxy. If specified, must be a list of positive integers. |
| osm.injector.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].key | string | "kubernetes.io/os" | |
| osm.injector.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].operator | string | "In" | |
| osm.injector.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[0] | string | "linux" | |
| osm.injector.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[1].key | string | "kubernetes.io/arch" | |
| osm.injector.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[1].operator | string | "In" | |
| osm.injector.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[1].values[0] | string | "amd64" | |
| osm.injector.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[1].values[1] | string | "arm64" | |
| osm.injector.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.labelSelector.matchExpressions[0].key | string | "app" | |
| osm.injector.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.labelSelector.matchExpressions[0].operator | string | "In" | |
| osm.injector.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.labelSelector.matchExpressions[0].values[0] | string | "osm-injector" | |
| osm.injector.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.topologyKey | string | "kubernetes.io/hostname" | |
| osm.injector.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].weight | int | 100 | |
| osm.injector.autoScale | object | {"cpu":{"targetAverageUtilization":80},"enable":false,"maxReplicas":5,"memory":{"targetAverageUtilization":80},"minReplicas":1} | Auto scale configuration |
| osm.injector.autoScale.cpu.targetAverageUtilization | int | 80 | Average target CPU utilization (%) |
| osm.injector.autoScale.enable | bool | false | Enable Autoscale |
| osm.injector.autoScale.maxReplicas | int | 5 | Maximum replicas for autoscale |
| osm.injector.autoScale.memory.targetAverageUtilization | int | 80 | Average target memory utilization (%) |
| osm.injector.autoScale.minReplicas | int | 1 | Minimum replicas for autoscale |
| osm.injector.enablePodDisruptionBudget | bool | false | Enable Pod Disruption Budget |
| osm.injector.nodeSelector | object | {} | |
| osm.injector.podLabels | object | {} | Sidecar injector's pod labels |
| osm.injector.replicaCount | int | 1 | Sidecar injector's replica count (ignored when autoscale.enable is true) |
| osm.injector.resource | object | {"limits":{"cpu":"0.5","memory":"64M"},"requests":{"cpu":"0.3","memory":"64M"}} | Sidecar injector's container resource parameters |
| osm.injector.tolerations | list | [] | Node tolerations applied to control plane pods. The specified tolerations allow pods to schedule onto nodes with matching taints. |
| osm.injector.webhookTimeoutSeconds | int | 20 | Mutating webhook timeout |
| osm.localProxyMode | string | "Localhost" | Proxy mode for the proxy sidecar. Acceptable values are ['Localhost', 'PodIP'] |
| osm.maxDataPlaneConnections | int | 0 | Sets the max data plane connections allowed for an instance of osm-controller, set to 0 to not enforce limits |
| osm.meshName | string | "osm" | Identifier for the instance of a service mesh within a cluster |
| osm.networkInterfaceExclusionList | list | [] | Specifies a global list of network interface names to exclude for inbound and outbound traffic interception by the sidecar proxy. |
| osm.osmBootstrap.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].key | string | "kubernetes.io/os" | |
| osm.osmBootstrap.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].operator | string | "In" | |
| osm.osmBootstrap.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[0] | string | "linux" | |
| osm.osmBootstrap.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDurin |
Deploy osm-edge with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has osm-edge 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 chartosm-edge is pinned at v1.2.1-ubi8 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