Difference between revisions of "Terraform Kubernetes resource: kubernetes service account"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
* https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/service_account.html
 
* https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/service_account.html
  
 +
== Official example ==
 +
resource "kubernetes_service_account" "example" {
 +
  metadata {
 +
    name = "terraform-example"
 +
  }
 +
  secret {
 +
    name = "${kubernetes_secret.example.metadata.0.name}"
 +
  }
 +
}
  
 +
resource "kubernetes_secret" "example" {
 +
  metadata {
 +
    name = "terraform-example"
 +
  }
 +
}
 +
 +
== Related ==
 
* [[Configuring a Kubernetes service account to assume an IAM role]]
 
* [[Configuring a Kubernetes service account to assume an IAM role]]
  

Revision as of 15:58, 24 October 2023

Advertising: