rollout-operator
by Grafana
Grafana rollout-operator
About this chart
Grafana rollout-operator Helm Chart
Helm chart for deploying Grafana rollout-operator to Kubernetes.
rollout-operator
Grafana rollout-operator
Requirements
Kubernetes: ^1.19.0-0
| Repository | Name | Version |
|---|---|---|
| crds | 0.1.0 |
Installation
This section describes various use cases for installation, upgrade and migration from different systems and versions.
Preparation
These are the common tasks to perform before any of the use cases.
# Add the repository
helm repo add grafana https://grafana.github.io/helm-charts
helm repo update
Installation of Grafana Rollout Operator
helm install -n <namespace> <release> grafana/rollout-operator
The Grafana rollout-operator should be installed in the same namespace as the statefulsets it is operating upon. It is not a highly available application and runs as a single pod.
Upgrade of Grafana Rollout Operator <= v0.38.0
v0.38.0 of the rollout-operator introduced a new option for enforcing a "fixed delay" in partition aware PDB evictions.
This requires an updated CRD and an additional role for the rollout-operator to patch pods.
Before upgrading to this version, make sure that the CustomResourceDefinitions (CRDs) shipped with the chart are applied to your cluster.
Additionally, make sure that the updated roles have been assigned.
Upgrade of Grafana Rollout Operator <= v0.32.0
Starting with v0.33.0 of the rollout-operator chart, the rollout-operator webhooks are enabled. See https://github.com/grafana/rollout-operator/#webhooks.
Before upgrading to this version, make sure that the CustomResourceDefinitions (CRDs) shipped with the chart are applied to your cluster.
Manually applying these CRDs is only required if upgrading from a chart <= v0.32.0.
Custom Resource Definitions (CRDs)
Starting with v0.48.0 the rollout-operator CRDs (ReplicaTemplate and NoDownscale) are shipped via a bundled crds subchart at charts/rollout-operator/charts/crds/. They are installed by default on helm install and follow Helm's standard CRD handling (the files in the subchart's crds/ directory are not templated and are skipped on upgrade — see https://helm.sh/docs/chart_best_practices/custom_resource_definitions/).
The operator always requires its CRDs to be present in the cluster, so the chart installs them by default. Set crds.enabled=false only when CRDs are managed out of band — for example a single shared rollout-operator instance owns the CRDs cluster-wide, a GitOps controller / umbrella chart reconciles them, or cluster RBAC prevents the release from creating CRDs. In those cases you are responsible for ensuring the CRDs exist before installing or upgrading this chart; the YAMLs are available under charts/rollout-operator/charts/crds/crds/ for manual application.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| annotations | object | {} | Additional annotations to add to the deployment |
| crds.enabled | bool | true | Install CRDs as part of the chart (via the bundled crds subchart). Set to false only when CRDs are managed out of band — see the comment above for guidance. |
| extraArgs | list | [] | List of additional CLI arguments to configure rollout-operator (example: --log.level=info) |
| extraEnv | list | [] | Environment variables to add to rollout-operator container |
| extraEnvFrom | list | [] | Environment variables from secrets or configmaps to add to rollout-operator container |
| fullnameOverride | string | "" | |
| global.commonLabels | object | {} | Common labels for all object directly managed by this chart. |
| hostAliases | list | [] | hostAliases to add |
| hostNetwork | bool | false | Enable or disable the use of host networking for the pod. When true, the pod will use the node's network namespace |
| image.pullPolicy | string | "IfNotPresent" | |
| image.registry | string | "docker.io" | |
| image.repository | string | "grafana/rollout-operator" | |
| image.tag | string | "" | Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | [] | |
| minReadySeconds | int | 10 | |
| nameOverride | string | "" | |
| namespaceSelector | object | {"matchExpressions":[]} | Namespace selector applied to all webhooks. Defaults to restricting to the release namespace. See https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/#matching-requests-namespaceselector |
| nodeSelector | object | {} | |
| podAnnotations | object | {} | Pod Annotations |
| podLabels | object | {} | Pod (extra) Labels |
| podSecurityContext | object | {"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}} | Pod-level security context. Meets the Pod Security Standards restricted profile. runAsUser is deliberately left unset: the image is distroless :nonroot and already runs as uid 65532, so pinning a uid here would only break overrides. To remove a default, set that key to null. An empty map ({}) keeps all defaults. |
| priorityClassName | string | "" | |
| resources.limits.memory | string | "200Mi" | |
| resources.requests.cpu | string | "100m" | |
| resources.requests.memory | string | "100Mi" | |
| revisionHistoryLimit | int | 10 | Number of old ReplicaSets to retain |
| securityContext | object | {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"seccompProfile":{"type":"RuntimeDefault"}} | Container-level security context. Meets the Pod Security Standards restricted profile and also sets readOnlyRootFilesystem. rollout-operator is a static Go binary that writes nothing to disk -- its self-signed webhook certificate is held in memory and persisted to a Kubernetes Secret -- so a read-only root filesystem needs no writable volumes. To remove a default, set that key to null. An empty map ({}) keeps all defaults. |
| serviceAccount.annotations | object | {} | Annotations to add to the service account |
| serviceAccount.create | bool | true | Specifies whether a 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 |
| serviceMonitor.annotations | object | {} | ServiceMonitor annotations |
| serviceMonitor.enabled | bool | false | Create ServiceMonitor to scrape metrics for Prometheus |
| serviceMonitor.interval | string | nil | ServiceMonitor scrape interval |
| serviceMonitor.labels | object | {} | Additional ServiceMonitor labels |
| serviceMonitor.namespace | string | nil | Alternative namespace for ServiceMonitor resources |
| serviceMonitor.namespaceSelector | object | {} | Namespace selector for ServiceMonitor resources |
| serviceMonitor.relabelings | list | [] | ServiceMonitor relabel configs to apply to samples before scraping https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#relabelconfig |
| serviceMonitor.scrapeTimeout | string | nil | ServiceMonitor scrape timeout in Go duration format (e.g. 15s) |
| tolerations | list | [] | |
| webhooks.enabled | bool | true | Enable the rollout-operator webhooks. See https://github.com/grafana/rollout-operator/#webhooks. Note that the webhooks require custom resource definitions. If upgrading, manually apply the files in the crds directory. |
| webhooks.failurePolicy | string | "Fail" | Validating and mutating webhook failure policy. Ignore or Fail. |
| webhooks.objectSelector | object | {} | objectSelector to filter which objects the webhooks apply to. |
| webhooks.selfSignedCertSecretName | string | "certificate" | Secret resource name for the TLS certificate to be used with the webhooks |
| webhooks.timeoutSeconds | int | 10 | Timeout in seconds for the prepare-downscale mutating webhook. Must be between 1 and 30. |
Deploy rollout-operator with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has rollout-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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartrollout-operator is pinned at v0.56.0 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