Skip to content

Latest commit

 

History

History
2048 lines (1275 loc) · 67.1 KB

File metadata and controls

2048 lines (1275 loc) · 67.1 KB
subcategory page_title description
core/v1
Kubernetes: kubernetes_pod
A pod is a group of one or more containers, the shared storage for those containers, and options about how to run the containers. Pods are always co-located and co-scheduled, and run in a shared context.

kubernetes_pod

A pod is a group of one or more containers, the shared storage for those containers, and options about how to run the containers. Pods are always co-located and co-scheduled, and run in a shared context.Read more at Kubernetes reference

Schema

Required

Read-Only

  • id (String) The ID of this resource.
  • spec (List of Object) Specification of the desired behavior of the pod. (see below for nested schema)
  • status (String)

Nested Schema for metadata

Optional:

Read-Only:

Nested Schema for spec

Read-Only:

Nested Schema for spec.affinity

Read-Only:

Nested Schema for spec.affinity.node_affinity

Read-Only:

Nested Schema for spec.affinity.node_affinity.preferred_during_scheduling_ignored_during_execution

Read-Only:

Nested Schema for spec.affinity.node_affinity.preferred_during_scheduling_ignored_during_execution.preference

Read-Only:

Nested Schema for spec.affinity.node_affinity.preferred_during_scheduling_ignored_during_execution.preference.match_expressions

Read-Only:

  • key (String)
  • operator (String)
  • values (Set of String)

Nested Schema for spec.affinity.node_affinity.preferred_during_scheduling_ignored_during_execution.preference.match_fields

Read-Only:

  • key (String)
  • operator (String)
  • values (Set of String)

Nested Schema for spec.affinity.node_affinity.required_during_scheduling_ignored_during_execution

Read-Only:

Nested Schema for spec.affinity.node_affinity.required_during_scheduling_ignored_during_execution.node_selector_term

Read-Only:

Nested Schema for spec.affinity.node_affinity.required_during_scheduling_ignored_during_execution.node_selector_term.match_expressions

Read-Only:

  • key (String)
  • operator (String)
  • values (Set of String)

Nested Schema for spec.affinity.node_affinity.required_during_scheduling_ignored_during_execution.node_selector_term.match_fields

Read-Only:

  • key (String)
  • operator (String)
  • values (Set of String)

Nested Schema for spec.affinity.pod_affinity

Read-Only:

Nested Schema for spec.affinity.pod_affinity.preferred_during_scheduling_ignored_during_execution

Read-Only:

Nested Schema for spec.affinity.pod_affinity.preferred_during_scheduling_ignored_during_execution.pod_affinity_term

Read-Only:

Nested Schema for spec.affinity.pod_affinity.preferred_during_scheduling_ignored_during_execution.pod_affinity_term.label_selector

Read-Only:

Nested Schema for spec.affinity.pod_affinity.preferred_during_scheduling_ignored_during_execution.pod_affinity_term.label_selector.match_expressions

Read-Only:

  • key (String)
  • operator (String)
  • values (Set of String)

Nested Schema for spec.affinity.pod_affinity.required_during_scheduling_ignored_during_execution

Read-Only:

Nested Schema for spec.affinity.pod_affinity.required_during_scheduling_ignored_during_execution.label_selector

Read-Only:

Nested Schema for spec.affinity.pod_affinity.required_during_scheduling_ignored_during_execution.label_selector.match_expressions

Read-Only:

  • key (String)
  • operator (String)
  • values (Set of String)

Nested Schema for spec.affinity.pod_anti_affinity

Read-Only:

Nested Schema for spec.affinity.pod_anti_affinity.preferred_during_scheduling_ignored_during_execution

Read-Only:

Nested Schema for spec.affinity.pod_anti_affinity.preferred_during_scheduling_ignored_during_execution.pod_affinity_term

Read-Only:

Nested Schema for spec.affinity.pod_anti_affinity.preferred_during_scheduling_ignored_during_execution.pod_affinity_term.label_selector

Read-Only:

Nested Schema for spec.affinity.pod_anti_affinity.preferred_during_scheduling_ignored_during_execution.pod_affinity_term.label_selector.match_expressions

Read-Only:

  • key (String)
  • operator (String)
  • values (Set of String)

Nested Schema for spec.affinity.pod_anti_affinity.required_during_scheduling_ignored_during_execution

Read-Only:

Nested Schema for spec.affinity.pod_anti_affinity.required_during_scheduling_ignored_during_execution.label_selector

Read-Only:

Nested Schema for spec.affinity.pod_anti_affinity.required_during_scheduling_ignored_during_execution.label_selector.match_expressions

Read-Only:

  • key (String)
  • operator (String)
  • values (Set of String)

Nested Schema for spec.container

Read-Only:

Nested Schema for spec.container.env

Read-Only:

Nested Schema for spec.container.env.value_from

Read-Only:

Nested Schema for spec.container.env.value_from.config_map_key_ref

Read-Only:

  • key (String)
  • name (String)
  • optional (Boolean)

Nested Schema for spec.container.env.value_from.field_ref

Read-Only:

  • api_version (String)
  • field_path (String)

Nested Schema for spec.container.env.value_from.resource_field_ref

Read-Only:

  • container_name (String)
  • divisor (String)
  • resource (String)

Nested Schema for spec.container.env.value_from.secret_key_ref

Read-Only:

  • key (String)
  • name (String)
  • optional (Boolean)

Nested Schema for spec.container.env_from

Read-Only:

Nested Schema for spec.container.env_from.config_map_ref

Read-Only:

  • name (String)
  • optional (Boolean)

Nested Schema for spec.container.env_from.secret_ref

Read-Only:

  • name (String)
  • optional (Boolean)

Nested Schema for spec.container.lifecycle

Read-Only:

Nested Schema for spec.container.lifecycle.post_start

Read-Only:

Nested Schema for spec.container.lifecycle.post_start.exec

Read-Only:

  • command (List of String)

Nested Schema for spec.container.lifecycle.post_start.http_get

Read-Only:

  • host (String)
  • http_header (List of Object) (see below for nested schema)
  • path (String)
  • port (String)
  • scheme (String)

Nested Schema for spec.container.lifecycle.post_start.http_get.http_header

Read-Only:

  • name (String)
  • value (String)

Nested Schema for spec.container.lifecycle.post_start.tcp_socket

Read-Only:

  • port (String)

Nested Schema for spec.container.lifecycle.pre_stop

Read-Only:

Nested Schema for spec.container.lifecycle.pre_stop.exec

Read-Only:

  • command (List of String)

Nested Schema for spec.container.lifecycle.pre_stop.http_get

Read-Only:

  • host (String)
  • http_header (List of Object) (see below for nested schema)
  • path (String)
  • port (String)
  • scheme (String)

Nested Schema for spec.container.lifecycle.pre_stop.http_get.http_header

Read-Only:

  • name (String)
  • value (String)

Nested Schema for spec.container.lifecycle.pre_stop.tcp_socket

Read-Only:

  • port (String)

Nested Schema for spec.container.liveness_probe

Read-Only:

Nested Schema for spec.container.liveness_probe.exec

Read-Only:

  • command (List of String)

Nested Schema for spec.container.liveness_probe.grpc

Read-Only:

  • port (Number)
  • service (String)

Nested Schema for spec.container.liveness_probe.http_get

Read-Only:

  • host (String)
  • http_header (List of Object) (see below for nested schema)
  • path (String)
  • port (String)
  • scheme (String)

Nested Schema for spec.container.liveness_probe.http_get.http_header

Read-Only:

  • name (String)
  • value (String)

Nested Schema for spec.container.liveness_probe.tcp_socket

Read-Only:

  • port (String)

Nested Schema for spec.container.port

Read-Only:

  • container_port (Number)
  • host_ip (String)
  • host_port (Number)
  • name (String)
  • protocol (String)

Nested Schema for spec.container.readiness_probe

Read-Only:

Nested Schema for spec.container.readiness_probe.exec

Read-Only:

  • command (List of String)

Nested Schema for spec.container.readiness_probe.grpc

Read-Only:

  • port (Number)
  • service (String)

Nested Schema for spec.container.readiness_probe.http_get

Read-Only:

  • host (String)
  • http_header (List of Object) (see below for nested schema)
  • path (String)
  • port (String)
  • scheme (String)

Nested Schema for spec.container.readiness_probe.http_get.http_header

Read-Only:

  • name (String)
  • value (String)

Nested Schema for spec.container.readiness_probe.tcp_socket

Read-Only:

  • port (String)

Nested Schema for spec.container.resources

Read-Only:

  • limits (Map of String)
  • requests (Map of String)

Nested Schema for spec.container.security_context

Read-Only:

  • allow_privilege_escalation (Boolean)
  • capabilities (List of Object) (see below for nested schema)
  • privileged (Boolean)
  • read_only_root_filesystem (Boolean)
  • run_as_group (String)
  • run_as_non_root (Boolean)
  • run_as_user (String)
  • se_linux_options (List of Object) (see below for nested schema)
  • seccomp_profile (List of Object) (see below for nested schema)

Nested Schema for spec.container.security_context.capabilities

Read-Only:

  • add (List of String)
  • drop (List of String)

Nested Schema for spec.container.security_context.se_linux_options

Read-Only:

  • level (String)
  • role (String)
  • type (String)
  • user (String)

Nested Schema for spec.container.security_context.seccomp_profile

Read-Only:

  • localhost_profile (String)
  • type (String)

Nested Schema for spec.container.startup_probe

Read-Only:

Nested Schema for spec.container.startup_probe.exec

Read-Only:

  • command (List of String)

Nested Schema for spec.container.startup_probe.grpc

Read-Only:

  • port (Number)
  • service (String)

Nested Schema for spec.container.startup_probe.http_get

Read-Only:

  • host (String)
  • http_header (List of Object) (see below for nested schema)
  • path (String)
  • port (String)
  • scheme (String)

Nested Schema for spec.container.startup_probe.http_get.http_header

Read-Only:

  • name (String)
  • value (String)

Nested Schema for spec.container.startup_probe.tcp_socket

Read-Only:

  • port (String)

Nested Schema for spec.container.volume_mount

Read-Only:

  • mount_path (String)
  • mount_propagation (String)
  • name (String)
  • read_only (Boolean)
  • sub_path (String)
  • sub_path_expr (String)

Nested Schema for spec.dns_config

Read-Only:

Nested Schema for spec.dns_config.option

Read-Only:

  • name (String)
  • value (String)

Nested Schema for spec.host_aliases

Read-Only:

  • hostnames (List of String)
  • ip (String)

Nested Schema for spec.image_pull_secrets

Read-Only:

  • name (String)

Nested Schema for spec.init_container

Read-Only:

Nested Schema for spec.init_container.env

Read-Only:

Nested Schema for spec.init_container.env.value_from

Read-Only:

Nested Schema for spec.init_container.env.value_from.config_map_key_ref

Read-Only:

  • key (String)
  • name (String)
  • optional (Boolean)

Nested Schema for spec.init_container.env.value_from.field_ref

Read-Only:

  • api_version (String)
  • field_path (String)

Nested Schema for spec.init_container.env.value_from.resource_field_ref

Read-Only:

  • container_name (String)
  • divisor (String)
  • resource (String)

Nested Schema for spec.init_container.env.value_from.secret_key_ref

Read-Only:

  • key (String)
  • name (String)
  • optional (Boolean)

Nested Schema for spec.init_container.env_from

Read-Only:

Nested Schema for spec.init_container.env_from.config_map_ref

Read-Only:

  • name (String)
  • optional (Boolean)

Nested Schema for spec.init_container.env_from.secret_ref

Read-Only:

  • name (String)
  • optional (Boolean)

Nested Schema for spec.init_container.lifecycle

Read-Only:

Nested Schema for spec.init_container.lifecycle.post_start

Read-Only:

Nested Schema for spec.init_container.lifecycle.post_start.exec

Read-Only:

  • command (List of String)

Nested Schema for spec.init_container.lifecycle.post_start.http_get

Read-Only:

  • host (String)
  • http_header (List of Object) (see below for nested schema)
  • path (String)
  • port (String)
  • scheme (String)

Nested Schema for spec.init_container.lifecycle.post_start.http_get.http_header

Read-Only:

  • name (String)
  • value (String)

Nested Schema for spec.init_container.lifecycle.post_start.tcp_socket

Read-Only:

  • port (String)

Nested Schema for spec.init_container.lifecycle.pre_stop

Read-Only:

Nested Schema for spec.init_container.lifecycle.pre_stop.exec

Read-Only:

  • command (List of String)

Nested Schema for spec.init_container.lifecycle.pre_stop.http_get

Read-Only:

  • host (String)
  • http_header (List of Object) (see below for nested schema)
  • path (String)
  • port (String)
  • scheme (String)

Nested Schema for spec.init_container.lifecycle.pre_stop.http_get.http_header

Read-Only:

  • name (String)
  • value (String)

Nested Schema for spec.init_container.lifecycle.pre_stop.tcp_socket

Read-Only:

  • port (String)

Nested Schema for spec.init_container.liveness_probe

Read-Only:

Nested Schema for spec.init_container.liveness_probe.exec

Read-Only:

  • command (List of String)

Nested Schema for spec.init_container.liveness_probe.grpc

Read-Only:

  • port (Number)
  • service (String)

Nested Schema for spec.init_container.liveness_probe.http_get

Read-Only:

  • host (String)
  • http_header (List of Object) (see below for nested schema)
  • path (String)
  • port (String)
  • scheme (String)

Nested Schema for spec.init_container.liveness_probe.http_get.http_header

Read-Only:

  • name (String)
  • value (String)

Nested Schema for spec.init_container.liveness_probe.tcp_socket

Read-Only:

  • port (String)

Nested Schema for spec.init_container.port

Read-Only:

  • container_port (Number)
  • host_ip (String)
  • host_port (Number)
  • name (String)
  • protocol (String)

Nested Schema for spec.init_container.readiness_probe

Read-Only:

Nested Schema for spec.init_container.readiness_probe.exec

Read-Only:

  • command (List of String)

Nested Schema for spec.init_container.readiness_probe.grpc

Read-Only:

  • port (Number)
  • service (String)

Nested Schema for spec.init_container.readiness_probe.http_get

Read-Only:

  • host (String)
  • http_header (List of Object) (see below for nested schema)
  • path (String)
  • port (String)
  • scheme (String)

Nested Schema for spec.init_container.readiness_probe.http_get.http_header

Read-Only:

  • name (String)
  • value (String)

Nested Schema for spec.init_container.readiness_probe.tcp_socket

Read-Only:

  • port (String)

Nested Schema for spec.init_container.resources

Read-Only:

  • limits (Map of String)
  • requests (Map of String)

Nested Schema for spec.init_container.security_context

Read-Only:

  • allow_privilege_escalation (Boolean)
  • capabilities (List of Object) (see below for nested schema)
  • privileged (Boolean)
  • read_only_root_filesystem (Boolean)
  • run_as_group (String)
  • run_as_non_root (Boolean)
  • run_as_user (String)
  • se_linux_options (List of Object) (see below for nested schema)
  • seccomp_profile (List of Object) (see below for nested schema)

Nested Schema for spec.init_container.security_context.capabilities

Read-Only:

  • add (List of String)
  • drop (List of String)

Nested Schema for spec.init_container.security_context.se_linux_options

Read-Only:

  • level (String)
  • role (String)
  • type (String)
  • user (String)

Nested Schema for spec.init_container.security_context.seccomp_profile

Read-Only:

  • localhost_profile (String)
  • type (String)

Nested Schema for spec.init_container.startup_probe

Read-Only:

Nested Schema for spec.init_container.startup_probe.exec

Read-Only:

  • command (List of String)

Nested Schema for spec.init_container.startup_probe.grpc

Read-Only:

  • port (Number)
  • service (String)

Nested Schema for spec.init_container.startup_probe.http_get

Read-Only:

  • host (String)
  • http_header (List of Object) (see below for nested schema)
  • path (String)
  • port (String)
  • scheme (String)

Nested Schema for spec.init_container.startup_probe.http_get.http_header

Read-Only:

  • name (String)
  • value (String)

Nested Schema for spec.init_container.startup_probe.tcp_socket

Read-Only:

  • port (String)

Nested Schema for spec.init_container.volume_mount

Read-Only:

  • mount_path (String)
  • mount_propagation (String)
  • name (String)
  • read_only (Boolean)
  • sub_path (String)
  • sub_path_expr (String)

Nested Schema for spec.os

Read-Only:

  • name (String)

Nested Schema for spec.readiness_gate

Read-Only:

  • condition_type (String)

Nested Schema for spec.security_context

Read-Only:

Nested Schema for spec.security_context.se_linux_options

Read-Only:

  • level (String)
  • role (String)
  • type (String)
  • user (String)

Nested Schema for spec.security_context.seccomp_profile

Read-Only:

  • localhost_profile (String)
  • type (String)

Nested Schema for spec.security_context.sysctl

Read-Only:

  • name (String)
  • value (String)

Nested Schema for spec.security_context.windows_options

Read-Only:

  • gmsa_credential_spec (String)
  • gmsa_credential_spec_name (String)
  • host_process (Boolean)
  • run_as_username (String)

Nested Schema for spec.toleration

Read-Only:

  • effect (String)
  • key (String)
  • operator (String)
  • toleration_seconds (String)
  • value (String)

Nested Schema for spec.topology_spread_constraint

Read-Only:

  • label_selector (List of Object) (see below for nested schema)
  • match_label_keys (Set of String)
  • max_skew (Number)
  • min_domains (Number)
  • node_affinity_policy (String)
  • node_taints_policy (String)
  • topology_key (String)
  • when_unsatisfiable (String)

Nested Schema for spec.topology_spread_constraint.label_selector

Read-Only:

Nested Schema for spec.topology_spread_constraint.label_selector.match_expressions

Read-Only:

  • key (String)
  • operator (String)
  • values (Set of String)

Nested Schema for spec.volume

Read-Only:

Nested Schema for spec.volume.aws_elastic_block_store

Read-Only:

  • fs_type (String)
  • partition (Number)
  • read_only (Boolean)
  • volume_id (String)

Nested Schema for spec.volume.azure_disk

Read-Only:

  • caching_mode (String)
  • data_disk_uri (String)
  • disk_name (String)
  • fs_type (String)
  • kind (String)
  • read_only (Boolean)

Nested Schema for spec.volume.azure_file

Read-Only:

  • read_only (Boolean)
  • secret_name (String)
  • secret_namespace (String)
  • share_name (String)

Nested Schema for spec.volume.ceph_fs

Read-Only:

  • monitors (Set of String)
  • path (String)
  • read_only (Boolean)
  • secret_file (String)
  • secret_ref (List of Object) (see below for nested schema)
  • user (String)

Nested Schema for spec.volume.ceph_fs.secret_ref

Read-Only:

  • name (String)
  • namespace (String)

Nested Schema for spec.volume.cinder

Read-Only:

  • fs_type (String)
  • read_only (Boolean)
  • volume_id (String)

Nested Schema for spec.volume.config_map

Read-Only:

Nested Schema for spec.volume.config_map.items

Read-Only:

  • key (String)
  • mode (String)
  • path (String)

Nested Schema for spec.volume.csi

Read-Only:

  • driver (String)
  • fs_type (String)
  • node_publish_secret_ref (List of Object) (see below for nested schema)
  • read_only (Boolean)
  • volume_attributes (Map of String)

Nested Schema for spec.volume.csi.node_publish_secret_ref

Read-Only:

  • name (String)

Nested Schema for spec.volume.downward_api

Read-Only:

Nested Schema for spec.volume.downward_api.items

Read-Only:

Nested Schema for spec.volume.downward_api.items.field_ref

Read-Only:

  • api_version (String)
  • field_path (String)

Nested Schema for spec.volume.downward_api.items.resource_field_ref

Read-Only:

  • container_name (String)
  • divisor (String)
  • resource (String)
  • type - Indicates which kind of seccomp profile will be applied. Valid options are:
  • Localhost - a profile defined in a file on the node should be used.
  • RuntimeDefault - the container runtime default profile should be used.
  • Unconfined - (Default) no profile should be applied.
  • localhost_profile - Indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is Localhost.

Nested Schema for spec.volume.empty_dir

Read-Only:

  • medium (String)
  • size_limit (String)

Nested Schema for spec.volume.ephemeral

Read-Only:

Nested Schema for spec.volume.ephemeral.volume_claim_template

Read-Only:

Nested Schema for spec.volume.ephemeral.volume_claim_template.metadata

Read-Only:

  • annotations (Map of String)
  • labels (Map of String)

Nested Schema for spec.volume.ephemeral.volume_claim_template.spec

Read-Only:

Nested Schema for spec.volume.ephemeral.volume_claim_template.spec.resources

Read-Only:

  • limits (Map of String)
  • requests (Map of String)

Nested Schema for spec.volume.ephemeral.volume_claim_template.spec.selector

Read-Only:

Nested Schema for spec.volume.ephemeral.volume_claim_template.spec.selector.match_expressions

Read-Only:

  • key (String)
  • operator (String)
  • values (Set of String)

Nested Schema for spec.volume.fc

Read-Only:

  • fs_type (String)
  • lun (Number)
  • read_only (Boolean)
  • target_ww_ns (Set of String)

Nested Schema for spec.volume.flex_volume

Read-Only:

  • driver (String)
  • fs_type (String)
  • options (Map of String)
  • read_only (Boolean)
  • secret_ref (List of Object) (see below for nested schema)

Nested Schema for spec.volume.flex_volume.secret_ref

Read-Only:

  • name (String)
  • namespace (String)

Nested Schema for spec.volume.flocker

Read-Only:

  • dataset_name (String)
  • dataset_uuid (String)

Nested Schema for spec.volume.gce_persistent_disk

Read-Only:

  • fs_type (String)
  • partition (Number)
  • pd_name (String)
  • read_only (Boolean)

Nested Schema for spec.volume.git_repo

Read-Only:

  • directory (String)
  • repository (String)
  • revision (String)

Nested Schema for spec.volume.glusterfs

Read-Only:

  • endpoints_name (String)
  • path (String)
  • read_only (Boolean)

Nested Schema for spec.volume.host_path

Read-Only:

  • path (String)
  • type (String)

Nested Schema for spec.volume.iscsi

Read-Only:

  • chap_auth_discovery (Boolean)
  • chap_auth_session (Boolean)
  • fs_type (String)
  • initiator_name (String)
  • iqn (String)
  • iscsi_interface (String)
  • lun (Number)
  • portals (List of String)
  • read_only (Boolean)
  • secret_ref (List of Object) (see below for nested schema)
  • target_portal (String)

Nested Schema for spec.volume.iscsi.secret_ref

Read-Only:

  • name (String)

Nested Schema for spec.volume.local

Read-Only:

  • path (String)

Nested Schema for spec.volume.nfs

Read-Only:

  • path (String)
  • read_only (Boolean)
  • server (String)

Nested Schema for spec.volume.persistent_volume_claim

Read-Only:

  • claim_name (String)
  • read_only (Boolean)

Nested Schema for spec.volume.photon_persistent_disk

Read-Only:

  • fs_type (String)
  • pd_id (String)

Nested Schema for spec.volume.projected

Read-Only:

Nested Schema for spec.volume.projected.sources

Read-Only:

Nested Schema for spec.volume.projected.sources.config_map

Read-Only:

Nested Schema for spec.volume.projected.sources.config_map.items

Read-Only:

  • key (String)
  • mode (String)
  • path (String)

Nested Schema for spec.volume.projected.sources.downward_api

Read-Only:

Nested Schema for spec.volume.projected.sources.downward_api.items

Read-Only:

Nested Schema for spec.volume.projected.sources.downward_api.items.field_ref

Read-Only:

  • api_version (String)
  • field_path (String)

Nested Schema for spec.volume.projected.sources.downward_api.items.resource_field_ref

Read-Only:

  • container_name (String)
  • divisor (String)
  • resource (String)

Nested Schema for spec.volume.projected.sources.secret

Read-Only:

Nested Schema for spec.volume.projected.sources.secret.items

Read-Only:

  • key (String)
  • mode (String)
  • path (String)

Nested Schema for spec.volume.projected.sources.service_account_token

Read-Only:

  • audience (String)
  • expiration_seconds (Number)
  • path (String)

Nested Schema for spec.volume.quobyte

Read-Only:

  • group (String)
  • read_only (Boolean)
  • registry (String)
  • user (String)
  • volume (String)

Nested Schema for spec.volume.rbd

Read-Only:

  • ceph_monitors (Set of String)
  • fs_type (String)
  • keyring (String)
  • rados_user (String)
  • rbd_image (String)
  • rbd_pool (String)
  • read_only (Boolean)
  • secret_ref (List of Object) (see below for nested schema)

Nested Schema for spec.volume.rbd.secret_ref

Read-Only:

  • name (String)
  • namespace (String)

Nested Schema for spec.volume.secret

Read-Only:

  • default_mode (String)
  • items (List of Object) (see below for nested schema)
  • optional (Boolean)
  • secret_name (String)

Nested Schema for spec.volume.secret.items

Read-Only:

  • key (String)
  • mode (String)
  • path (String)

Nested Schema for spec.volume.vsphere_volume

Read-Only:

  • fs_type (String)
  • volume_path (String)

Example Usage

data "kubernetes_pod" "test" {
  metadata {
    name = "terraform-example"
  }
}

Import

Pod can be imported using the namespace and name, e.g.

$ terraform import kubernetes_pod.example default/terraform-example