christianlempa-boilerplates/terraform/kubernetes/secret.tf

16 lines
317 B
Terraform
Raw Normal View History

2022-03-16 17:54:10 +01:00
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"
}