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.