Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
V

vault-operator

> 云原生
Open source

Run and manage Vault on Kubernetes simply and securely

754 stars0 likes0 views
WebsiteGitHub

About

Run and manage Vault on Kubernetes simply and securely

Vault Operator

Project status: beta

The basic features have been completed, and while no breaking API changes are currently planned, the API can change in a backwards incompatible way before the project is declared stable.

Overview

The Vault operator deploys and manages Vault clusters on Kubernetes. Vault instances created by the Vault operator are highly available and support automatic failover and upgrade.

Getting Started

Prerequisites

  • Kubernetes 1.8+

Configuring RBAC

Consult the RBAC guide on how to configure RBAC for the Vault operator.

Deploying the etcd operator

The Vault operator employs the etcd operator to deploy an etcd cluster as the storage backend.

  1. Create the etcd operator Custom Resource Definitions (CRD):

    bash
    kubectl create -f example/etcd_crds.yaml
  2. Deploy the etcd operator:

    bash
    kubectl -n default create -f example/etcd-operator-deploy.yaml

Deploying the Vault operator

  1. Create the Vault CRD:

    bash
    kubectl create -f example/vault_crd.yaml
  2. Deploy the Vault operator:

    kubectl -n default create -f example/deployment.yaml
  3. Verify that the operators are running:

    $ kubectl -n default get deploy
    NAME             DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
    etcd-operator    1         1         1            1           5m
    vault-operator   1         1         1            1           5m

Deploying a Vault cluster

A Vault cluster can be deployed by creating a VaultService Custom Resource(CR). For each Vault cluster the Vault operator will also create an etcd cluster for the storage backend.

  1. Create a Vault CR that deploys a 2 node Vault cluster in high availablilty mode:

    kubectl -n default create -f example/example_vault.yaml
  2. Wait until the example-... pods for the etcd and Vault cluster are up:

…
  1. Get the Vault pods:

    $ kubectl -n default get pods -l app=vault,vault_cluster=example
    NAME                       READY     STATUS    RESTARTS   AGE
    example-7678c8f49c-kfx2w   1/2       Running   0          2m
    example-7678c8f49c-pqrj8   1/2       Running   0          2m
  2. Check the Vault CR status:

…
The Vault CR status shows the cluster is currently uninitialized and sealed.

Using the Vault cluster

See the Vault usage guide on how to initialize, unseal, and use the deployed Vault cluster.

Consult the monitoring guide on how to monitor and alert on a Vault cluster with Prometheus.

See the recovery guide on how to backup and restore Vault cluster data using the etcd opeartor

For an overview of the default TLS configuration or how to specify custom TLS assets for a Vault cluster see the TLS setup guide.

Uninstalling Vault operator

  1. Delete the Vault custom resource:

    kubectl -n default delete -f example/example_vault.yaml
  2. Delete the operators and other resources:

    kubectl -n default delete deploy vault-operator etcd-operator
    kubectl -n default delete -f example/rbac.yaml

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Gokubernetesoperatoroperatorssecurity

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category云原生
PricingOpen source

> Related tools

K
Kubernetes
容器编排事实标准
H
Helm
Kubernetes 包管理器
S
seaweedfs
SeaweedFS is a distributed storage system for object storage (S3), file systems, and Iceberg tables,