DaemonSet [apps/v1]
- 描述
- DaemonSet represents the configuration of a daemon set.
- 类型
object
规格
.spec
- 描述
- DaemonSetSpec is the specification of a daemon set.
- 类型
object- 必填
selectortemplate
.spec.selector
- 描述
- A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
- 类型
object
.spec.selector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.selector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.selector.matchExpressions[].values
- 描述
- 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. This array is replaced during a strategic merge patch.
- 类型
array
.spec.selector.matchExpressions[].values[]
- 类型
string
.spec.selector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.spec.template
- 描述
- PodTemplateSpec describes the data a pod should have when created from a template
- 类型
object
.spec.template.spec
- 描述
- PodSpec is a description of a pod.
- 类型
object- 必填
containers
.spec.template.spec.affinity
- 描述
- Affinity is a group of affinity scheduling rules.
- 类型
object
.spec.template.spec.affinity.nodeAffinity
- 描述
- Node affinity is a group of node affinity scheduling rules.
- 类型
object
.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution
- 描述
- 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.
- 类型
array
.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[]
- 描述
- An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
- 类型
object- 必填
weightpreference
.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference
- 描述
- A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.
- 类型
object
.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchExpressions
- 描述
- A list of node selector requirements by node's labels.
- 类型
array
.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchExpressions[]
- 描述
- A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchExpressions[].values
- 描述
- 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.
- 类型
array
.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchExpressions[].values[]
- 类型
string
.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchFields
- 描述
- A list of node selector requirements by node's fields.
- 类型
array
.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchFields[]
- 描述
- A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchFields[].values
- 描述
- 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.
- 类型
array
.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchFields[].values[]
- 类型
string
.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution
- 描述
- A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.
- 类型
object- 必填
nodeSelectorTerms
.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms
- 描述
- Required. A list of node selector terms. The terms are ORed.
- 类型
array
.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[]
- 描述
- A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.
- 类型
object
.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchExpressions
- 描述
- A list of node selector requirements by node's labels.
- 类型
array
.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchExpressions[]
- 描述
- A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchExpressions[].values
- 描述
- 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.
- 类型
array
.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchExpressions[].values[]
- 类型
string
.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchFields
- 描述
- A list of node selector requirements by node's fields.
- 类型
array
.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchFields[]
- 描述
- A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchFields[].values
- 描述
- 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.
- 类型
array
.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchFields[].values[]
- 类型
string
.spec.template.spec.affinity.podAffinity
- 描述
- Pod affinity is a group of inter pod affinity scheduling rules.
- 类型
object
.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution
- 描述
- 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 has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.
- 类型
array
.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[]
- 描述
- The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
- 类型
object- 必填
weightpodAffinityTerm
.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm
- 描述
- Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running
- 类型
object- 必填
topologyKey
.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector
- 描述
- A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
- 类型
object
.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[].values
- 描述
- 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. This array is replaced during a strategic merge patch.
- 类型
array
.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[].values[]
- 类型
string
.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.matchLabelKeys
- 描述
- MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
- 类型
array
.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.matchLabelKeys[]
- 类型
string
.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.mismatchLabelKeys
- 描述
- MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
- 类型
array
.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.mismatchLabelKeys[]
- 类型
string
.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector
- 描述
- A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
- 类型
object
.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[].values
- 描述
- 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. This array is replaced during a strategic merge patch.
- 类型
array
.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[].values[]
- 类型
string
.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaces
- 描述
- namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace".
- 类型
array
.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaces[]
- 类型
string
.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution
- 描述
- 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.
- 类型
array
.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[]
- 描述
- Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running
- 类型
object- 必填
topologyKey
.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector
- 描述
- A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
- 类型
object
.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[].values
- 描述
- 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. This array is replaced during a strategic merge patch.
- 类型
array
.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[].values[]
- 类型
string
.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].matchLabelKeys
- 描述
- MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
- 类型
array
.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].matchLabelKeys[]
- 类型
string
.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].mismatchLabelKeys
- 描述
- MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
- 类型
array
.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].mismatchLabelKeys[]
- 类型
string
.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector
- 描述
- A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
- 类型
object
.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[].values
- 描述
- 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. This array is replaced during a strategic merge patch.
- 类型
array
.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[].values[]
- 类型
string
.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaces
- 描述
- namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace".
- 类型
array
.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaces[]
- 类型
string
.spec.template.spec.affinity.podAntiAffinity
- 描述
- Pod anti affinity is a group of inter pod anti affinity scheduling rules.
- 类型
object
.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution
- 描述
- 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 has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.
- 类型
array
.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[]
- 描述
- The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
- 类型
object- 必填
weightpodAffinityTerm
.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm
- 描述
- Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running
- 类型
object- 必填
topologyKey
.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector
- 描述
- A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
- 类型
object
.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[].values
- 描述
- 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. This array is replaced during a strategic merge patch.
- 类型
array
.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[].values[]
- 类型
string
.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.matchLabelKeys
- 描述
- MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
- 类型
array
.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.matchLabelKeys[]
- 类型
string
.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.mismatchLabelKeys
- 描述
- MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
- 类型
array
.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.mismatchLabelKeys[]
- 类型
string
.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector
- 描述
- A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
- 类型
object
.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[].values
- 描述
- 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. This array is replaced during a strategic merge patch.
- 类型
array
.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[].values[]
- 类型
string
.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaces
- 描述
- namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace".
- 类型
array
.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaces[]
- 类型
string
.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution
- 描述
- If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-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.
- 类型
array
.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[]
- 描述
- Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running
- 类型
object- 必填
topologyKey
.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector
- 描述
- A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
- 类型
object
.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[].values
- 描述
- 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. This array is replaced during a strategic merge patch.
- 类型
array
.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[].values[]
- 类型
string
.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].matchLabelKeys
- 描述
- MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
- 类型
array
.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].matchLabelKeys[]
- 类型
string
.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].mismatchLabelKeys
- 描述
- MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
- 类型
array
.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].mismatchLabelKeys[]
- 类型
string
.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector
- 描述
- A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
- 类型
object
.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[].values
- 描述
- 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. This array is replaced during a strategic merge patch.
- 类型
array
.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[].values[]
- 类型
string
.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaces
- 描述
- namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace".
- 类型
array
.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaces[]
- 类型
string
.spec.template.spec.containers
- 描述
- 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.
- 类型
array
.spec.template.spec.containers[]
- 描述
- A single application container that you want to run within a pod.
- 类型
object- 必填
name
.spec.template.spec.containers[].args
- 描述
- Arguments to the entrypoint. The container 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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(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
- 类型
array
.spec.template.spec.containers[].args[]
- 类型
string
.spec.template.spec.containers[].command
- 描述
- Entrypoint array. Not executed within a shell. The container 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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(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
- 类型
array
.spec.template.spec.containers[].command[]
- 类型
string
.spec.template.spec.containers[].env
- 描述
- List of environment variables to set in the container. Cannot be updated.
- 类型
array
.spec.template.spec.containers[].env[]
- 描述
- EnvVar represents an environment variable present in a Container.
- 类型
object- 必填
name
.spec.template.spec.containers[].env[].valueFrom
- 描述
- EnvVarSource represents a source for the value of an EnvVar.
- 类型
object
.spec.template.spec.containers[].env[].valueFrom.configMapKeyRef
- 描述
- Selects a key from a ConfigMap.
- 类型
object- 必填
key
.spec.template.spec.containers[].env[].valueFrom.fieldRef
- 描述
- ObjectFieldSelector selects an APIVersioned field of an object.
- 类型
object- 必填
fieldPath
.spec.template.spec.containers[].env[].valueFrom.resourceFieldRef
- 描述
- ResourceFieldSelector represents container resources (cpu, memory) and their output format
- 类型
object- 必填
resource
.spec.template.spec.containers[].env[].valueFrom.secretKeyRef
- 描述
- SecretKeySelector selects a key of a Secret.
- 类型
object- 必填
key
.spec.template.spec.containers[].envFrom
- 描述
- 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.
- 类型
array
.spec.template.spec.containers[].envFrom[]
- 描述
- EnvFromSource represents the source of a set of ConfigMaps
- 类型
object
.spec.template.spec.containers[].envFrom[].configMapRef
- 描述
- ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.
- 类型
object
.spec.template.spec.containers[].envFrom[].secretRef
- 描述
- SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the key-value pairs as environment variables.
- 类型
object
.spec.template.spec.containers[].lifecycle
- 描述
- Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.
- 类型
object
.spec.template.spec.containers[].lifecycle.postStart
- 描述
- LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.
- 类型
object
.spec.template.spec.containers[].lifecycle.postStart.exec
- 描述
- ExecAction describes a "run in container" action.
- 类型
object
.spec.template.spec.containers[].lifecycle.postStart.exec.command
- 描述
- 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 ('|', etc) won't work. 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.
- 类型
array
.spec.template.spec.containers[].lifecycle.postStart.exec.command[]
- 类型
string
.spec.template.spec.containers[].lifecycle.postStart.httpGet
- 描述
- HTTPGetAction describes an action based on HTTP Get requests.
- 类型
object- 必填
port
.spec.template.spec.containers[].lifecycle.postStart.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.template.spec.containers[].lifecycle.postStart.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.template.spec.containers[].lifecycle.postStart.sleep
- 描述
- SleepAction describes a "sleep" action.
- 类型
object- 必填
seconds
.spec.template.spec.containers[].lifecycle.postStart.tcpSocket
- 描述
- TCPSocketAction describes an action based on opening a socket
- 类型
object- 必填
port
.spec.template.spec.containers[].lifecycle.preStop
- 描述
- LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.
- 类型
object
.spec.template.spec.containers[].lifecycle.preStop.exec
- 描述
- ExecAction describes a "run in container" action.
- 类型
object
.spec.template.spec.containers[].lifecycle.preStop.exec.command
- 描述
- 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 ('|', etc) won't work. 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.
- 类型
array
.spec.template.spec.containers[].lifecycle.preStop.exec.command[]
- 类型
string
.spec.template.spec.containers[].lifecycle.preStop.httpGet
- 描述
- HTTPGetAction describes an action based on HTTP Get requests.
- 类型
object- 必填
port
.spec.template.spec.containers[].lifecycle.preStop.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.template.spec.containers[].lifecycle.preStop.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.template.spec.containers[].lifecycle.preStop.sleep
- 描述
- SleepAction describes a "sleep" action.
- 类型
object- 必填
seconds
.spec.template.spec.containers[].lifecycle.preStop.tcpSocket
- 描述
- TCPSocketAction describes an action based on opening a socket
- 类型
object- 必填
port
.spec.template.spec.containers[].livenessProbe
- 描述
- Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
- 类型
object
.spec.template.spec.containers[].livenessProbe.exec
- 描述
- ExecAction describes a "run in container" action.
- 类型
object
.spec.template.spec.containers[].livenessProbe.exec.command
- 描述
- 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 ('|', etc) won't work. 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.
- 类型
array
.spec.template.spec.containers[].livenessProbe.exec.command[]
- 类型
string
.spec.template.spec.containers[].livenessProbe.grpc
- 描述
- GRPCAction specifies an action involving a GRPC service.
- 类型
object- 必填
port
.spec.template.spec.containers[].livenessProbe.httpGet
- 描述
- HTTPGetAction describes an action based on HTTP Get requests.
- 类型
object- 必填
port
.spec.template.spec.containers[].livenessProbe.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.template.spec.containers[].livenessProbe.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.template.spec.containers[].livenessProbe.tcpSocket
- 描述
- TCPSocketAction describes an action based on opening a socket
- 类型
object- 必填
port
.spec.template.spec.containers[].ports
- 描述
- List of ports to expose from the container. 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. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated.
- 类型
array
.spec.template.spec.containers[].ports[]
- 描述
- ContainerPort represents a network port in a single container.
- 类型
object- 必填
containerPort
.spec.template.spec.containers[].readinessProbe
- 描述
- Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
- 类型
object
.spec.template.spec.containers[].readinessProbe.exec
- 描述
- ExecAction describes a "run in container" action.
- 类型
object
.spec.template.spec.containers[].readinessProbe.exec.command
- 描述
- 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 ('|', etc) won't work. 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.
- 类型
array
.spec.template.spec.containers[].readinessProbe.exec.command[]
- 类型
string
.spec.template.spec.containers[].readinessProbe.grpc
- 描述
- GRPCAction specifies an action involving a GRPC service.
- 类型
object- 必填
port
.spec.template.spec.containers[].readinessProbe.httpGet
- 描述
- HTTPGetAction describes an action based on HTTP Get requests.
- 类型
object- 必填
port
.spec.template.spec.containers[].readinessProbe.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.template.spec.containers[].readinessProbe.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.template.spec.containers[].readinessProbe.tcpSocket
- 描述
- TCPSocketAction describes an action based on opening a socket
- 类型
object- 必填
port
.spec.template.spec.containers[].resizePolicy
- 描述
- Resources resize policy for the container.
- 类型
array
.spec.template.spec.containers[].resizePolicy[]
- 描述
- ContainerResizePolicy represents resource resize policy for the container.
- 类型
object- 必填
resourceNamerestartPolicy
.spec.template.spec.containers[].resources
- 描述
- ResourceRequirements describes the compute resource requirements.
- 类型
object
.spec.template.spec.containers[].resources.claims
- 描述
- Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers.
- 类型
array
.spec.template.spec.containers[].resources.claims[]
- 描述
- ResourceClaim references one entry in PodSpec.ResourceClaims.
- 类型
object- 必填
name
.spec.template.spec.containers[].resources.limits
- 描述
- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.template.spec.containers[].resources.requests
- 描述
- 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. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.template.spec.containers[].securityContext
- 描述
- SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.
- 类型
object
.spec.template.spec.containers[].securityContext.appArmorProfile
- 描述
- AppArmorProfile defines a pod or container's AppArmor settings.
- 类型
object- 必填
type
.spec.template.spec.containers[].securityContext.capabilities
- 描述
- Adds and removes POSIX capabilities from running containers.
- 类型
object
.spec.template.spec.containers[].securityContext.capabilities.add
- 描述
- Added capabilities
- 类型
array
.spec.template.spec.containers[].securityContext.capabilities.add[]
- 类型
string
.spec.template.spec.containers[].securityContext.capabilities.drop
- 描述
- Removed capabilities
- 类型
array
.spec.template.spec.containers[].securityContext.capabilities.drop[]
- 类型
string
.spec.template.spec.containers[].securityContext.seLinuxOptions
- 描述
- SELinuxOptions are the labels to be applied to the container
- 类型
object
.spec.template.spec.containers[].securityContext.seccompProfile
- 描述
- SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.
- 类型
object- 必填
type
.spec.template.spec.containers[].securityContext.windowsOptions
- 描述
- WindowsSecurityContextOptions contain Windows-specific options and credentials.
- 类型
object
.spec.template.spec.containers[].startupProbe
- 描述
- Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
- 类型
object
.spec.template.spec.containers[].startupProbe.exec
- 描述
- ExecAction describes a "run in container" action.
- 类型
object
.spec.template.spec.containers[].startupProbe.exec.command
- 描述
- 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 ('|', etc) won't work. 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.
- 类型
array
.spec.template.spec.containers[].startupProbe.exec.command[]
- 类型
string
.spec.template.spec.containers[].startupProbe.grpc
- 描述
- GRPCAction specifies an action involving a GRPC service.
- 类型
object- 必填
port
.spec.template.spec.containers[].startupProbe.httpGet
- 描述
- HTTPGetAction describes an action based on HTTP Get requests.
- 类型
object- 必填
port
.spec.template.spec.containers[].startupProbe.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.template.spec.containers[].startupProbe.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.template.spec.containers[].startupProbe.tcpSocket
- 描述
- TCPSocketAction describes an action based on opening a socket
- 类型
object- 必填
port
.spec.template.spec.containers[].volumeDevices
- 描述
- volumeDevices is the list of block devices to be used by the container.
- 类型
array
.spec.template.spec.containers[].volumeDevices[]
- 描述
- volumeDevice describes a mapping of a raw block device within a container.
- 类型
object- 必填
namedevicePath
.spec.template.spec.containers[].volumeMounts
- 描述
- Pod volumes to mount into the container's filesystem. Cannot be updated.
- 类型
array
.spec.template.spec.containers[].volumeMounts[]
- 描述
- VolumeMount describes a mounting of a Volume within a container.
- 类型
object- 必填
namemountPath
.spec.template.spec.dnsConfig
- 描述
- PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.
- 类型
object
.spec.template.spec.dnsConfig.nameservers
- 描述
- A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.
- 类型
array
.spec.template.spec.dnsConfig.nameservers[]
- 类型
string
.spec.template.spec.dnsConfig.options
- 描述
- 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.
- 类型
array
.spec.template.spec.dnsConfig.options[]
- 描述
- PodDNSConfigOption defines DNS resolver options of a pod.
- 类型
object
.spec.template.spec.dnsConfig.searches
- 描述
- 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.
- 类型
array
.spec.template.spec.dnsConfig.searches[]
- 类型
string
.spec.template.spec.ephemeralContainers
- 描述
- List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
- 类型
array
.spec.template.spec.ephemeralContainers[]
- 描述
- An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation. To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.
- 类型
object- 必填
name
.spec.template.spec.ephemeralContainers[].args
- 描述
- Arguments to the entrypoint. The 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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(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
- 类型
array
.spec.template.spec.ephemeralContainers[].args[]
- 类型
string
.spec.template.spec.ephemeralContainers[].command
- 描述
- Entrypoint array. Not executed within a shell. The 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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(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
- 类型
array
.spec.template.spec.ephemeralContainers[].command[]
- 类型
string
.spec.template.spec.ephemeralContainers[].env
- 描述
- List of environment variables to set in the container. Cannot be updated.
- 类型
array
.spec.template.spec.ephemeralContainers[].env[]
- 描述
- EnvVar represents an environment variable present in a Container.
- 类型
object- 必填
name
.spec.template.spec.ephemeralContainers[].env[].valueFrom
- 描述
- EnvVarSource represents a source for the value of an EnvVar.
- 类型
object
.spec.template.spec.ephemeralContainers[].env[].valueFrom.configMapKeyRef
- 描述
- Selects a key from a ConfigMap.
- 类型
object- 必填
key
.spec.template.spec.ephemeralContainers[].env[].valueFrom.fieldRef
- 描述
- ObjectFieldSelector selects an APIVersioned field of an object.
- 类型
object- 必填
fieldPath
.spec.template.spec.ephemeralContainers[].env[].valueFrom.resourceFieldRef
- 描述
- ResourceFieldSelector represents container resources (cpu, memory) and their output format
- 类型
object- 必填
resource
.spec.template.spec.ephemeralContainers[].env[].valueFrom.secretKeyRef
- 描述
- SecretKeySelector selects a key of a Secret.
- 类型
object- 必填
key
.spec.template.spec.ephemeralContainers[].envFrom
- 描述
- 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.
- 类型
array
.spec.template.spec.ephemeralContainers[].envFrom[]
- 描述
- EnvFromSource represents the source of a set of ConfigMaps
- 类型
object
.spec.template.spec.ephemeralContainers[].envFrom[].configMapRef
- 描述
- ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.
- 类型
object
.spec.template.spec.ephemeralContainers[].envFrom[].secretRef
- 描述
- SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the key-value pairs as environment variables.
- 类型
object
.spec.template.spec.ephemeralContainers[].lifecycle
- 描述
- Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.
- 类型
object
.spec.template.spec.ephemeralContainers[].lifecycle.postStart
- 描述
- LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.
- 类型
object
.spec.template.spec.ephemeralContainers[].lifecycle.postStart.exec
- 描述
- ExecAction describes a "run in container" action.
- 类型
object
.spec.template.spec.ephemeralContainers[].lifecycle.postStart.exec.command
- 描述
- 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 ('|', etc) won't work. 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.
- 类型
array
.spec.template.spec.ephemeralContainers[].lifecycle.postStart.exec.command[]
- 类型
string
.spec.template.spec.ephemeralContainers[].lifecycle.postStart.httpGet
- 描述
- HTTPGetAction describes an action based on HTTP Get requests.
- 类型
object- 必填
port
.spec.template.spec.ephemeralContainers[].lifecycle.postStart.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.template.spec.ephemeralContainers[].lifecycle.postStart.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.template.spec.ephemeralContainers[].lifecycle.postStart.sleep
- 描述
- SleepAction describes a "sleep" action.
- 类型
object- 必填
seconds
.spec.template.spec.ephemeralContainers[].lifecycle.postStart.tcpSocket
- 描述
- TCPSocketAction describes an action based on opening a socket
- 类型
object- 必填
port
.spec.template.spec.ephemeralContainers[].lifecycle.preStop
- 描述
- LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.
- 类型
object
.spec.template.spec.ephemeralContainers[].lifecycle.preStop.exec
- 描述
- ExecAction describes a "run in container" action.
- 类型
object
.spec.template.spec.ephemeralContainers[].lifecycle.preStop.exec.command
- 描述
- 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 ('|', etc) won't work. 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.
- 类型
array
.spec.template.spec.ephemeralContainers[].lifecycle.preStop.exec.command[]
- 类型
string
.spec.template.spec.ephemeralContainers[].lifecycle.preStop.httpGet
- 描述
- HTTPGetAction describes an action based on HTTP Get requests.
- 类型
object- 必填
port
.spec.template.spec.ephemeralContainers[].lifecycle.preStop.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.template.spec.ephemeralContainers[].lifecycle.preStop.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.template.spec.ephemeralContainers[].lifecycle.preStop.sleep
- 描述
- SleepAction describes a "sleep" action.
- 类型
object- 必填
seconds
.spec.template.spec.ephemeralContainers[].lifecycle.preStop.tcpSocket
- 描述
- TCPSocketAction describes an action based on opening a socket
- 类型
object- 必填
port
.spec.template.spec.ephemeralContainers[].livenessProbe
- 描述
- Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
- 类型
object
.spec.template.spec.ephemeralContainers[].livenessProbe.exec
- 描述
- ExecAction describes a "run in container" action.
- 类型
object
.spec.template.spec.ephemeralContainers[].livenessProbe.exec.command
- 描述
- 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 ('|', etc) won't work. 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.
- 类型
array
.spec.template.spec.ephemeralContainers[].livenessProbe.exec.command[]
- 类型
string
.spec.template.spec.ephemeralContainers[].livenessProbe.grpc
- 描述
- GRPCAction specifies an action involving a GRPC service.
- 类型
object- 必填
port
.spec.template.spec.ephemeralContainers[].livenessProbe.httpGet
- 描述
- HTTPGetAction describes an action based on HTTP Get requests.
- 类型
object- 必填
port
.spec.template.spec.ephemeralContainers[].livenessProbe.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.template.spec.ephemeralContainers[].livenessProbe.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.template.spec.ephemeralContainers[].livenessProbe.tcpSocket
- 描述
- TCPSocketAction describes an action based on opening a socket
- 类型
object- 必填
port
.spec.template.spec.ephemeralContainers[].ports
- 描述
- Ports are not allowed for ephemeral containers.
- 类型
array
.spec.template.spec.ephemeralContainers[].ports[]
- 描述
- ContainerPort represents a network port in a single container.
- 类型
object- 必填
containerPort
.spec.template.spec.ephemeralContainers[].readinessProbe
- 描述
- Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
- 类型
object
.spec.template.spec.ephemeralContainers[].readinessProbe.exec
- 描述
- ExecAction describes a "run in container" action.
- 类型
object
.spec.template.spec.ephemeralContainers[].readinessProbe.exec.command
- 描述
- 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 ('|', etc) won't work. 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.
- 类型
array
.spec.template.spec.ephemeralContainers[].readinessProbe.exec.command[]
- 类型
string
.spec.template.spec.ephemeralContainers[].readinessProbe.grpc
- 描述
- GRPCAction specifies an action involving a GRPC service.
- 类型
object- 必填
port
.spec.template.spec.ephemeralContainers[].readinessProbe.httpGet
- 描述
- HTTPGetAction describes an action based on HTTP Get requests.
- 类型
object- 必填
port
.spec.template.spec.ephemeralContainers[].readinessProbe.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.template.spec.ephemeralContainers[].readinessProbe.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.template.spec.ephemeralContainers[].readinessProbe.tcpSocket
- 描述
- TCPSocketAction describes an action based on opening a socket
- 类型
object- 必填
port
.spec.template.spec.ephemeralContainers[].resizePolicy
- 描述
- Resources resize policy for the container.
- 类型
array
.spec.template.spec.ephemeralContainers[].resizePolicy[]
- 描述
- ContainerResizePolicy represents resource resize policy for the container.
- 类型
object- 必填
resourceNamerestartPolicy
.spec.template.spec.ephemeralContainers[].resources
- 描述
- ResourceRequirements describes the compute resource requirements.
- 类型
object
.spec.template.spec.ephemeralContainers[].resources.claims
- 描述
- Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers.
- 类型
array
.spec.template.spec.ephemeralContainers[].resources.claims[]
- 描述
- ResourceClaim references one entry in PodSpec.ResourceClaims.
- 类型
object- 必填
name
.spec.template.spec.ephemeralContainers[].resources.limits
- 描述
- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.template.spec.ephemeralContainers[].resources.requests
- 描述
- 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. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.template.spec.ephemeralContainers[].securityContext
- 描述
- SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.
- 类型
object
.spec.template.spec.ephemeralContainers[].securityContext.appArmorProfile
- 描述
- AppArmorProfile defines a pod or container's AppArmor settings.
- 类型
object- 必填
type
.spec.template.spec.ephemeralContainers[].securityContext.capabilities
- 描述
- Adds and removes POSIX capabilities from running containers.
- 类型
object
.spec.template.spec.ephemeralContainers[].securityContext.capabilities.add
- 描述
- Added capabilities
- 类型
array
.spec.template.spec.ephemeralContainers[].securityContext.capabilities.add[]
- 类型
string
.spec.template.spec.ephemeralContainers[].securityContext.capabilities.drop
- 描述
- Removed capabilities
- 类型
array
.spec.template.spec.ephemeralContainers[].securityContext.capabilities.drop[]
- 类型
string
.spec.template.spec.ephemeralContainers[].securityContext.seLinuxOptions
- 描述
- SELinuxOptions are the labels to be applied to the container
- 类型
object
.spec.template.spec.ephemeralContainers[].securityContext.seccompProfile
- 描述
- SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.
- 类型
object- 必填
type
.spec.template.spec.ephemeralContainers[].securityContext.windowsOptions
- 描述
- WindowsSecurityContextOptions contain Windows-specific options and credentials.
- 类型
object
.spec.template.spec.ephemeralContainers[].startupProbe
- 描述
- Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
- 类型
object
.spec.template.spec.ephemeralContainers[].startupProbe.exec
- 描述
- ExecAction describes a "run in container" action.
- 类型
object
.spec.template.spec.ephemeralContainers[].startupProbe.exec.command
- 描述
- 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 ('|', etc) won't work. 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.
- 类型
array
.spec.template.spec.ephemeralContainers[].startupProbe.exec.command[]
- 类型
string
.spec.template.spec.ephemeralContainers[].startupProbe.grpc
- 描述
- GRPCAction specifies an action involving a GRPC service.
- 类型
object- 必填
port
.spec.template.spec.ephemeralContainers[].startupProbe.httpGet
- 描述
- HTTPGetAction describes an action based on HTTP Get requests.
- 类型
object- 必填
port
.spec.template.spec.ephemeralContainers[].startupProbe.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.template.spec.ephemeralContainers[].startupProbe.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.template.spec.ephemeralContainers[].startupProbe.tcpSocket
- 描述
- TCPSocketAction describes an action based on opening a socket
- 类型
object- 必填
port
.spec.template.spec.ephemeralContainers[].volumeDevices
- 描述
- volumeDevices is the list of block devices to be used by the container.
- 类型
array
.spec.template.spec.ephemeralContainers[].volumeDevices[]
- 描述
- volumeDevice describes a mapping of a raw block device within a container.
- 类型
object- 必填
namedevicePath
.spec.template.spec.ephemeralContainers[].volumeMounts
- 描述
- Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.
- 类型
array
.spec.template.spec.ephemeralContainers[].volumeMounts[]
- 描述
- VolumeMount describes a mounting of a Volume within a container.
- 类型
object- 必填
namemountPath
.spec.template.spec.hostAliases
- 描述
- HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.
- 类型
array
.spec.template.spec.hostAliases[]
- 描述
- HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.
- 类型
object- 必填
ip
.spec.template.spec.hostAliases[].hostnames
- 描述
- Hostnames for the above IP address.
- 类型
array
.spec.template.spec.hostAliases[].hostnames[]
- 类型
string
.spec.template.spec.imagePullSecrets
- 描述
- 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. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
- 类型
array
.spec.template.spec.imagePullSecrets[]
- 描述
- LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
- 类型
object
.spec.template.spec.initContainers
- 描述
- List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
- 类型
array
.spec.template.spec.initContainers[]
- 描述
- A single application container that you want to run within a pod.
- 类型
object- 必填
name
.spec.template.spec.initContainers[].args
- 描述
- Arguments to the entrypoint. The container 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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(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
- 类型
array
.spec.template.spec.initContainers[].args[]
- 类型
string
.spec.template.spec.initContainers[].command
- 描述
- Entrypoint array. Not executed within a shell. The container 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. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(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
- 类型
array
.spec.template.spec.initContainers[].command[]
- 类型
string
.spec.template.spec.initContainers[].env
- 描述
- List of environment variables to set in the container. Cannot be updated.
- 类型
array
.spec.template.spec.initContainers[].env[]
- 描述
- EnvVar represents an environment variable present in a Container.
- 类型
object- 必填
name
.spec.template.spec.initContainers[].env[].valueFrom
- 描述
- EnvVarSource represents a source for the value of an EnvVar.
- 类型
object
.spec.template.spec.initContainers[].env[].valueFrom.configMapKeyRef
- 描述
- Selects a key from a ConfigMap.
- 类型
object- 必填
key
.spec.template.spec.initContainers[].env[].valueFrom.fieldRef
- 描述
- ObjectFieldSelector selects an APIVersioned field of an object.
- 类型
object- 必填
fieldPath
.spec.template.spec.initContainers[].env[].valueFrom.resourceFieldRef
- 描述
- ResourceFieldSelector represents container resources (cpu, memory) and their output format
- 类型
object- 必填
resource
.spec.template.spec.initContainers[].env[].valueFrom.secretKeyRef
- 描述
- SecretKeySelector selects a key of a Secret.
- 类型
object- 必填
key
.spec.template.spec.initContainers[].envFrom
- 描述
- 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.
- 类型
array
.spec.template.spec.initContainers[].envFrom[]
- 描述
- EnvFromSource represents the source of a set of ConfigMaps
- 类型
object
.spec.template.spec.initContainers[].envFrom[].configMapRef
- 描述
- ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.
- 类型
object
.spec.template.spec.initContainers[].envFrom[].secretRef
- 描述
- SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the key-value pairs as environment variables.
- 类型
object
.spec.template.spec.initContainers[].lifecycle
- 描述
- Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.
- 类型
object
.spec.template.spec.initContainers[].lifecycle.postStart
- 描述
- LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.
- 类型
object
.spec.template.spec.initContainers[].lifecycle.postStart.exec
- 描述
- ExecAction describes a "run in container" action.
- 类型
object
.spec.template.spec.initContainers[].lifecycle.postStart.exec.command
- 描述
- 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 ('|', etc) won't work. 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.
- 类型
array
.spec.template.spec.initContainers[].lifecycle.postStart.exec.command[]
- 类型
string
.spec.template.spec.initContainers[].lifecycle.postStart.httpGet
- 描述
- HTTPGetAction describes an action based on HTTP Get requests.
- 类型
object- 必填
port
.spec.template.spec.initContainers[].lifecycle.postStart.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.template.spec.initContainers[].lifecycle.postStart.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.template.spec.initContainers[].lifecycle.postStart.sleep
- 描述
- SleepAction describes a "sleep" action.
- 类型
object- 必填
seconds
.spec.template.spec.initContainers[].lifecycle.postStart.tcpSocket
- 描述
- TCPSocketAction describes an action based on opening a socket
- 类型
object- 必填
port
.spec.template.spec.initContainers[].lifecycle.preStop
- 描述
- LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.
- 类型
object
.spec.template.spec.initContainers[].lifecycle.preStop.exec
- 描述
- ExecAction describes a "run in container" action.
- 类型
object
.spec.template.spec.initContainers[].lifecycle.preStop.exec.command
- 描述
- 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 ('|', etc) won't work. 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.
- 类型
array
.spec.template.spec.initContainers[].lifecycle.preStop.exec.command[]
- 类型
string
.spec.template.spec.initContainers[].lifecycle.preStop.httpGet
- 描述
- HTTPGetAction describes an action based on HTTP Get requests.
- 类型
object- 必填
port
.spec.template.spec.initContainers[].lifecycle.preStop.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.template.spec.initContainers[].lifecycle.preStop.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.template.spec.initContainers[].lifecycle.preStop.sleep
- 描述
- SleepAction describes a "sleep" action.
- 类型
object- 必填
seconds
.spec.template.spec.initContainers[].lifecycle.preStop.tcpSocket
- 描述
- TCPSocketAction describes an action based on opening a socket
- 类型
object- 必填
port
.spec.template.spec.initContainers[].livenessProbe
- 描述
- Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
- 类型
object
.spec.template.spec.initContainers[].livenessProbe.exec
- 描述
- ExecAction describes a "run in container" action.
- 类型
object
.spec.template.spec.initContainers[].livenessProbe.exec.command
- 描述
- 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 ('|', etc) won't work. 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.
- 类型
array
.spec.template.spec.initContainers[].livenessProbe.exec.command[]
- 类型
string
.spec.template.spec.initContainers[].livenessProbe.grpc
- 描述
- GRPCAction specifies an action involving a GRPC service.
- 类型
object- 必填
port
.spec.template.spec.initContainers[].livenessProbe.httpGet
- 描述
- HTTPGetAction describes an action based on HTTP Get requests.
- 类型
object- 必填
port
.spec.template.spec.initContainers[].livenessProbe.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.template.spec.initContainers[].livenessProbe.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.template.spec.initContainers[].livenessProbe.tcpSocket
- 描述
- TCPSocketAction describes an action based on opening a socket
- 类型
object- 必填
port
.spec.template.spec.initContainers[].ports
- 描述
- List of ports to expose from the container. 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. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated.
- 类型
array
.spec.template.spec.initContainers[].ports[]
- 描述
- ContainerPort represents a network port in a single container.
- 类型
object- 必填
containerPort
.spec.template.spec.initContainers[].readinessProbe
- 描述
- Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
- 类型
object
.spec.template.spec.initContainers[].readinessProbe.exec
- 描述
- ExecAction describes a "run in container" action.
- 类型
object
.spec.template.spec.initContainers[].readinessProbe.exec.command
- 描述
- 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 ('|', etc) won't work. 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.
- 类型
array
.spec.template.spec.initContainers[].readinessProbe.exec.command[]
- 类型
string
.spec.template.spec.initContainers[].readinessProbe.grpc
- 描述
- GRPCAction specifies an action involving a GRPC service.
- 类型
object- 必填
port
.spec.template.spec.initContainers[].readinessProbe.httpGet
- 描述
- HTTPGetAction describes an action based on HTTP Get requests.
- 类型
object- 必填
port
.spec.template.spec.initContainers[].readinessProbe.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.template.spec.initContainers[].readinessProbe.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.template.spec.initContainers[].readinessProbe.tcpSocket
- 描述
- TCPSocketAction describes an action based on opening a socket
- 类型
object- 必填
port
.spec.template.spec.initContainers[].resizePolicy
- 描述
- Resources resize policy for the container.
- 类型
array
.spec.template.spec.initContainers[].resizePolicy[]
- 描述
- ContainerResizePolicy represents resource resize policy for the container.
- 类型
object- 必填
resourceNamerestartPolicy
.spec.template.spec.initContainers[].resources
- 描述
- ResourceRequirements describes the compute resource requirements.
- 类型
object
.spec.template.spec.initContainers[].resources.claims
- 描述
- Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers.
- 类型
array
.spec.template.spec.initContainers[].resources.claims[]
- 描述
- ResourceClaim references one entry in PodSpec.ResourceClaims.
- 类型
object- 必填
name
.spec.template.spec.initContainers[].resources.limits
- 描述
- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.template.spec.initContainers[].resources.requests
- 描述
- 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. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.template.spec.initContainers[].securityContext
- 描述
- SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.
- 类型
object
.spec.template.spec.initContainers[].securityContext.appArmorProfile
- 描述
- AppArmorProfile defines a pod or container's AppArmor settings.
- 类型
object- 必填
type
.spec.template.spec.initContainers[].securityContext.capabilities
- 描述
- Adds and removes POSIX capabilities from running containers.
- 类型
object
.spec.template.spec.initContainers[].securityContext.capabilities.add
- 描述
- Added capabilities
- 类型
array
.spec.template.spec.initContainers[].securityContext.capabilities.add[]
- 类型
string
.spec.template.spec.initContainers[].securityContext.capabilities.drop
- 描述
- Removed capabilities
- 类型
array
.spec.template.spec.initContainers[].securityContext.capabilities.drop[]
- 类型
string
.spec.template.spec.initContainers[].securityContext.seLinuxOptions
- 描述
- SELinuxOptions are the labels to be applied to the container
- 类型
object
.spec.template.spec.initContainers[].securityContext.seccompProfile
- 描述
- SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.
- 类型
object- 必填
type
.spec.template.spec.initContainers[].securityContext.windowsOptions
- 描述
- WindowsSecurityContextOptions contain Windows-specific options and credentials.
- 类型
object
.spec.template.spec.initContainers[].startupProbe
- 描述
- Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
- 类型
object
.spec.template.spec.initContainers[].startupProbe.exec
- 描述
- ExecAction describes a "run in container" action.
- 类型
object
.spec.template.spec.initContainers[].startupProbe.exec.command
- 描述
- 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 ('|', etc) won't work. 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.
- 类型
array
.spec.template.spec.initContainers[].startupProbe.exec.command[]
- 类型
string
.spec.template.spec.initContainers[].startupProbe.grpc
- 描述
- GRPCAction specifies an action involving a GRPC service.
- 类型
object- 必填
port
.spec.template.spec.initContainers[].startupProbe.httpGet
- 描述
- HTTPGetAction describes an action based on HTTP Get requests.
- 类型
object- 必填
port
.spec.template.spec.initContainers[].startupProbe.httpGet.httpHeaders
- 描述
- Custom headers to set in the request. HTTP allows repeated headers.
- 类型
array
.spec.template.spec.initContainers[].startupProbe.httpGet.httpHeaders[]
- 描述
- HTTPHeader describes a custom header to be used in HTTP probes
- 类型
object- 必填
namevalue
.spec.template.spec.initContainers[].startupProbe.tcpSocket
- 描述
- TCPSocketAction describes an action based on opening a socket
- 类型
object- 必填
port
.spec.template.spec.initContainers[].volumeDevices
- 描述
- volumeDevices is the list of block devices to be used by the container.
- 类型
array
.spec.template.spec.initContainers[].volumeDevices[]
- 描述
- volumeDevice describes a mapping of a raw block device within a container.
- 类型
object- 必填
namedevicePath
.spec.template.spec.initContainers[].volumeMounts
- 描述
- Pod volumes to mount into the container's filesystem. Cannot be updated.
- 类型
array
.spec.template.spec.initContainers[].volumeMounts[]
- 描述
- VolumeMount describes a mounting of a Volume within a container.
- 类型
object- 必填
namemountPath
.spec.template.spec.nodeSelector
- 描述
- 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/
- 类型
object
.spec.template.spec.os
- 描述
- PodOS defines the OS parameters of a pod.
- 类型
object- 必填
name
.spec.template.spec.overhead
- 描述
- Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
- 类型
object
.spec.template.spec.readinessGates
- 描述
- 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/580-pod-readiness-gates
- 类型
array
.spec.template.spec.readinessGates[]
- 描述
- PodReadinessGate contains the reference to a pod condition
- 类型
object- 必填
conditionType
.spec.template.spec.resourceClaims
- 描述
- ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable.
- 类型
array
.spec.template.spec.resourceClaims[]
- 描述
- PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.
- 类型
object- 必填
name
.spec.template.spec.resources
- 描述
- ResourceRequirements describes the compute resource requirements.
- 类型
object
.spec.template.spec.resources.claims
- 描述
- Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers.
- 类型
array
.spec.template.spec.resources.claims[]
- 描述
- ResourceClaim references one entry in PodSpec.ResourceClaims.
- 类型
object- 必填
name
.spec.template.spec.resources.limits
- 描述
- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.template.spec.resources.requests
- 描述
- 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. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.template.spec.schedulingGates
- 描述
- SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards.
- 类型
array
.spec.template.spec.schedulingGates[]
- 描述
- PodSchedulingGate is associated to a Pod to guard its scheduling.
- 类型
object- 必填
name
.spec.template.spec.securityContext
- 描述
- PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.
- 类型
object
.spec.template.spec.securityContext.appArmorProfile
- 描述
- AppArmorProfile defines a pod or container's AppArmor settings.
- 类型
object- 必填
type
.spec.template.spec.securityContext.seLinuxOptions
- 描述
- SELinuxOptions are the labels to be applied to the container
- 类型
object
.spec.template.spec.securityContext.seccompProfile
- 描述
- SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.
- 类型
object- 必填
type
.spec.template.spec.securityContext.supplementalGroups
- 描述
- A list of groups applied to the first process run in each container, in addition to the container's primary GID and fsGroup (if specified). If the SupplementalGroupsPolicy feature is enabled, the supplementalGroupsPolicy field determines whether these are in addition to or instead of any group memberships defined in the container image. If unspecified, no additional groups are added, though group memberships defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows.
- 类型
array
.spec.template.spec.securityContext.supplementalGroups[]
- 类型
integer
.spec.template.spec.securityContext.sysctls
- 描述
- Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows.
- 类型
array
.spec.template.spec.securityContext.sysctls[]
- 描述
- Sysctl defines a kernel parameter to be set
- 类型
object- 必填
namevalue
.spec.template.spec.securityContext.windowsOptions
- 描述
- WindowsSecurityContextOptions contain Windows-specific options and credentials.
- 类型
object
.spec.template.spec.tolerations
- 描述
- If specified, the pod's tolerations.
- 类型
array
.spec.template.spec.tolerations[]
- 描述
- The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
- 类型
object
.spec.template.spec.topologySpreadConstraints
- 描述
- TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed.
- 类型
array
.spec.template.spec.topologySpreadConstraints[]
- 描述
- TopologySpreadConstraint specifies how to spread matching pods among the given topology.
- 类型
object- 必填
maxSkewtopologyKeywhenUnsatisfiable
.spec.template.spec.topologySpreadConstraints[].labelSelector
- 描述
- A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
- 类型
object
.spec.template.spec.topologySpreadConstraints[].labelSelector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.template.spec.topologySpreadConstraints[].labelSelector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.template.spec.topologySpreadConstraints[].labelSelector.matchExpressions[].values
- 描述
- 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. This array is replaced during a strategic merge patch.
- 类型
array
.spec.template.spec.topologySpreadConstraints[].labelSelector.matchExpressions[].values[]
- 类型
string
.spec.template.spec.topologySpreadConstraints[].labelSelector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.spec.template.spec.topologySpreadConstraints[].matchLabelKeys
- 描述
- MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).
- 类型
array
.spec.template.spec.topologySpreadConstraints[].matchLabelKeys[]
- 类型
string
.spec.template.spec.volumes
- 描述
- List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes
- 类型
array
.spec.template.spec.volumes[]
- 描述
- Volume represents a named volume in a pod that may be accessed by any container in the pod.
- 类型
object- 必填
name
.spec.template.spec.volumes[].awsElasticBlockStore
- 描述
- Represents a Persistent Disk resource in AWS. An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.
- 类型
object- 必填
volumeID
.spec.template.spec.volumes[].azureDisk
- 描述
- AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
- 类型
object- 必填
diskNamediskURI
.spec.template.spec.volumes[].azureFile
- 描述
- AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
- 类型
object- 必填
secretNameshareName
.spec.template.spec.volumes[].cephfs
- 描述
- Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.
- 类型
object- 必填
monitors
.spec.template.spec.volumes[].cephfs.monitors
- 描述
- monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
- 类型
array
.spec.template.spec.volumes[].cephfs.monitors[]
- 类型
string
.spec.template.spec.volumes[].cephfs.secretRef
- 描述
- LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
- 类型
object
.spec.template.spec.volumes[].cinder
- 描述
- Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.
- 类型
object- 必填
volumeID
.spec.template.spec.volumes[].cinder.secretRef
- 描述
- LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
- 类型
object
.spec.template.spec.volumes[].configMap
- 描述
- Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.
- 类型
object
.spec.template.spec.volumes[].configMap.items
- 描述
- items 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 '..'.
- 类型
array
.spec.template.spec.volumes[].configMap.items[]
- 描述
- Maps a string key to a path within a volume.
- 类型
object- 必填
keypath
.spec.template.spec.volumes[].csi
- 描述
- Represents a source location of a volume to mount, managed by an external CSI driver
- 类型
object- 必填
driver
.spec.template.spec.volumes[].csi.nodePublishSecretRef
- 描述
- LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
- 类型
object
.spec.template.spec.volumes[].csi.volumeAttributes
- 描述
- volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.
- 类型
object
.spec.template.spec.volumes[].downwardAPI
- 描述
- DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.
- 类型
object
.spec.template.spec.volumes[].downwardAPI.items
- 描述
- Items is a list of downward API volume file
- 类型
array
.spec.template.spec.volumes[].downwardAPI.items[]
- 描述
- DownwardAPIVolumeFile represents information to create the file containing the pod field
- 类型
object- 必填
path
.spec.template.spec.volumes[].downwardAPI.items[].fieldRef
- 描述
- ObjectFieldSelector selects an APIVersioned field of an object.
- 类型
object- 必填
fieldPath
.spec.template.spec.volumes[].downwardAPI.items[].resourceFieldRef
- 描述
- ResourceFieldSelector represents container resources (cpu, memory) and their output format
- 类型
object- 必填
resource
.spec.template.spec.volumes[].emptyDir
- 描述
- Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.
- 类型
object
.spec.template.spec.volumes[].ephemeral
- 描述
- Represents an ephemeral volume that is handled by a normal storage driver.
- 类型
object
.spec.template.spec.volumes[].ephemeral.volumeClaimTemplate
- 描述
- PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.
- 类型
object- 必填
spec
.spec.template.spec.volumes[].ephemeral.volumeClaimTemplate.spec
- 描述
- PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes
- 类型
object
.spec.template.spec.volumes[].ephemeral.volumeClaimTemplate.spec.accessModes
- 描述
- accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
- 类型
array
.spec.template.spec.volumes[].ephemeral.volumeClaimTemplate.spec.accessModes[]
- 类型
string
.spec.template.spec.volumes[].ephemeral.volumeClaimTemplate.spec.dataSource
- 描述
- TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.
- 类型
object- 必填
kindname
.spec.template.spec.volumes[].ephemeral.volumeClaimTemplate.spec.dataSourceRef
- 描述
- TypedObjectReference contains enough information to let you locate the typed referenced object
- 类型
object- 必填
kindname
.spec.template.spec.volumes[].ephemeral.volumeClaimTemplate.spec.resources
- 描述
- VolumeResourceRequirements describes the storage resource requirements for a volume.
- 类型
object
.spec.template.spec.volumes[].ephemeral.volumeClaimTemplate.spec.resources.limits
- 描述
- Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.template.spec.volumes[].ephemeral.volumeClaimTemplate.spec.resources.requests
- 描述
- 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. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
- 类型
object
.spec.template.spec.volumes[].ephemeral.volumeClaimTemplate.spec.selector
- 描述
- A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
- 类型
object
.spec.template.spec.volumes[].ephemeral.volumeClaimTemplate.spec.selector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.template.spec.volumes[].ephemeral.volumeClaimTemplate.spec.selector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.template.spec.volumes[].ephemeral.volumeClaimTemplate.spec.selector.matchExpressions[].values
- 描述
- 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. This array is replaced during a strategic merge patch.
- 类型
array
.spec.template.spec.volumes[].ephemeral.volumeClaimTemplate.spec.selector.matchExpressions[].values[]
- 类型
string
.spec.template.spec.volumes[].ephemeral.volumeClaimTemplate.spec.selector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.spec.template.spec.volumes[].fc
- 描述
- Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.
- 类型
object
.spec.template.spec.volumes[].fc.targetWWNs
- 描述
- targetWWNs is Optional: FC target worldwide names (WWNs)
- 类型
array
.spec.template.spec.volumes[].fc.targetWWNs[]
- 类型
string
.spec.template.spec.volumes[].fc.wwids
- 描述
- wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
- 类型
array
.spec.template.spec.volumes[].fc.wwids[]
- 类型
string
.spec.template.spec.volumes[].flexVolume
- 描述
- FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.
- 类型
object- 必填
driver
.spec.template.spec.volumes[].flexVolume.options
- 描述
- options is Optional: this field holds extra command options if any.
- 类型
object
.spec.template.spec.volumes[].flexVolume.secretRef
- 描述
- LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
- 类型
object
.spec.template.spec.volumes[].flocker
- 描述
- Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.
- 类型
object
.spec.template.spec.volumes[].gcePersistentDisk
- 描述
- Represents a Persistent Disk resource in Google Compute Engine. A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.
- 类型
object- 必填
pdName
.spec.template.spec.volumes[].gitRepo
- 描述
- Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.
- 类型
object- 必填
repository
.spec.template.spec.volumes[].glusterfs
- 描述
- Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.
- 类型
object- 必填
endpointspath
.spec.template.spec.volumes[].hostPath
- 描述
- Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.
- 类型
object- 必填
path
.spec.template.spec.volumes[].image
- 描述
- ImageVolumeSource represents a image volume resource.
- 类型
object
.spec.template.spec.volumes[].iscsi
- 描述
- Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.
- 类型
object- 必填
targetPortaliqnlun
.spec.template.spec.volumes[].iscsi.portals
- 描述
- portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).
- 类型
array
.spec.template.spec.volumes[].iscsi.portals[]
- 类型
string
.spec.template.spec.volumes[].iscsi.secretRef
- 描述
- LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
- 类型
object
.spec.template.spec.volumes[].nfs
- 描述
- Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.
- 类型
object- 必填
serverpath
.spec.template.spec.volumes[].persistentVolumeClaim
- 描述
- PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).
- 类型
object- 必填
claimName
.spec.template.spec.volumes[].photonPersistentDisk
- 描述
- Represents a Photon Controller persistent disk resource.
- 类型
object- 必填
pdID
.spec.template.spec.volumes[].portworxVolume
- 描述
- PortworxVolumeSource represents a Portworx volume resource.
- 类型
object- 必填
volumeID
.spec.template.spec.volumes[].projected
- 描述
- Represents a projected volume source
- 类型
object
.spec.template.spec.volumes[].projected.sources
- 描述
- sources is the list of volume projections. Each entry in this list handles one source.
- 类型
array
.spec.template.spec.volumes[].projected.sources[]
- 描述
- Projection that may be projected along with other supported volume types. Exactly one of these fields must be set.
- 类型
object
.spec.template.spec.volumes[].projected.sources[].clusterTrustBundle
- 描述
- ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem.
- 类型
object- 必填
path
.spec.template.spec.volumes[].projected.sources[].clusterTrustBundle.labelSelector
- 描述
- A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
- 类型
object
.spec.template.spec.volumes[].projected.sources[].clusterTrustBundle.labelSelector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.spec.template.spec.volumes[].projected.sources[].clusterTrustBundle.labelSelector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.spec.template.spec.volumes[].projected.sources[].clusterTrustBundle.labelSelector.matchExpressions[].values
- 描述
- 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. This array is replaced during a strategic merge patch.
- 类型
array
.spec.template.spec.volumes[].projected.sources[].clusterTrustBundle.labelSelector.matchExpressions[].values[]
- 类型
string
.spec.template.spec.volumes[].projected.sources[].clusterTrustBundle.labelSelector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.spec.template.spec.volumes[].projected.sources[].configMap
- 描述
- Adapts a ConfigMap into a projected volume. The contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.
- 类型
object
.spec.template.spec.volumes[].projected.sources[].configMap.items
- 描述
- items 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 '..'.
- 类型
array
.spec.template.spec.volumes[].projected.sources[].configMap.items[]
- 描述
- Maps a string key to a path within a volume.
- 类型
object- 必填
keypath
.spec.template.spec.volumes[].projected.sources[].downwardAPI
- 描述
- Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.
- 类型
object
.spec.template.spec.volumes[].projected.sources[].downwardAPI.items
- 描述
- Items is a list of DownwardAPIVolume file
- 类型
array
.spec.template.spec.volumes[].projected.sources[].downwardAPI.items[]
- 描述
- DownwardAPIVolumeFile represents information to create the file containing the pod field
- 类型
object- 必填
path
.spec.template.spec.volumes[].projected.sources[].downwardAPI.items[].fieldRef
- 描述
- ObjectFieldSelector selects an APIVersioned field of an object.
- 类型
object- 必填
fieldPath
.spec.template.spec.volumes[].projected.sources[].downwardAPI.items[].resourceFieldRef
- 描述
- ResourceFieldSelector represents container resources (cpu, memory) and their output format
- 类型
object- 必填
resource
.spec.template.spec.volumes[].projected.sources[].secret
- 描述
- Adapts a secret into a projected volume. The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.
- 类型
object
.spec.template.spec.volumes[].projected.sources[].secret.items
- 描述
- items 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 '..'.
- 类型
array
.spec.template.spec.volumes[].projected.sources[].secret.items[]
- 描述
- Maps a string key to a path within a volume.
- 类型
object- 必填
keypath
.spec.template.spec.volumes[].projected.sources[].serviceAccountToken
- 描述
- ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).
- 类型
object- 必填
path
.spec.template.spec.volumes[].quobyte
- 描述
- Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.
- 类型
object- 必填
registryvolume
.spec.template.spec.volumes[].rbd
- 描述
- Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.
- 类型
object- 必填
monitorsimage
.spec.template.spec.volumes[].rbd.monitors
- 描述
- monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
- 类型
array
.spec.template.spec.volumes[].rbd.monitors[]
- 类型
string
.spec.template.spec.volumes[].rbd.secretRef
- 描述
- LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
- 类型
object
.spec.template.spec.volumes[].scaleIO
- 描述
- ScaleIOVolumeSource represents a persistent ScaleIO volume
- 类型
object- 必填
gatewaysystemsecretRef
.spec.template.spec.volumes[].scaleIO.secretRef
- 描述
- LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
- 类型
object
.spec.template.spec.volumes[].secret
- 描述
- Adapts a Secret into a volume. The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.
- 类型
object
.spec.template.spec.volumes[].secret.items
- 描述
- items 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 '..'.
- 类型
array
.spec.template.spec.volumes[].secret.items[]
- 描述
- Maps a string key to a path within a volume.
- 类型
object- 必填
keypath
.spec.template.spec.volumes[].storageos
- 描述
- Represents a StorageOS persistent volume resource.
- 类型
object
.spec.template.spec.volumes[].storageos.secretRef
- 描述
- LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
- 类型
object
.spec.template.spec.volumes[].vsphereVolume
- 描述
- Represents a vSphere volume resource.
- 类型
object- 必填
volumePath
.spec.updateStrategy
- 描述
- DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.
- 类型
object
.spec.updateStrategy.rollingUpdate
- 描述
- Spec to control the desired behavior of daemon set rolling update.
- 类型
object
.status
- 描述
- DaemonSetStatus represents the current status of a daemon set.
- 类型
object- 必填
currentNumberSchedulednumberMisscheduleddesiredNumberSchedulednumberReady
.status.conditions
- 描述
- Represents the latest available observations of a DaemonSet's current state.
- 类型
array
.status.conditions[]
- 描述
- DaemonSetCondition describes the state of a DaemonSet at a certain point.
- 类型
object- 必填
typestatus
API 端点
可用的 API 端点如下:
/kubernetes/{cluster}/apis/apps/v1/namespaces/{namespace}/daemonsetsDELETE: delete collection of DaemonSetGET: list objects of kind DaemonSetPOST: create a new DaemonSet
/kubernetes/{cluster}/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}DELETE: delete the specified DaemonSetGET: read the specified DaemonSetPATCH: partially update the specified DaemonSetPUT: replace the specified DaemonSet
/kubernetes/{cluster}/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/statusGET: read status of the specified DaemonSetPATCH: partially update status of the specified DaemonSetPUT: replace status of the specified DaemonSet
/kubernetes/{cluster}/apis/apps/v1/namespaces/{namespace}/daemonsets
- HTTP 方法
DELETE- 描述
- delete collection of DaemonSet
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind DaemonSet
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new DaemonSet
- 查询参数
- 请求体参数
- HTTP 响应
/kubernetes/{cluster}/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}
- HTTP 方法
DELETE- 描述
- delete the specified DaemonSet
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified DaemonSet
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified DaemonSet
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified DaemonSet
- 查询参数
- 请求体参数
- HTTP 响应
/kubernetes/{cluster}/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status
- HTTP 方法
GET- 描述
- read status of the specified DaemonSet
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update status of the specified DaemonSet
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace status of the specified DaemonSet
- 查询参数
- 请求体参数
- HTTP 响应