Skip to content

Commit

Permalink
feat: add core module for vault
Browse files Browse the repository at this point in the history
  • Loading branch information
ikjeong committed Feb 17, 2025
1 parent 2401274 commit 771f212
Show file tree
Hide file tree
Showing 6 changed files with 1,361 additions and 38 deletions.
2 changes: 1 addition & 1 deletion modules/infra/vault/gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ spec:
- destination:
host: vault-ui.vault.svc.cluster.local
port:
number: 80
number: 8200
14 changes: 9 additions & 5 deletions modules/infra/vault/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ resource "helm_release" "vault" {
chart = "vault"
namespace = "vault"
repository = "https://helm.releases.hashicorp.com"
version = "0.28.1"
version = "0.29.1"
create_namespace = true

values = [
file("${path.module}/values.yaml")
]
values = [templatefile("${path.module}/values.yaml", {
project_id = var.project_id
region = var.region
key_ring_name = var.key_ring_name
crypto_key_name = var.crypto_key_name
})]
}

resource "kubernetes_manifest" "vault_gateway" {
manifest = yamldecode(file("${path.module}/gateway.yaml"))
depends_on = [helm_release.vault]
}
}
Loading

0 comments on commit 771f212

Please # to comment.