» kubernetes_secret

The resource provides mechanisms to inject containers with sensitive information, such as passwords, while keeping containers agnostic of Kubernetes. Secrets can be used to store sensitive information either as individual properties or coarse-grained entries like entire files or JSON blobs. The resource will by default create a secret which is available to any pod in the specified (or default) namespace.

» Example Usage

data "kubernetes_secret" "example" {
  metadata {
    name = "basic-auth"
  }
}

» Argument Reference

The following arguments are supported:

» Nested Blocks

» metadata

» Arguments

  • name - (Required) Name of the secret, must be unique. For more info see Kubernetes reference
  • namespace - (Optional) Namespace defines the space within which name of the secret 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 secret that can be used by clients to determine when secret has changed. For more info see Kubernetes reference
  • self_link - A URL representing this secret.
  • uid - The unique in time and space value for this secret. For more info see Kubernetes reference

» Attribute Reference