christianlempa-boilerplates/terraform/kubernetes/secret.tf
2022-03-17 13:09:48 +01:00

15 lines
316 B
HCL

resource "kubernetes_secret" "cloudflare_api_key_secret" {
depends_on = [kubernetes_namespace.your-namespace-object]
metadata {
name = "cloudflare-api-key-secret"
namespace = "your-namespace"
}
data = {
api-key = var.your-api-key-variable
}
type = "Opaque"
}