Install with Helm¶
The Aiven Operator for Kubernetes® can be installed with Helm. Before you start, make sure you have the prerequisites.
1. Add the Aiven Helm chart repository and update yoru local Helm information by running:
2. Install Custom Resource Definitions (CRDs) by running:
3. To verify the installation, run:
The output is similar to the following:
NAME SHORTNAMES APIVERSION NAMESPACED KIND
connectionpools aiven.io/v1alpha1 true ConnectionPool
databases aiven.io/v1alpha1 true Database
...
4. To install the Aiven Operator, run:
Note
Installation will fail if webhooks are enabled and the CRDs for the cert-manager are not installed. Alternatively, you can install without webhooks enabled by running:
5. To verify the installation, run:
The output is similar to the following:
NAME: aiven-operator
LAST DEPLOYED: Fri Sep 10 15:23:26 2021
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
6. To verify the operator pod is running, run:
Install without full cluster administrator access¶
If you don't have the necessary permissions to create cluster-wide resources such as ClusterRole and ClusterRoleBinding when installing the Helm chart,
a cluster administrator can manually install these roles.
This ensures that the operator can function properly.
Configuration options¶
Refer to the values.yaml file of the chart.
Restrict operator access to specific namespaces¶
You can configure the operator to monitor resources within specific namespaces.
If the ClusterRole is enabled, it's bound to the operator's ServiceAccount within each watched namespace using a RoleBinding.
This setup grants the operator the permissions specified in the ClusterRole, but only within the context of the specific namespaces where the RoleBinding is created.
Tune the reconcile interval¶
Once a resource is ready, the operator re-reconciles most kinds against the Aiven API on a fixed interval to pick up changes made outside Kubernetes. The default is 10 minutes. See which resources this affects below — the service kinds are not among them.
Set the pollInterval value to change it:
The accepted range is 10m to 60m. A value outside it is rejected at startup.
Which resources this affects¶
It does not apply to the service kinds — Clickhouse, Flink, Grafana, Kafka,
KafkaConnect, MySQL, OpenSearch, PostgreSQL and Valkey. Those do not re-reconcile on a
fixed interval at all at the moment.