Skip to content

Instantly share code, notes, and snippets.

@YurgenUA
Created January 17, 2024 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YurgenUA/fd9f54232b38769d096e77def3527a26 to your computer and use it in GitHub Desktop.
Save YurgenUA/fd9f54232b38769d096e77def3527a26 to your computer and use it in GitHub Desktop.
data "vault_generic_secret" "top_secret" {
path = "secret/webapp/config"
}
resource "kubernetes_secret" "top_secret" {
metadata {
name = "top-secret-ks"
namespace = kubernetes_namespace.playground.id
}
data = data.vault_generic_secret.top_secret.data
type = "Opaque"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment