Difference between revisions of "Terraform resource: kubernetes secret"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 
* https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/secret
 
* 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]]"
 +
}
 +
  
 
  resource "kubernetes_secret" "example" {
 
  resource "kubernetes_secret" "example" {

Revision as of 16:04, 24 October 2023

Advertising: