Difference between revisions of "Terraform resource: kubernetes secret"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{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" {
Line 9: Line 23:
  
  
 
+
* [[Kubernetes secrets]]
[[kubernetes_service_account]]
+
[[Terraform resource: kubernetes_service_account]]
  
 
== See also ==
 
== See also ==
 
* {{tf k8s}}
 
* {{tf k8s}}

Latest revision as of 16:05, 24 October 2023

Advertising: