kubernetes_service_account

A service account provides an identity for processes that run in a Pod.

Read more at https://kubernetes.io/docs/admin/service-accounts-admin/

Example Usage

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"
  }
}

Argument Reference

The following arguments are supported:

Nested Blocks

metadata

Arguments

Attributes

image_pull_secret

Arguments

secret

Arguments

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/kubernetes/r/service_account.html