| subcategory | page_title | description |
|---|---|---|
apps/v1 |
Kubernetes: kubernetes_deployment |
A Deployment ensures that a specified number of pod “replicas” are running at any one time. In other words, a Deployment makes sure that a pod or homogeneous set of pods are always up and available. If there are too many pods, it will kill some. If there are too few, the Deployment will start more. |
A Deployment ensures that a specified number of pod “replicas” are running at any one time. In other words, a Deployment makes sure that a pod or homogeneous set of pods are always up and available. If there are too many pods, it will kill some. If there are too few, the Deployment will start more.
metadata(Block List, Min: 1, Max: 1) Standard deployment's metadata. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata (see below for nested schema)spec(Block List, Min: 1, Max: 1) Spec defines the specification of the desired behavior of the deployment. More info: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.9/#deployment-v1-apps (see below for nested schema)
timeouts(Block, Optional) (see below for nested schema)wait_for_rollout(Boolean) Wait for the rollout of the deployment to complete. Defaults to true.
id(String) The ID of this resource.
Optional:
annotations(Map of String) An unstructured key value map stored with the deployment that may be used to store arbitrary metadata. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/generate_name(String) Prefix, used by the server, to generate a unique name ONLY IF thenamefield has not been provided. This value will also be combined with a unique suffix. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#idempotencylabels(Map of String) Map of string keys and values that can be used to organize and categorize (scope and select) the deployment. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/name(String) Name of the deployment, must be unique. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#namesnamespace(String) Namespace defines the space within which name of the deployment must be unique.
Read-Only:
generation(Number) A sequence number representing a specific generation of the desired state.resource_version(String) An opaque value that represents the internal version of this deployment that can be used by clients to determine when deployment has changed. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistencyuid(String) The unique in time and space value for this deployment. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
Required:
template(Block List, Min: 1, Max: 1) Template describes the pods that will be created. (see below for nested schema)
Optional:
min_ready_seconds(Number) Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)paused(Boolean) Indicates that the deployment is paused.progress_deadline_seconds(Number) The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.replicas(String) Number of desired pods. This is a string to be able to distinguish between explicit zero and not specified.revision_history_limit(Number) The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.selector(Block List, Max: 1) A label query over pods that should match the Replicas count. (see below for nested schema)strategy(Block List, Max: 1) The deployment strategy to use to replace existing pods with new ones. (see below for nested schema)
Required:
metadata(Block List, Min: 1, Max: 1) Standard pod's metadata. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata (see below for nested schema)spec(Block List, Min: 1, Max: 1) Spec defines the specification of the desired behavior of the deployment. More info: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/deployment-v1/ (see below for nested schema)
Optional:
annotations(Map of String) An unstructured key value map stored with the pod that may be used to store arbitrary metadata. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/generate_name(String) Prefix, used by the server, to generate a unique name ONLY IF thenamefield has not been provided. This value will also be combined with a unique suffix. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#idempotencylabels(Map of String) Map of string keys and values that can be used to organize and categorize (scope and select) the pod. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/name(String) Name of the pod, must be unique. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#namesnamespace(String) Namespace defines the space within which name of the pod must be unique.
Read-Only:
generation(Number) A sequence number representing a specific generation of the desired state.resource_version(String) An opaque value that represents the internal version of this pod that can be used by clients to determine when pod has changed. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistencyuid(String) The unique in time and space value for this pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
Optional:
active_deadline_seconds(Number) Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.affinity(Block List, Max: 1) Optional pod scheduling constraints. (see below for nested schema)automount_service_account_token(Boolean) AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.container(Block List) List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/ (see below for nested schema)dns_config(Block List, Max: 1) Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. Optional: Defaults to empty (see below for nested schema)dns_policy(String) Set DNS policy for containers within the pod. Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. Defaults to 'ClusterFirst'. More info: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policyenable_service_links(Boolean) Enables generating environment variables for service discovery. Defaults to true.host_aliases(Block List) List of hosts and IPs that will be injected into the pod's hosts file if specified. Optional: Defaults to empty. (see below for nested schema)host_ipc(Boolean) Use the host's ipc namespace. Optional: Defaults to false.host_network(Boolean) Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified.host_pid(Boolean) Use the host's pid namespace.hostname(String) Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.image_pull_secrets(Block List) ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod (see below for nested schema)init_container(Block List) List of init containers belonging to the pod. Init containers always run to completion and each must complete successfully before the next is started. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ (see below for nested schema)node_name(String) NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.node_selector(Map of String) NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/.os(Block List, Max: 1) Specifies the OS of the containers in the pod. (see below for nested schema)priority_class_name(String) If specified, indicates the pod's priority. "system-node-critical" and "system-cluster-critical" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.readiness_gate(Block List) If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md (see below for nested schema)restart_policy(String) Restart policy for all containers within the pod. One of Always, OnFailure, Never. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy.runtime_class_name(String) RuntimeClassName is a feature for selecting the container runtime configuration. The container runtime configuration is used to run a Pod's containers. More info: https://kubernetes.io/docs/concepts/containers/runtime-classscheduler_name(String) If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.security_context(Block List, Max: 1) SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty (see below for nested schema)service_account_name(String) ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: http://releases.k8s.io/HEAD/docs/design/service_accounts.md.share_process_namespace(Boolean) Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Defaults to false.subdomain(String) If specified, the fully qualified Pod hostname will be "...svc.". If not specified, the pod will not have a domainname at all..termination_grace_period_seconds(Number) Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process.toleration(Block List) If specified, the pod's toleration. Optional: Defaults to empty (see below for nested schema)topology_spread_constraint(Block List) describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. (see below for nested schema)volume(Block List) List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes (see below for nested schema)
Optional:
node_affinity(Block List, Max: 1) Node affinity scheduling rules for the pod. (see below for nested schema)pod_affinity(Block List, Max: 1) Inter-pod topological affinity. rules that specify that certain pods should be placed in the same topological domain (e.g. same node, same rack, same zone, same power domain, etc.) (see below for nested schema)pod_anti_affinity(Block List, Max: 1) Inter-pod topological affinity. rules that specify that certain pods should be placed in the same topological domain (e.g. same node, same rack, same zone, same power domain, etc.) (see below for nested schema)
Optional:
preferred_during_scheduling_ignored_during_execution(Block List) The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, RequiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding 'weight' to the sum if the node matches the corresponding MatchExpressions; the node(s) with the highest sum are the most preferred. (see below for nested schema)required_during_scheduling_ignored_during_execution(Block List, Max: 1) If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a node label update), the system may or may not try to eventually evict the pod from its node. (see below for nested schema)
Nested Schema for spec.template.spec.affinity.node_affinity.preferred_during_scheduling_ignored_during_execution
Required:
preference(Block List, Min: 1, Max: 1) A node selector term, associated with the corresponding weight. (see below for nested schema)weight(Number) weight is in the range 1-100
Nested Schema for spec.template.spec.affinity.node_affinity.preferred_during_scheduling_ignored_during_execution.preference
Optional:
match_expressions(Block List) List of node selector requirements. The requirements are ANDed. (see below for nested schema)match_fields(Block List) A list of node selector requirements by node's fields. The requirements are ANDed. (see below for nested schema)
Nested Schema for spec.template.spec.affinity.node_affinity.preferred_during_scheduling_ignored_during_execution.preference.match_expressions
Optional:
key(String) The label key that the selector applies to.operator(String) Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.values(Set of String) Values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
Nested Schema for spec.template.spec.affinity.node_affinity.preferred_during_scheduling_ignored_during_execution.preference.match_fields
Required:
key(String) The label key that the selector applies to.operator(String) A key's relationship to a set of values. Valid operators ardIn,NotIn,Exists,DoesNotExist,Gt, andLt.
Optional:
values(Set of String) An array of string values. If the operator isInorNotIn, the values array must be non-empty. If the operator isExistsorDoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Nested Schema for spec.template.spec.affinity.node_affinity.required_during_scheduling_ignored_during_execution
Optional:
node_selector_term(Block List) List of node selector terms. The terms are ORed. (see below for nested schema)
Nested Schema for spec.template.spec.affinity.node_affinity.required_during_scheduling_ignored_during_execution.node_selector_term
Optional:
match_expressions(Block List) List of node selector requirements. The requirements are ANDed. (see below for nested schema)match_fields(Block List) A list of node selector requirements by node's fields. The requirements are ANDed. (see below for nested schema)
Nested Schema for spec.template.spec.affinity.node_affinity.required_during_scheduling_ignored_during_execution.node_selector_term.match_expressions
Optional:
key(String) The label key that the selector applies to.operator(String) Operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.values(Set of String) Values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
Nested Schema for spec.template.spec.affinity.node_affinity.required_during_scheduling_ignored_during_execution.node_selector_term.match_fields
Required:
key(String) The label key that the selector applies to.operator(String) A key's relationship to a set of values. Valid operators ardIn,NotIn,Exists,DoesNotExist,Gt, andLt.
Optional:
values(Set of String) An array of string values. If the operator isInorNotIn, the values array must be non-empty. If the operator isExistsorDoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Optional:
preferred_during_scheduling_ignored_during_execution(Block List) The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, RequiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding 'weight' to the sum if the node matches the corresponding MatchExpressions; the node(s) with the highest sum are the most preferred. (see below for nested schema)required_during_scheduling_ignored_during_execution(Block List) If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each PodAffinityTerm are intersected, i.e. all terms must be satisfied. (see below for nested schema)
Nested Schema for spec.template.spec.affinity.pod_affinity.preferred_during_scheduling_ignored_during_execution
Required:
pod_affinity_term(Block List, Min: 1, Max: 1) A pod affinity term, associated with the corresponding weight (see below for nested schema)weight(Number) weight associated with matching the corresponding podAffinityTerm, in the range 1-100
Nested Schema for spec.template.spec.affinity.pod_affinity.preferred_during_scheduling_ignored_during_execution.pod_affinity_term
Required:
topology_key(String) empty topology key is interpreted by the scheduler as 'all topologies'
Optional:
label_selector(Block List) A label query over a set of resources, in this case pods. (see below for nested schema)namespaces(Set of String) namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means 'this pod's namespace'
Nested Schema for spec.template.spec.affinity.pod_affinity.preferred_during_scheduling_ignored_during_execution.pod_affinity_term.label_selector
Optional:
match_expressions(Block List) A list of label selector requirements. The requirements are ANDed. (see below for nested schema)match_labels(Map of String) A map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element ofmatch_expressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
Nested Schema for spec.template.spec.affinity.pod_affinity.preferred_during_scheduling_ignored_during_execution.pod_affinity_term.label_selector.match_expressions
Optional:
key(String) The label key that the selector applies to.operator(String) A key's relationship to a set of values. Valid operators ardIn,NotIn,ExistsandDoesNotExist.values(Set of String) An array of string values. If the operator isInorNotIn, the values array must be non-empty. If the operator isExistsorDoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Nested Schema for spec.template.spec.affinity.pod_affinity.required_during_scheduling_ignored_during_execution
Required:
topology_key(String) empty topology key is interpreted by the scheduler as 'all topologies'
Optional:
label_selector(Block List) A label query over a set of resources, in this case pods. (see below for nested schema)namespaces(Set of String) namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means 'this pod's namespace'
Nested Schema for spec.template.spec.affinity.pod_affinity.required_during_scheduling_ignored_during_execution.label_selector
Optional:
match_expressions(Block List) A list of label selector requirements. The requirements are ANDed. (see below for nested schema)match_labels(Map of String) A map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element ofmatch_expressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
Nested Schema for spec.template.spec.affinity.pod_affinity.required_during_scheduling_ignored_during_execution.label_selector.match_expressions
Optional:
key(String) The label key that the selector applies to.operator(String) A key's relationship to a set of values. Valid operators ardIn,NotIn,ExistsandDoesNotExist.values(Set of String) An array of string values. If the operator isInorNotIn, the values array must be non-empty. If the operator isExistsorDoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Optional:
preferred_during_scheduling_ignored_during_execution(Block List) The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, RequiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding 'weight' to the sum if the node matches the corresponding MatchExpressions; the node(s) with the highest sum are the most preferred. (see below for nested schema)required_during_scheduling_ignored_during_execution(Block List) If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each PodAffinityTerm are intersected, i.e. all terms must be satisfied. (see below for nested schema)
Nested Schema for spec.template.spec.affinity.pod_anti_affinity.preferred_during_scheduling_ignored_during_execution
Required:
pod_affinity_term(Block List, Min: 1, Max: 1) A pod affinity term, associated with the corresponding weight (see below for nested schema)weight(Number) weight associated with matching the corresponding podAffinityTerm, in the range 1-100
Nested Schema for spec.template.spec.affinity.pod_anti_affinity.preferred_during_scheduling_ignored_during_execution.pod_affinity_term
Required:
topology_key(String) empty topology key is interpreted by the scheduler as 'all topologies'
Optional:
label_selector(Block List) A label query over a set of resources, in this case pods. (see below for nested schema)namespaces(Set of String) namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means 'this pod's namespace'
Nested Schema for spec.template.spec.affinity.pod_anti_affinity.preferred_during_scheduling_ignored_during_execution.pod_affinity_term.label_selector
Optional:
match_expressions(Block List) A list of label selector requirements. The requirements are ANDed. (see below for nested schema)match_labels(Map of String) A map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element ofmatch_expressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
Nested Schema for spec.template.spec.affinity.pod_anti_affinity.preferred_during_scheduling_ignored_during_execution.pod_affinity_term.label_selector.match_expressions
Optional:
key(String) The label key that the selector applies to.operator(String) A key's relationship to a set of values. Valid operators ardIn,NotIn,ExistsandDoesNotExist.values(Set of String) An array of string values. If the operator isInorNotIn, the values array must be non-empty. If the operator isExistsorDoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Nested Schema for spec.template.spec.affinity.pod_anti_affinity.required_during_scheduling_ignored_during_execution
Required:
topology_key(String) empty topology key is interpreted by the scheduler as 'all topologies'
Optional:
label_selector(Block List) A label query over a set of resources, in this case pods. (see below for nested schema)namespaces(Set of String) namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means 'this pod's namespace'
Nested Schema for spec.template.spec.affinity.pod_anti_affinity.required_during_scheduling_ignored_during_execution.label_selector
Optional:
match_expressions(Block List) A list of label selector requirements. The requirements are ANDed. (see below for nested schema)match_labels(Map of String) A map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element ofmatch_expressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
Nested Schema for spec.template.spec.affinity.pod_anti_affinity.required_during_scheduling_ignored_during_execution.label_selector.match_expressions
Optional:
key(String) The label key that the selector applies to.operator(String) A key's relationship to a set of values. Valid operators ardIn,NotIn,ExistsandDoesNotExist.values(Set of String) An array of string values. If the operator isInorNotIn, the values array must be non-empty. If the operator isExistsorDoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Required:
name(String) Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.
Optional:
-
args(List of String) Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references$(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $ (VAR_NAME) syntax can be escaped with a double$$, ie: $$ (VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell -
command(List of String) Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references$(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $ (VAR_NAME) syntax can be escaped with a double$$, ie: $$ (VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell -
env(Block List) List of environment variables to set in the container. Cannot be updated. (see below for nested schema) -
env_from(Block List) List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. (see below for nested schema) -
image(String) Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images/ -
image_pull_policy(String) Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images/#updating-images -
lifecycle(Block List, Max: 1) Actions that the management system should take in response to container lifecycle events (see below for nested schema) -
liveness_probe(Block List, Max: 1) Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes (see below for nested schema) -
port(Block List) List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. (see below for nested schema) -
readiness_probe(Block List, Max: 1) Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes (see below for nested schema) -
resources(Block List, Max: 1) Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources (see below for nested schema) -
security_context(Block List, Max: 1) Security options the pod should run with. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ (see below for nested schema) -
startup_probe(Block List, Max: 1) StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is an alpha feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes (see below for nested schema) -
stdin(Boolean) Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. -
stdin_once(Boolean) Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. -
termination_message_path(String) Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Defaults to /dev/termination-log. Cannot be updated. -
termination_message_policy(String) Optional: Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. -
tty(Boolean) Whether this container should allocate a TTY for itself -
volume_mount(Block List) Pod volumes to mount into the container's filesystem. Cannot be updated. (see below for nested schema) -
volume_device(Block List) Raw volume devices to attach into the container's filesystem as raw block devices. Cannot be updated. More info: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#volumes-1 (see below for nested schema) -
working_dir(String) Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.
Required:
name(String) Name of the environment variable. Must be a C_IDENTIFIER
Optional:
-
value(String) Variable references$(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $ (VAR_NAME) syntax can be escaped with a double$$, ie: $$ (VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". -
value_from(Block List, Max: 1) Source for the environment variable's value (see below for nested schema)
Optional:
config_map_key_ref(Block List, Max: 1) Selects a key of a ConfigMap. (see below for nested schema)field_ref(Block List, Max: 1) Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.podIP. (see below for nested schema)resource_field_ref(Block List, Max: 1) Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. (see below for nested schema)secret_key_ref(Block List, Max: 1) Selects a key of a secret in the pod's namespace. (see below for nested schema)
Optional:
key(String) The key to select.name(String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#namesoptional(Boolean) Specify whether the ConfigMap or its key must be defined.
Optional:
api_version(String) Version of the schema the FieldPath is written in terms of, defaults to "v1".field_path(String) Path of the field to select in the specified API version
Required:
resource(String) Resource to select
Optional:
container_name(String)divisor(String)
Optional:
key(String) The key of the secret to select from. Must be a valid secret key.name(String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#namesoptional(Boolean) Specify whether the Secret or its key must be defined.
Optional:
config_map_ref(Block List, Max: 1) The ConfigMap to select from (see below for nested schema)prefix(String) An optional identifer to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.secret_ref(Block List, Max: 1) The Secret to select from (see below for nested schema)
Required:
name(String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
Optional:
optional(Boolean) Specify whether the ConfigMap must be defined
Required:
name(String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
Optional:
optional(Boolean) Specify whether the Secret must be defined
Optional:
post_start(Block List) post_start is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks (see below for nested schema)pre_stop(Block List) pre_stop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks (see below for nested schema)
Optional:
exec(Block List, Max: 1) exec specifies the action to take. (see below for nested schema)http_get(Block List, Max: 1) Specifies the http request to perform. (see below for nested schema)tcp_socket(Block List) TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported (see below for nested schema)
Optional:
command(List of String) Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
Optional:
host(String) Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.http_header(Block List) Scheme to use for connecting to the host. (see below for nested schema)path(String) Path to access on the HTTP server.port(String) Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.scheme(String) Scheme to use for connecting to the host.
Optional:
name(String) The header field namevalue(String) The header field value
Required:
port(String) Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
Optional:
exec(Block List, Max: 1) exec specifies the action to take. (see below for nested schema)http_get(Block List, Max: 1) Specifies the http request to perform. (see below for nested schema)tcp_socket(Block List) TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported (see below for nested schema)
Optional:
command(List of String) Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
Optional:
host(String) Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.http_header(Block List) Scheme to use for connecting to the host. (see below for nested schema)path(String) Path to access on the HTTP server.port(String) Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.scheme(String) Scheme to use for connecting to the host.
Optional:
name(String) The header field namevalue(String) The header field value
Required:
port(String) Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
Optional:
exec(Block List, Max: 1) exec specifies the action to take. (see below for nested schema)failure_threshold(Number) Minimum consecutive failures for the probe to be considered failed after having succeeded.grpc(Block List) GRPC specifies an action involving a GRPC port. (see below for nested schema)http_get(Block List, Max: 1) Specifies the http request to perform. (see below for nested schema)initial_delay_seconds(Number) Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probesperiod_seconds(Number) How often (in seconds) to perform the probesuccess_threshold(Number) Minimum consecutive successes for the probe to be considered successful after having failed.tcp_socket(Block List) TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported (see below for nested schema)timeout_seconds(Number) Number of seconds after which the probe times out. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
Optional:
command(List of String) Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
Required:
port(Number) Number of the port to access on the container. Number must be in the range 1 to 65535.
Optional:
service(String) Name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.
Optional:
host(String) Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.http_header(Block List) Scheme to use for connecting to the host. (see below for nested schema)path(String) Path to access on the HTTP server.port(String) Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.scheme(String) Scheme to use for connecting to the host.
Optional:
name(String) The header field namevalue(String) The header field value
Required:
port(String) Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
Required:
container_port(Number) Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.
Optional:
host_ip(String) What host IP to bind the external port to.host_port(Number) Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.name(String) If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by servicesprotocol(String) Protocol for port. Must be UDP or TCP. Defaults to "TCP".
Optional:
exec(Block List, Max: 1) exec specifies the action to take. (see below for nested schema)failure_threshold(Number) Minimum consecutive failures for the probe to be considered failed after having succeeded.grpc(Block List) GRPC specifies an action involving a GRPC port. (see below for nested schema)http_get(Block List, Max: 1) Specifies the http request to perform. (see below for nested schema)initial_delay_seconds(Number) Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probesperiod_seconds(Number) How often (in seconds) to perform the probesuccess_threshold(Number) Minimum consecutive successes for the probe to be considered successful after having failed.tcp_socket(Block List) TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported (see below for nested schema)timeout_seconds(Number) Number of seconds after which the probe times out. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
Optional:
command(List of String) Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
Required:
port(Number) Number of the port to access on the container. Number must be in the range 1 to 65535.
Optional:
service(String) Name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.
Optional:
host(String) Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.http_header(Block List) Scheme to use for connecting to the host. (see below for nested schema)path(String) Path to access on the HTTP server.port(String) Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.scheme(String) Scheme to use for connecting to the host.
Optional:
name(String) The header field namevalue(String) The header field value
Required:
port(String) Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
Optional:
limits(Map of String) Describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/requests(Map of String) Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
Optional:
allow_privilege_escalation(Boolean) AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMINcapabilities(Block List, Max: 1) The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. (see below for nested schema)privileged(Boolean) Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.read_only_root_filesystem(Boolean) Whether this container has a read-only root filesystem. Default is false.run_as_group(String) The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.run_as_non_root(Boolean) Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.run_as_user(String) The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.se_linux_options(Block List, Max: 1) The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. (see below for nested schema)seccomp_profile(Block List, Max: 1) The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows. (see below for nested schema)
Optional:
add(List of String) Added capabilitiesdrop(List of String) Removed capabilities
Optional:
level(String) Level is SELinux level label that applies to the container.role(String) Role is a SELinux role label that applies to the container.type(String) Type is a SELinux type label that applies to the container.user(String) User is a SELinux user label that applies to the container.
Optional:
localhost_profile(String) 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.type(String) Type indicates which kind of seccomp profile will be applied. Valid options are: Localhost, RuntimeDefault, Unconfined.
Optional:
exec(Block List, Max: 1) exec specifies the action to take. (see below for nested schema)failure_threshold(Number) Minimum consecutive failures for the probe to be considered failed after having succeeded.grpc(Block List) GRPC specifies an action involving a GRPC port. (see below for nested schema)http_get(Block List, Max: 1) Specifies the http request to perform. (see below for nested schema)initial_delay_seconds(Number) Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probesperiod_seconds(Number) How often (in seconds) to perform the probesuccess_threshold(Number) Minimum consecutive successes for the probe to be considered successful after having failed.tcp_socket(Block List) TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported (see below for nested schema)timeout_seconds(Number) Number of seconds after which the probe times out. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
Optional:
command(List of String) Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
Required:
port(Number) Number of the port to access on the container. Number must be in the range 1 to 65535.
Optional:
service(String) Name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.
Optional:
host(String) Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.http_header(Block List) Scheme to use for connecting to the host. (see below for nested schema)path(String) Path to access on the HTTP server.port(String) Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.scheme(String) Scheme to use for connecting to the host.
Optional:
name(String) The header field namevalue(String) The header field value
Required:
port(String) Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
Required:
mount_path(String) Path within the container at which the volume should be mounted. Must not contain ':'.name(String) This must match the Name of a Volume.
Optional:
mount_propagation(String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.read_only(Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.sub_path(String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).sub_path_expr(String) Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root).
Required:
device_path(String) Path within the container at which the volume device should be attached. For example '/dev/xvda'.name(String) This must match the Name of a PersistentVolumeClaim.
Optional:
nameservers(List of String) A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.option(Block List) A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. (see below for nested schema)searches(List of String) A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.
Required:
name(String) Name of the option.
Optional:
value(String) Value of the option. Optional: Defaults to empty.
Required:
hostnames(List of String) Hostnames for the IP address.ip(String) IP address of the host file entry.
Required:
name(String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
Required:
name(String) Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.
Optional:
-
args(List of String) Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references$(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $ (VAR_NAME) syntax can be escaped with a double$$, ie: $$ (VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell -
command(List of String) Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references$(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $ (VAR_NAME) syntax can be escaped with a double$$, ie: $$ (VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell -
env(Block List) List of environment variables to set in the container. Cannot be updated. (see below for nested schema) -
env_from(Block List) List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. (see below for nested schema) -
image(String) Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images/ -
image_pull_policy(String) Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images/#updating-images -
lifecycle(Block List, Max: 1) Actions that the management system should take in response to container lifecycle events (see below for nested schema) -
liveness_probe(Block List, Max: 1) Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes (see below for nested schema) -
port(Block List) List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. (see below for nested schema) -
readiness_probe(Block List, Max: 1) Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes (see below for nested schema) -
resources(Block List, Max: 1) Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources (see below for nested schema) -
security_context(Block List, Max: 1) Security options the pod should run with. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ (see below for nested schema) -
startup_probe(Block List, Max: 1) StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is an alpha feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes (see below for nested schema) -
stdin(Boolean) Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. -
stdin_once(Boolean) Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. -
termination_message_path(String) Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Defaults to /dev/termination-log. Cannot be updated. -
termination_message_policy(String) Optional: Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. -
tty(Boolean) Whether this container should allocate a TTY for itself -
volume_mount(Block List) Pod volumes to mount into the container's filesystem. Cannot be updated. (see below for nested schema) -
volume_device(Block List) Raw volume devices to attach into the container's filesystem as raw block devices. Cannot be updated. More info: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#volumes-1 (see below for nested schema) -
working_dir(String) Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.
Required:
name(String) Name of the environment variable. Must be a C_IDENTIFIER
Optional:
-
value(String) Variable references$(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $ (VAR_NAME) syntax can be escaped with a double$$, ie: $$ (VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". -
value_from(Block List, Max: 1) Source for the environment variable's value (see below for nested schema)
Optional:
config_map_key_ref(Block List, Max: 1) Selects a key of a ConfigMap. (see below for nested schema)field_ref(Block List, Max: 1) Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.podIP. (see below for nested schema)resource_field_ref(Block List, Max: 1) Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. (see below for nested schema)secret_key_ref(Block List, Max: 1) Selects a key of a secret in the pod's namespace. (see below for nested schema)
Optional:
key(String) The key to select.name(String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#namesoptional(Boolean) Specify whether the ConfigMap or its key must be defined.
Optional:
api_version(String) Version of the schema the FieldPath is written in terms of, defaults to "v1".field_path(String) Path of the field to select in the specified API version
Required:
resource(String) Resource to select
Optional:
container_name(String)divisor(String)
Optional:
key(String) The key of the secret to select from. Must be a valid secret key.name(String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#namesoptional(Boolean) Specify whether the Secret or its key must be defined.
Optional:
config_map_ref(Block List, Max: 1) The ConfigMap to select from (see below for nested schema)prefix(String) An optional identifer to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.secret_ref(Block List, Max: 1) The Secret to select from (see below for nested schema)
Required:
name(String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
Optional:
optional(Boolean) Specify whether the ConfigMap must be defined
Required:
name(String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
Optional:
optional(Boolean) Specify whether the Secret must be defined
Optional:
post_start(Block List) post_start is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks (see below for nested schema)pre_stop(Block List) pre_stop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks (see below for nested schema)
Optional:
exec(Block List, Max: 1) exec specifies the action to take. (see below for nested schema)http_get(Block List, Max: 1) Specifies the http request to perform. (see below for nested schema)tcp_socket(Block List) TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported (see below for nested schema)
Optional:
command(List of String) Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
Optional:
host(String) Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.http_header(Block List) Scheme to use for connecting to the host. (see below for nested schema)path(String) Path to access on the HTTP server.port(String) Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.scheme(String) Scheme to use for connecting to the host.
Optional:
name(String) The header field namevalue(String) The header field value
Required:
port(String) Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
Optional:
exec(Block List, Max: 1) exec specifies the action to take. (see below for nested schema)http_get(Block List, Max: 1) Specifies the http request to perform. (see below for nested schema)tcp_socket(Block List) TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported (see below for nested schema)
Optional:
command(List of String) Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
Optional:
host(String) Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.http_header(Block List) Scheme to use for connecting to the host. (see below for nested schema)path(String) Path to access on the HTTP server.port(String) Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.scheme(String) Scheme to use for connecting to the host.
Optional:
name(String) The header field namevalue(String) The header field value
Required:
port(String) Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
Optional:
exec(Block List, Max: 1) exec specifies the action to take. (see below for nested schema)failure_threshold(Number) Minimum consecutive failures for the probe to be considered failed after having succeeded.grpc(Block List) GRPC specifies an action involving a GRPC port. (see below for nested schema)http_get(Block List, Max: 1) Specifies the http request to perform. (see below for nested schema)initial_delay_seconds(Number) Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probesperiod_seconds(Number) How often (in seconds) to perform the probesuccess_threshold(Number) Minimum consecutive successes for the probe to be considered successful after having failed.tcp_socket(Block List) TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported (see below for nested schema)timeout_seconds(Number) Number of seconds after which the probe times out. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
Optional:
command(List of String) Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
Required:
port(Number) Number of the port to access on the container. Number must be in the range 1 to 65535.
Optional:
service(String) Name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.
Optional:
host(String) Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.http_header(Block List) Scheme to use for connecting to the host. (see below for nested schema)path(String) Path to access on the HTTP server.port(String) Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.scheme(String) Scheme to use for connecting to the host.
Optional:
name(String) The header field namevalue(String) The header field value
Required:
port(String) Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
Required:
container_port(Number) Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.
Optional:
host_ip(String) What host IP to bind the external port to.host_port(Number) Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.name(String) If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by servicesprotocol(String) Protocol for port. Must be UDP or TCP. Defaults to "TCP".
Optional:
exec(Block List, Max: 1) exec specifies the action to take. (see below for nested schema)failure_threshold(Number) Minimum consecutive failures for the probe to be considered failed after having succeeded.grpc(Block List) GRPC specifies an action involving a GRPC port. (see below for nested schema)http_get(Block List, Max: 1) Specifies the http request to perform. (see below for nested schema)initial_delay_seconds(Number) Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probesperiod_seconds(Number) How often (in seconds) to perform the probesuccess_threshold(Number) Minimum consecutive successes for the probe to be considered successful after having failed.tcp_socket(Block List) TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported (see below for nested schema)timeout_seconds(Number) Number of seconds after which the probe times out. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
Optional:
command(List of String) Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
Required:
port(Number) Number of the port to access on the container. Number must be in the range 1 to 65535.
Optional:
service(String) Name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.
Optional:
host(String) Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.http_header(Block List) Scheme to use for connecting to the host. (see below for nested schema)path(String) Path to access on the HTTP server.port(String) Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.scheme(String) Scheme to use for connecting to the host.
Optional:
name(String) The header field namevalue(String) The header field value
Required:
port(String) Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
Optional:
limits(Map of String) Describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/requests(Map of String) Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
Optional:
allow_privilege_escalation(Boolean) AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMINcapabilities(Block List, Max: 1) The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. (see below for nested schema)privileged(Boolean) Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.read_only_root_filesystem(Boolean) Whether this container has a read-only root filesystem. Default is false.run_as_group(String) The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.run_as_non_root(Boolean) Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.run_as_user(String) The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.se_linux_options(Block List, Max: 1) The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. (see below for nested schema)seccomp_profile(Block List, Max: 1) The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows. (see below for nested schema)
Optional:
add(List of String) Added capabilitiesdrop(List of String) Removed capabilities
Optional:
level(String) Level is SELinux level label that applies to the container.role(String) Role is a SELinux role label that applies to the container.type(String) Type is a SELinux type label that applies to the container.user(String) User is a SELinux user label that applies to the container.
Optional:
localhost_profile(String) 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.type(String) Type indicates which kind of seccomp profile will be applied. Valid options are: Localhost, RuntimeDefault, Unconfined.
Optional:
exec(Block List, Max: 1) exec specifies the action to take. (see below for nested schema)failure_threshold(Number) Minimum consecutive failures for the probe to be considered failed after having succeeded.grpc(Block List) GRPC specifies an action involving a GRPC port. (see below for nested schema)http_get(Block List, Max: 1) Specifies the http request to perform. (see below for nested schema)initial_delay_seconds(Number) Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probesperiod_seconds(Number) How often (in seconds) to perform the probesuccess_threshold(Number) Minimum consecutive successes for the probe to be considered successful after having failed.tcp_socket(Block List) TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported (see below for nested schema)timeout_seconds(Number) Number of seconds after which the probe times out. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
Optional:
command(List of String) Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
Required:
port(Number) Number of the port to access on the container. Number must be in the range 1 to 65535.
Optional:
service(String) Name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.
Optional:
host(String) Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.http_header(Block List) Scheme to use for connecting to the host. (see below for nested schema)path(String) Path to access on the HTTP server.port(String) Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.scheme(String) Scheme to use for connecting to the host.
Optional:
name(String) The header field namevalue(String) The header field value
Required:
port(String) Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
Required:
mount_path(String) Path within the container at which the volume should be mounted. Must not contain ':'.name(String) This must match the Name of a Volume.
Optional:
mount_propagation(String) Mount propagation mode. mount_propagation determines how mounts are propagated from the host to container and the other way around. Valid values are None (default), HostToContainer and Bidirectional.read_only(Boolean) Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.sub_path(String) Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).sub_path_expr(String) Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root).
Required:
device_path(String) Path within the container at which the volume device should be attached. For example '/dev/xvda'.name(String) This must match the Name of a PersistentVolumeClaim.
Required:
name(String) Name is the name of the operating system. The currently supported values are linux and windows.
Required:
condition_type(String) refers to a condition in the pod's condition list with matching type.
Optional:
fs_group(String) A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume.fs_group_change_policy(String) fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir.run_as_group(String) The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.run_as_non_root(Boolean) Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.run_as_user(String) The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.se_linux_options(Block List, Max: 1) The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. (see below for nested schema)seccomp_profile(Block List, Max: 1) The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows. (see below for nested schema)supplemental_groups(Set of Number) A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container.sysctl(Block List) holds a list of namespaced sysctls used for the pod. (see below for nested schema)windows_options(Block List, Max: 1) The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux. (see below for nested schema)
Optional:
level(String) Level is SELinux level label that applies to the container.role(String) Role is a SELinux role label that applies to the container.type(String) Type is a SELinux type label that applies to the container.user(String) User is a SELinux user label that applies to the container.
Optional:
localhost_profile(String) 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.type(String) Type indicates which kind of seccomp profile will be applied. Valid options are: Localhost, RuntimeDefault, Unconfined.
Required:
name(String) Name of a property to set.value(String) Value of a property to set.
Optional:
gmsa_credential_spec(String) GMSACredentialSpec is where the GMSA admission webhook inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName fieldgmsa_credential_spec_name(String) GMSACredentialSpecName is the name of the GMSA credential spec to use.host_process(Boolean) HostProcess determines if a container should be run as a 'Host Process' container. Default value is false.run_as_username(String) The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
Optional:
effect(String) Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.key(String) Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.operator(String) Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.toleration_seconds(String) TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.value(String) Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.
Optional:
label_selector(Block List) A label query over a set of resources, in this case pods. (see below for nested schema)match_label_keys(Set of String) is a set of pod label keys to select the pods over which spreading will be calculated.max_skew(Number) describes the degree to which pods may be unevenly distributed.min_domains(Number) indicates a minimum number of eligible domains.node_affinity_policy(String) indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew.node_taints_policy(String) indicates how we will treat node taints when calculating pod topology spread skew.topology_key(String) the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology.when_unsatisfiable(String) indicates how to deal with a pod if it doesn't satisfy the spread constraint.
Optional:
match_expressions(Block List) A list of label selector requirements. The requirements are ANDed. (see below for nested schema)match_labels(Map of String) A map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element ofmatch_expressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
Optional:
key(String) The label key that the selector applies to.operator(String) A key's relationship to a set of values. Valid operators ardIn,NotIn,ExistsandDoesNotExist.values(Set of String) An array of string values. If the operator isInorNotIn, the values array must be non-empty. If the operator isExistsorDoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Optional:
aws_elastic_block_store(Block List, Max: 1) Represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore (see below for nested schema)azure_disk(Block List, Max: 1) Represents an Azure Data Disk mount on the host and bind mount to the pod. (see below for nested schema)azure_file(Block List, Max: 1) Represents an Azure File Service mount on the host and bind mount to the pod. (see below for nested schema)ceph_fs(Block List, Max: 1) Represents a Ceph FS mount on the host that shares a pod's lifetime (see below for nested schema)cinder(Block List, Max: 1) Represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md (see below for nested schema)config_map(Block List, Max: 1) ConfigMap represents a configMap that should populate this volume (see below for nested schema)csi(Block List, Max: 1) Represents a CSI Volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#csi (see below for nested schema)downward_api(Block List, Max: 1) DownwardAPI represents downward API about the pod that should populate this volume (see below for nested schema)empty_dir(Block List, Max: 1) EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir (see below for nested schema)ephemeral(Block List, Max: 1) Represents an ephemeral volume that is handled by a normal storage driver. More info: https://kubernetes.io/docs/concepts/storage/ephemeral-volumes/#generic-ephemeral-volumes (see below for nested schema)fc(Block List, Max: 1) Represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. (see below for nested schema)flex_volume(Block List, Max: 1) Represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future. (see below for nested schema)flocker(Block List, Max: 1) Represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running (see below for nested schema)gce_persistent_disk(Block List, Max: 1) Represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk (see below for nested schema)git_repo(Block List, Max: 1) GitRepo represents a git repository at a particular revision. (see below for nested schema)glusterfs(Block List, Max: 1) Represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md (see below for nested schema)host_path(Block List, Max: 1) Represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath (see below for nested schema)iscsi(Block List, Max: 1) Represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. (see below for nested schema)local(Block List, Max: 1) Represents a mounted local storage device such as a disk, partition or directory. Local volumes can only be used as a statically created PersistentVolume. Dynamic provisioning is not supported yet. More info: https://kubernetes.io/docs/concepts/storage/volumes#local (see below for nested schema)name(String) Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#namesnfs(Block List, Max: 1) Represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs (see below for nested schema)persistent_volume_claim(Block List, Max: 1) The specification of a persistent volume. (see below for nested schema)photon_persistent_disk(Block List, Max: 1) Represents a PhotonController persistent disk attached and mounted on kubelets host machine (see below for nested schema)projected(Block List) Projected represents a single volume that projects several volume sources into the same directory. More info: https://kubernetes.io/docs/concepts/storage/volumes/#projected (see below for nested schema)quobyte(Block List, Max: 1) Quobyte represents a Quobyte mount on the host that shares a pod's lifetime (see below for nested schema)rbd(Block List, Max: 1) Represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md (see below for nested schema)secret(Block List, Max: 1) Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secrets (see below for nested schema)vsphere_volume(Block List, Max: 1) Represents a vSphere volume attached and mounted on kubelets host machine (see below for nested schema)
Required:
volume_id(String) Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
Optional:
fs_type(String) Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstorepartition(Number) The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).read_only(Boolean) Whether to set the read-only property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
Required:
caching_mode(String) Host Caching mode: None, Read Only, Read Write.data_disk_uri(String) The URI the data disk in the blob storagedisk_name(String) The Name of the data disk in the blob storage
Optional:
fs_type(String) Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.kind(String) The type for the data disk. Expected values: Shared, Dedicated, Managed. Defaults to Sharedread_only(Boolean) Whether to force the read-only setting in VolumeMounts. Defaults to false (read/write).
Required:
secret_name(String) The name of secret that contains Azure Storage Account Name and Keyshare_name(String) Share Name
Optional:
read_only(Boolean) Whether to force the read-only setting in VolumeMounts. Defaults to false (read/write).secret_namespace(String) The namespace of the secret that contains Azure Storage Account Name and Key. For Kubernetes up to 1.18.x the default is the same as the Pod. For Kubernetes 1.19.x and later the default is "default" namespace.
Required:
monitors(Set of String) Monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
Optional:
path(String) Used as the mounted root, rather than the full Ceph tree, default is /read_only(Boolean) Whether to force the read-only setting in VolumeMounts. Defaults tofalse(read/write). More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-itsecret_file(String) The path to key ring for User, default is/etc/ceph/user.secret. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-itsecret_ref(Block List, Max: 1) Reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it (see below for nested schema)user(String) User is the rados user name, default is admin. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
Optional:
name(String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#namesnamespace(String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
Required:
volume_id(String) Volume ID used to identify the volume in Cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
Optional:
fs_type(String) Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.mdread_only(Boolean) Whether to force the read-only setting in VolumeMounts. Defaults to false (read/write). More info: https://examples.k8s.io/mysql-cinder-pd/README.md
Optional:
default_mode(String) Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.items(Block List) If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. (see below for nested schema)name(String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#namesoptional(Boolean) Optional: Specify whether the ConfigMap or its keys must be defined.
Optional:
key(String) The key to project.mode(String) Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.path(String) The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.
Required:
driver(String) the name of the volume driver to use. More info: https://kubernetes.io/docs/concepts/storage/volumes/#csi
Optional:
fs_type(String) Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.node_publish_secret_ref(Block List, Max: 1) A reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. (see below for nested schema)read_only(Boolean) Whether to set the read-only property in VolumeMounts to "true". If omitted, the default is "false". More info: https://kubernetes.io/docs/concepts/storage/volumes#csivolume_attributes(Map of String) Attributes of the volume to publish.
Optional:
name(String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
Optional:
default_mode(String) Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.items(Block List) If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'. (see below for nested schema)
Required:
field_ref(Block List, Min: 1, Max: 1) Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. (see below for nested schema)path(String) Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
Optional:
mode(String) Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.resource_field_ref(Block List, Max: 1) Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. (see below for nested schema)
Optional:
api_version(String) Version of the schema the FieldPath is written in terms of, defaults to "v1".field_path(String) Path of the field to select in the specified API version
Required:
container_name(String)resource(String) Resource to select
Optional:
divisor(String)
Optional:
medium(String) What type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be one of ["" "Memory" "HugePages" "HugePages-2Mi" "HugePages-1Gi"]. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydirsize_limit(String) Total amount of local storage required for this EmptyDir volume.
Required:
volume_claim_template(Block List, Min: 1, Max: 1) Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC. (see below for nested schema)
Required:
spec(Block List, Min: 1, Max: 1) The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here. (see below for nested schema)
Optional:
metadata(Block List, Max: 1) May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation. (see below for nested schema)
Required:
access_modes(Set of String) A set of the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modesresources(Block List, Min: 1, Max: 1) A list of the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources (see below for nested schema)
Optional:
selector(Block List, Max: 1) A label query over volumes to consider for binding. (see below for nested schema)storage_class_name(String) Name of the storage class requested by the claimvolume_mode(String) Defines what type of volume is required by the claim.volume_name(String) The binding reference to the PersistentVolume backing this claim.
Optional:
limits(Map of String) Map describing the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/requests(Map of String) Map describing the minimum amount of compute resources required. If this is omitted for a container, it defaults tolimitsif that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
Optional:
match_expressions(Block List) A list of label selector requirements. The requirements are ANDed. (see below for nested schema)match_labels(Map of String) A map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element ofmatch_expressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
Nested Schema for spec.template.spec.volume.ephemeral.volume_claim_template.spec.selector.match_expressions
Optional:
key(String) The label key that the selector applies to.operator(String) A key's relationship to a set of values. Valid operators ardIn,NotIn,ExistsandDoesNotExist.values(Set of String) An array of string values. If the operator isInorNotIn, the values array must be non-empty. If the operator isExistsorDoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Optional:
annotations(Map of String) An unstructured key value map stored with the persistent volume claim that may be used to store arbitrary metadata. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/labels(Map of String) Map of string keys and values that can be used to organize and categorize (scope and select) the persistent volume claim. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
Required:
lun(Number) FC target lun numbertarget_ww_ns(Set of String) FC target worldwide names (WWNs)
Optional:
fs_type(String) Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.read_only(Boolean) Whether to force the read-only setting in VolumeMounts. Defaults to false (read/write).
Required:
driver(String) Driver is the name of the driver to use for this volume.
Optional:
fs_type(String) Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.options(Map of String) Extra command options if any.read_only(Boolean) Whether to force the ReadOnly setting in VolumeMounts. Defaults to false (read/write).secret_ref(Block List, Max: 1) Reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. (see below for nested schema)
Optional:
name(String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#namesnamespace(String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
Optional:
dataset_name(String) Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecateddataset_uuid(String) UUID of the dataset. This is unique identifier of a Flocker dataset
Required:
pd_name(String) Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
Optional:
fs_type(String) Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdiskpartition(Number) The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdiskread_only(Boolean) Whether to force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
Optional:
directory(String) Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.repository(String) Repository URLrevision(String) Commit hash for the specified revision.
Required:
endpoints_name(String) The endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-podpath(String) The Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
Optional:
read_only(Boolean) Whether to force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
Optional:
path(String) Path of the directory on the host. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpathtype(String) Type for HostPath volume. Allowed values are "" (default), DirectoryOrCreate, Directory, FileOrCreate, File, Socket, CharDevice and BlockDevice
Required:
iqn(String) Target iSCSI Qualified Name.target_portal(String) iSCSI target portal. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).
Optional:
chap_auth_discovery(Boolean) Whether target supports iSCSI Discovery CHAP authentication.chap_auth_session(Boolean) Whether target supports iSCSI Session CHAP authentication.fs_type(String) Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsiinitiator_name(String) The custom iSCSI Initiator Name. If initiator_name is specified with iscsi_interface simultaneously, new iSCSI interfacetarget portal:volume namewill be created for the connection.iscsi_interface(String) iSCSI interface name that uses an iSCSI transport. Defaults to 'default' (tcp).lun(Number) iSCSI target lun number.portals(List of String) The iSCSI Target Portal List. The Portal is either an IP orip_addr:portif the port is other than default (typically TCP ports 860 and 3260).read_only(Boolean) Whether to force the read-only setting in VolumeMounts. Defaults to false.secret_ref(Block List, Max: 1) The CHAP Secret for iSCSI target and initiator authentication. Default is nil. More info: https://github.com/kubernetes/examples/tree/master/_archived/volumes/iscsi (see below for nested schema)
Optional:
name(String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
Optional:
path(String) Path of the directory on the host. More info: https://kubernetes.io/docs/concepts/storage/volumes#local
Required:
path(String) Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfsserver(String) Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
Optional:
read_only(Boolean) Whether to force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
Optional:
claim_name(String) ClaimName is the name of a PersistentVolumeClaim in the sameread_only(Boolean) Will force the ReadOnly setting in VolumeMounts.
Required:
pd_id(String) ID that identifies Photon Controller persistent disk
Optional:
fs_type(String) Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
Required:
sources(Block List, Min: 1) Source of the volume to project in the directory. (see below for nested schema)
Optional:
default_mode(String) Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
Optional:
config_map(Block List) ConfigMap represents a configMap that should populate this volume (see below for nested schema)downward_api(Block List, Max: 1) DownwardAPI represents downward API about the pod that should populate this volume (see below for nested schema)secret(Block List) Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secrets (see below for nested schema)service_account_token(Block List, Max: 1) A projected service account token volume (see below for nested schema)
Optional:
items(Block List) If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'. (see below for nested schema)name(String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#namesoptional(Boolean) Optional: Specify whether the ConfigMap or it's keys must be defined.
Optional:
key(String) The key to project.mode(String) Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.path(String) The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.
Optional:
items(Block List) Represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. (see below for nested schema)
Required:
path(String) Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
Optional:
field_ref(Block List, Max: 1) Selects a field of the pod: only annotations, labels, name and namespace are supported. (see below for nested schema)mode(String) Mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.resource_field_ref(Block List, Max: 1) Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. (see below for nested schema)
Optional:
api_version(String) Version of the schema the FieldPath is written in terms of, defaults to 'v1'.field_path(String) Path of the field to select in the specified API version
Required:
container_name(String)resource(String) Resource to select
Optional:
divisor(String)
Optional:
items(Block List) If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. (see below for nested schema)name(String) Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secretsoptional(Boolean) Optional: Specify whether the Secret or it's keys must be defined.
Optional:
key(String) The key to project.mode(String) Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.path(String) The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.
Required:
path(String) Path specifies a relative path to the mount point of the projected volume.
Optional:
audience(String) Audience is the intended audience of the tokenexpiration_seconds(Number) ExpirationSeconds is the expected duration of validity of the service account token. It defaults to 1 hour and must be at least 10 minutes (600 seconds).
Required:
registry(String) Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumesvolume(String) Volume is a string that references an already created Quobyte volume by name.
Optional:
group(String) Group to map volume access to Default is no groupread_only(Boolean) Whether to force the Quobyte volume to be mounted with read-only permissions. Defaults to false.user(String) User to map volume access to Defaults to serivceaccount user
Required:
ceph_monitors(Set of String) A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-itrbd_image(String) The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
Optional:
fs_type(String) Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbdkeyring(String) Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-itrados_user(String) The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-itrbd_pool(String) The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it.read_only(Boolean) Whether to force the read-only setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-itsecret_ref(Block List, Max: 1) Name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it (see below for nested schema)
Optional:
name(String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#namesnamespace(String) Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
Optional:
default_mode(String) Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.items(Block List) If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. (see below for nested schema)optional(Boolean) Optional: Specify whether the Secret or its keys must be defined.secret_name(String) Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secrets
Optional:
key(String) The key to project.mode(String) Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.path(String) The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.
Required:
volume_path(String) Path that identifies vSphere volume vmdk
Optional:
fs_type(String) Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
Optional:
match_expressions(Block List) A list of label selector requirements. The requirements are ANDed. (see below for nested schema)match_labels(Map of String) A map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element ofmatch_expressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
Optional:
key(String) The label key that the selector applies to.operator(String) A key's relationship to a set of values. Valid operators ardIn,NotIn,ExistsandDoesNotExist.values(Set of String) An array of string values. If the operator isInorNotIn, the values array must be non-empty. If the operator isExistsorDoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
Optional:
rolling_update(Block List, Max: 1) Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. (see below for nested schema)type(String) Type of deployment. Can be 'Recreate' or 'RollingUpdate'. Default is RollingUpdate.
Optional:
max_surge(String) The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods.max_unavailable(String) The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.
Optional:
create(String)delete(String)update(String)
resource "kubernetes_deployment" "example" {
metadata {
name = "terraform-example"
labels = {
test = "MyExampleApp"
}
}
spec {
replicas = 3
selector {
match_labels = {
test = "MyExampleApp"
}
}
template {
metadata {
labels = {
test = "MyExampleApp"
}
}
spec {
container {
image = "nginx:1.21.6"
name = "example"
resources {
limits = {
cpu = "0.5"
memory = "512Mi"
}
requests = {
cpu = "250m"
memory = "50Mi"
}
}
liveness_probe {
http_get {
path = "/"
port = 80
http_header {
name = "X-Custom-Header"
value = "Awesome"
}
}
initial_delay_seconds = 3
period_seconds = 3
}
}
}
}
}
}Deployment can be imported using the namespace and name, e.g.
$ terraform import kubernetes_deployment.example default/terraform-example