Installing the External Secrets Operator with Yandex Lockbox support
External Secrets Operator is a Kubernetes operator integrating external secret management systems, such as Yandex Lockbox, AWS Secrets Manager, Azure Key Vault, HashiCorp Vault, Google Secrets Manager, and more. The operator reads external APIs and automatically inserts values into a Kubernetes secret.
The External Secrets Operator with Yandex Lockbox support enables you to configure syncing Yandex Lockbox secrets with Managed Service for Kubernetes cluster secrets.
Getting started
-
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the
--folder-name
or--folder-id
parameter. -
Create a service account for the External Secrets Operator.
-
Assign the required role to the service account:
-
Create an authorized key for the service account and save it to the
sa-key.json
file:yc iam key create \ --service-account-name <service_account_name> \ --output sa-key.json
-
Make sure that the security groups for the Managed Service for Kubernetes cluster and its node groups are configured correctly. If any rule is missing, add it.
Warning
The configuration of security groups determines the performance and availability of the cluster and the services and applications running in it.
Installing the External Secrets Operator through Yandex Cloud Marketplace
- Go to the folder page
and select Managed Service for Kubernetes. - Click the name of the Managed Service for Kubernetes cluster you need and select the
Marketplace tab. - Under Application available for installation, select External Secrets Operator with Yandex Lockbox support and click Go to install.
- Configure the application:
- Namespace: Select a namespace or create a new one.
- Application name: Specify the app name.
- Service account key: Paste the contents of
sa-key.json
.
- Click Install.
- Wait for the application to change its status to
Deployed
.
Installation using a Helm chart
-
Install Helm
v3.8.0 or higher. -
Install kubectl
and configure it to work with the created cluster. -
To install a Helm chart
with the External Secrets Operator, run the following command:helm pull oci://cr.yandex/yc-marketplace/yandex-cloud/external-secrets/chart/external-secrets \ --version 0.10.5 \ --untar && \ helm install \ --namespace <namespace> \ --create-namespace \ --set-file auth.json=sa-key.json \ external-secrets ./external-secrets/
This command creates a new namespace required for using the External Secrets Operator.
Note
If you are using a Helm version below 3.8.0, append the
export HELM_EXPERIMENTAL_OCI=1 && \
string to the command to enable Open Container Initiative (OCI) support in the Helm client.