Menu

1 / 2

vault project

DEV Community·Omar Ahmed·7 months ago
#ZPemW2Ha
#devops#devsecops#vault#kubernetes#enter
Reading 0:00
15s threshold

This project deploys HashiCorp Vault on Kubernetes using Helm in a production-like setup.

It includes:

Vault Helm chart

Vault HA mode

Raft integrated storage

Vault Agent Injector

Kubernetes auth method

KV secrets engine

Example app consuming Vault secrets

1. Project Structure

Create the project directory:

mkdir vault-k8s-helm-project cd vault-k8s-helm-project

mkdir -p helm/vault mkdir -p k8s/app mkdir -p scripts

Enter fullscreen mode

Exit fullscreen mode

Final structure:

vault-k8s-helm-project/ ├── helm/ │ └── vault/ │ └── values.yaml ├── k8s/ │ └── app/ │ ├── namespace.yaml │ ├── service-account.yaml │ └── deployment.yaml └── scripts/ ├── 01-install-vault.sh ├── 02-init-vault.sh ├── 03-unseal-vault.sh ├── 04-enable-k8s-auth.sh ├── 05-create-policy-and-role.sh ├── 06-create-secret.sh ├── 07-deploy-app.sh ├── 08-backup-raft.sh └── 09-restore-raft.sh

Enter fullscreen mode

Exit fullscreen mode

2.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.