managed-serviceaccount

by open-cluster-management

Helm chartv0.12.0App 1.0.0Verified publisher

A Helm chart for Managed ServiceAccount Addon

About this chart

Managed ServiceAccount Helm Chart

This chart installs the Managed ServiceAccount addon for Open Cluster Management (OCM). It can deploy the hub-side addon manager, publish an AddOnTemplate for addon-manager-driven installs, and optionally render a ManagedClusterAddOn for a specific managed cluster.

Prerequisites

  • Kubernetes cluster with Open Cluster Management installed
  • Helm 3.x
  • The ManagedServiceAccount CRD installed by this chart, or installable by Helm
  • The Prometheus Operator ServiceMonitor CRD when prometheus.enabled=true

Installation

helm install managed-serviceaccount ./charts/managed-serviceaccount \
  --namespace open-cluster-management-addon \
  --create-namespace

By default, the chart installs the hub manager in Deployment mode and configures the ClusterManagementAddOn to install the addon on all managed clusters through the global placement.

For placement-managed installs in Deployment mode, agents use the addon-framework default namespace open-cluster-management-agent-addon unless an AddOnDeploymentConfig override selects another namespace.

Values

ParameterDescriptionDefault
imageFull image repository for the manager and default agent imagequay.io/open-cluster-management/managed-serviceaccount
tagImage tag. Empty defaults to v<chart version>""
replicasHub manager replicas, and agent replicas in AddOnTemplate mode1
agentInstallAllCreate a global placement install strategytrue
targetClusterRender a ManagedClusterAddOn directly for this cluster""
hubDeployModeHub deployment mode: Deployment or AddOnTemplateDeployment
addOnTemplateNameName of the rendered AddOnTemplatemanaged-serviceaccount
featureGates.ephemeralIdentityEnable EphemeralIdentity behaviorfalse
featureGates.clusterProfileEnable ClusterProfile credential syncfalse
agentImagePullSecretHub namespace dockerconfigjson secret copied for agent pulls""
prometheus.enabledRender ServiceMonitor resourcesfalse
prometheus.serviceMonitor.labelsLabels added to rendered ServiceMonitor resources{}

Deployment Modes

Hub Manager Deployment

hubDeployMode=Deployment installs the hub addon manager. The manager renders the embedded agent chart for each managed cluster through addon-framework.

helm install managed-serviceaccount ./charts/managed-serviceaccount \
  --namespace open-cluster-management-addon \
  --create-namespace \
  --set tag=latest

To render a ManagedClusterAddOn for a specific cluster in the same install, set targetCluster:

helm install managed-serviceaccount ./charts/managed-serviceaccount \
  --namespace open-cluster-management-addon \
  --create-namespace \
  --set targetCluster=loopback

AddOnTemplate

hubDeployMode=AddOnTemplate renders an AddOnTemplate and the hub RBAC needed by addon-manager. When featureGates.clusterProfile=true, the chart also renders the hub manager so ClusterProfile credential sync can run.

helm install managed-serviceaccount ./charts/managed-serviceaccount \
  --namespace open-cluster-management-addon \
  --create-namespace \
  --set hubDeployMode=AddOnTemplate

To render a ManagedClusterAddOn for a specific cluster in the same install, set targetCluster:

helm install managed-serviceaccount ./charts/managed-serviceaccount \
  --namespace open-cluster-management-addon \
  --create-namespace \
  --set hubDeployMode=AddOnTemplate \
  --set targetCluster=loopback

In AddOnTemplate mode, the chart does not render an AddOnDeploymentConfig for targetCluster and does not add spec.configs to the rendered ManagedClusterAddOn.

Prometheus

Set prometheus.enabled=true to render ServiceMonitor resources. In Deployment mode this covers the hub manager. Agent metrics in manager-driven installs can also be enabled through AddOnDeploymentConfig customized variables. In AddOnTemplate mode the rendered template includes the agent ServiceMonitor.

helm install managed-serviceaccount ./charts/managed-serviceaccount \
  --namespace open-cluster-management-addon \
  --create-namespace \
  --set prometheus.enabled=true \
  --set prometheus.serviceMonitor.labels.release=prometheus

Image Overrides

Use image and tag to override the default chart image:

helm install managed-serviceaccount ./charts/managed-serviceaccount \
  --namespace open-cluster-management-addon \
  --create-namespace \
  --set image=quay.io/example/managed-serviceaccount \
  --set tag=v1.2.3

If the agent image needs pull credentials, create a kubernetes.io/dockerconfigjson secret in the release namespace and pass its name with agentImagePullSecret.

helm install managed-serviceaccount ./charts/managed-serviceaccount \
  --namespace open-cluster-management-addon \
  --create-namespace \
  --set agentImagePullSecret=managed-serviceaccount-pull-secret

Uninstallation

helm uninstall managed-serviceaccount --namespace open-cluster-management-addon

Deploy managed-serviceaccount with OpenTenant

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