Difference between revisions of "Terraform resource: kubernetes secret"
Jump to navigation
Jump to search
(Created page with "{{lc}} kubernetes_service_account") |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | * https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/secret | |
+ | resource "kubernetes_secret" "example" { | ||
+ | metadata { | ||
+ | name = "youur-basic-auth-name" | ||
+ | } | ||
+ | |||
+ | data = { | ||
+ | username = "admin" | ||
+ | password = "P4ssw0rd" | ||
+ | } | ||
+ | |||
+ | type = "[[kubernetes.io/basic-auth]]" | ||
+ | } | ||
− | [[kubernetes_service_account]] | + | resource "kubernetes_secret" "example" { |
+ | metadata { | ||
+ | name = "terraform-example" | ||
+ | } | ||
+ | } | ||
+ | |||
+ | |||
+ | * [[Kubernetes secrets]] | ||
+ | [[Terraform resource: kubernetes_service_account]] | ||
+ | |||
+ | == See also == | ||
+ | * {{tf k8s}} |
Latest revision as of 16:05, 24 October 2023
resource "kubernetes_secret" "example" { metadata { name = "youur-basic-auth-name" } data = { username = "admin" password = "P4ssw0rd" } type = "kubernetes.io/basic-auth" }
resource "kubernetes_secret" "example" { metadata { name = "terraform-example" } }
Terraform resource: kubernetes_service_account
See also[edit]
- Terraform provider: Kubernetes,
kubernetes_storage_class_v1, kubernetes_persistent_volume, kubernetes_manifest, kubernetes daemonset, kubernetes_service, kubernetes_namespace, kubernetes_service_account, kubernetes_secret, kubernetes_namespace, kubernetes_service_account_v1, kubernetes_secret_v1, kubernetes horizontal pod autoscaler v1, kubernetes_ingress_v1, kubernetes_persistent_volume_claim_v1
Advertising: