» kubernetes_service_account

A service account provides an identity for processes that run in a Pod. This data source reads the service account and makes specific attributes available to Terraform.

Read more at Kubernetes reference

» Example Usage

data "kubernetes_service_account" "example" {
  metadata {
    name = "terraform-example"
  }
}

data "kubernetes_secret" "example" {
  metadata {
    name = "${data.kubernetes_service_account.example.default_secret_name}"
  }
}

» Argument Reference

The following arguments are supported:

» Nested Blocks

» metadata

» Arguments

  • name - (Required) Name of the service account, must be unique. For more info see Kubernetes reference
  • namespace - (Optional) Namespace defines the space within which name of the service account must be unique.

» Attributes

  • generation - A sequence number representing a specific generation of the desired state.
  • resource_version - An opaque value that represents the internal version of this service account that can be used by clients to determine when service account has changed. For more info see Kubernetes reference
  • self_link - A URL representing this service account.
  • uid - The unique in time and space value for this service account. For more info see Kubernetes reference

» Attribute Reference

  • image_pull_secret - A list of image pull secrets associated with the service account.
  • secret - A list of secrets associated with the service account.
  • default_secret_name - Name of the default secret, containing service account token, created & managed by the service.

» image_pull_secret

» Attributes

» secret

» Attributes