redpanda-operator

by phumberdroz

Helm chartv23.2.6App v23.2.6

Redpanda operator helm chart

About this chart

Redpanda Operator

Installation

Prerequisite

To deploy operator with webhooks (enabled by default) please install cert manager. Please follow the installation guide

The cert manager needs around 1 minute to be ready. The helm chart will create Issuer and Certificate custom resource. The webhook of cert-manager will prevent from creating mentioned resources. To verify that cert manager is ready please follow the verifying the installation

The operator by default exposes metrics endpoint. By leveraging prometheus operator ServiceMonitor custom resource metrics can be automatically discovered.

  1. Install Redpanda operator CRDs:
kubectl apply -k 'https://github.com/redpanda-data/redpanda/src/go/k8s/config/crd?ref=v21.3.4'

The CRDs are decoupled from helm chart, so that helm release can be removed without cascading deletion of underling custom resources. Other argument for decoupling is that helm cli can incorrectly patch the Custom Resource Definition.

Helm installation

  1. Install the Redpanda operator:

The example command should be invoked from src/go/k8s/helm-chart/charts

helm install --namespace redpanda-system --create-namespace redpanda-system ./redpanda-operator

Alternative installation with kube-prometheus-stack that includes prometheus operator CRD

helm install --dependency-update \
--namespace redpanda-system \
--set monitoring.enabled=true \
--create-namespace redpanda-operator ./redpanda-operator

Other instruction will be visible after installation.

Values

KeyTypeDefaultDescription
affinityobject{}Allows to specify affinity for Redpanda Operator PODs
config.apiVersionstring"controller-runtime.sigs.k8s.io/v1alpha1"
config.health.healthProbeBindAddressstring":8081"
config.kindstring"ControllerManagerConfig"
config.leaderElection.leaderElectbooltrue
config.leaderElection.resourceNamestring"aa9fc693.vectorized.io"
config.metrics.bindAddressstring"127.0.0.1:8080"
config.webhook.portint9443
configurator.pullPolicystring"IfNotPresent"Define the pullPolicy for Redpanda configurator image
configurator.repositorystring"vectorized/configurator"Repository that Redpanda configurator image is available
configurator.tagstring"{{ .Chart.AppVersion }}"Define the Redpanda configurator container tag
clusterDomainstringcluster.localDefines Kubernetes Cluster Domain
fullnameOverridestring""Override the fully qualified app name
image.pullPolicystring"IfNotPresent"Define the pullPolicy for Redpanda Operator image
image.repositorystring"vectorized/redpanda-operator"Repository that Redpanda Operator image is available
image.tagstring"{{ .Chart.AppVersion }}"Define the Redpanda Operator container tag
imagePullSecretslist[]Redpanda Operator container registry pullSecret (ex: specify docker registry credentials)
labelsstringnilAllows to assign labels to the resources created by this helm chart
logLevelstring"info"Set Redpanda Operator log level (debug, info, error, panic, fatal)
monitoringobject{"enabled":false}Add service monitor to the deployment
nameOverridestring""Override name of app
nodeSelectorobject{}Allows to schedule Redpanda Operator on specific nodes
podAnnotationsobject{}Allows setting additional annotations for Redpanda Operator PODs
podLabelsobject{}Allows setting additional labels for for Redpanda Operator PODs
rbac.createbooltrueSpecifies whether the RBAC resources should be created
replicaCountint1Number of instances of Redpanda Operator
resourcesobject{}Set resources requests/limits for Redpanda Operator PODs
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestringnilThe name of the service account to use. If not set name is generated using the fullname template
tolerationslist[]Allows to schedule Redpanda Operator on tainted nodes
webhook.enabledbooltrue

Deploy redpanda-operator with OpenTenant

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