Shard
Shard CRD schema reference (group operator.kcp.io)
Version v1alpha1
Example CR
apiVersion: operator.kcp.io/v1alpha1
kind: Shard
metadata:
labels:
app.kubernetes.io/name: kcp-operator
app.kubernetes.io/managed-by: kustomize
name: secondary-shard
spec:
etcd:
endpoints:
- http://etcd-shard.default.svc.cluster.local:2379
rootShard:
ref:
name: shard-sample
auth:
serviceAccount:
# if you want controllers to access particular workspaces using service accounts
# serviceAccounts must be enabled, on all shards and the front-proxy.
enabled: true
logLevel:
verbosityLevel: 4
deploymentTemplate:
spec:
template:
spec:
hostAliases:
# add a hardcoded DNS override to the same IP as in v1alpha1_frontproxy.yaml.
- ip: "10.96.100.100"
hostnames:
- "example.operator.kcp.io"
Properties
.apiVersion
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
.kind
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
.metadata
.spec
ShardSpec defines the desired state of Shard
.spec.audit
.spec.audit.policy
Audit policy configuration.
.spec.audit.policy.configMap
ConfigMap is a reference to the ConfigMap containing the audit policy file which is mounted into the container.
.spec.audit.policy.configMap.key
Key in the data.
.spec.audit.policy.configMap.name
Name of the object.
.spec.audit.webhook
.spec.audit.webhook.batchBufferSize
The size of the buffer to store events before batching and writing. Only used in batch mode.
.spec.audit.webhook.batchMaxSize
The maximum size of a batch. Only used in batch mode.
.spec.audit.webhook.batchMaxWait
The amount of time to wait before force writing the batch that hadn’t reached the max size. Only used in batch mode.
.spec.audit.webhook.batchThrottleBurst
Maximum number of requests sent at the same moment if ThrottleQPS was not utilized before. Only used in batch mode.
.spec.audit.webhook.batchThrottleEnable
Whether batching throttling is enabled. Only used in batch mode.
.spec.audit.webhook.batchThrottleQPS
Maximum average number of batches per second. Only used in batch mode. This value is a floating point number, stored as a string (e.g. “3.1”).
.spec.audit.webhook.configSecretName
Name of a Kubernetes Secret that contains a kubeconfig formatted file that defines the audit webhook configuration.
.spec.audit.webhook.initialBackoff
The amount of time to wait before retrying the first failed request.
.spec.audit.webhook.mode
Strategy for sending audit events. Blocking indicates sending events should block server responses. Batch causes the backend to buffer and write events asynchronously.
.spec.audit.webhook.truncateEnabled
Whether event and batch truncating is enabled.
.spec.audit.webhook.truncateMaxBatchSize
Maximum size of the batch sent to the underlying backend. Actual serialized size can be several hundreds of bytes greater. If a batch exceeds this limit, it is split into several batches of smaller size.
.spec.audit.webhook.truncateMaxEventSize
Maximum size of the audit event sent to the underlying backend. If the size of an event is greater than this number, first request and response are removed, and if this doesn’t reduce the size enough, event is discarded.
.spec.audit.webhook.version
API group and version used for serializing audit events written to webhook.
.spec.auth
Optional: Auth configures various aspects of Authentication and Authorization for this shard.
.spec.auth.dropGroups
Optional: DropGroups configures groups to be dropped before forwarding requests to Shards.
.spec.auth.dropGroups[*]
.spec.auth.oidc
Optional: OIDC configures OpenID Connect Authentication.
.spec.auth.oidc.caFileRef
Optionally provides a reference to a secret that contains a CA bundle for the OIDC issuer. This is useful when the OIDC issuer is not publicly trusted.
.spec.auth.oidc.caFileRef.key
Key is the key in the secret that contains the CA file. Defaults to “ca.crt”.
.spec.auth.oidc.caFileRef.name
Name is the name of the secret that contains the CA file.
.spec.auth.oidc.clientID
ClientID is the OIDC client ID configured on the issuer side for this kcp instance.
.spec.auth.oidc.clientSecret
ClientSecret is the OIDC client secret configured on the issuer side for this kcp instance. This is not used by kcp itself, but is used to generate a OIDC kubeconfig that can be shared with users to log in via the OIDC provider.
Deprecated: kube OIDC is secretless.
.spec.auth.oidc.groupsClaim
Experimental: Optionally provides a custom claim for fetching groups. The claim must be a string or an array of strings.
.spec.auth.oidc.groupsPrefix
Optionally sets a custom groups prefix. This defaults to “oidc:” if unset, which means a group called “group1” on the OIDC side will be recognised as “oidc:group1” in kcp.
.spec.auth.oidc.issuerURL
IssuerURL is used for the OIDC issuer URL. Only https URLs will be accepted.
.spec.auth.oidc.usernameClaim
Optionally uses a custom claim for fetching the username. This defaults to “sub” if unset.
.spec.auth.oidc.usernamePrefix
Optionally sets a custom username prefix. This defaults to “oidc:” if unset, which means a user called “user@example.com” on the OIDC side will be recognised as “oidc:user@example.com” in kcp.
.spec.auth.passOnGroups
Optional: PassOnGroups configures groups to be passed on before forwarding requests to Shards
.spec.auth.passOnGroups[*]
.spec.auth.serviceAccount
Optional: serviceAccountAuthentication configures ServiceAccount Authentication.
.spec.auth.serviceAccount.enabled
Optional: Enabled enables or disables ServiceAccount Authentication. If set, it will mount every shard’s service account certificate to the front-proxy.
.spec.auth.tokenAuthFile
Optional: TokenAuthFile configures static token file authentication (the kcp
--token-auth-file flag). It is supported by shards, the root shard and the front-proxy.
.spec.auth.tokenAuthFile.key
Key in the secret that holds the token CSV file. Defaults to “token.csv”.
.spec.auth.tokenAuthFile.secretName
SecretName is the name of a Kubernetes Secret that contains the token authentication CSV file. Each line of the file has the format: token,user,uid,“group1,group2,group3”.
.spec.auth.webhook
Optional: Webhook configures Webhook Authentication.
.spec.auth.webhook.cacheAuthenticationTTL
The duration to cache the authentication responses from the webhook authenticator.
.spec.auth.webhook.configSecretName
Name of a Kubernetes Secret that contains a kubeconfig formatted file that defines the authentication webhook configuration.
.spec.auth.webhook.version
The API version of the authentication.k8s.io TokenReview to send to and expect from the webhook.
.spec.authorization
.spec.authorization.allowPaths
A list of HTTP paths to skip during authorization, i.e. these are authorized without contacting the ‘core’ kubernetes server. If specified, completely overwrites the default of [/healthz,/readyz,/livez].
.spec.authorization.allowPaths[*]
.spec.authorization.order
A list of authorizers that should be enabled, allowing administrator rearrange the default order. The default order is: [AlwaysAllowGroups,AlwaysAllowPaths,RBAC,Webhook]
.spec.authorization.order[*]
.spec.authorization.webhook
Authorization Webhook configuration.
.spec.authorization.webhook.allowPaths
A list of HTTP paths to skip during authorization, i.e. these are authorized without contacting the ‘core’ kubernetes server. If specified, completely overwrites the default of [/healthz,/readyz,/livez].
Deprecated: Use spec.authorization.allowPaths instead. This field is kept for backward compatibility but can not be used at the same time as spec.authorization.allowPaths.
.spec.authorization.webhook.allowPaths[*]
.spec.authorization.webhook.cacheAuthorizedTTL
The duration to cache ‘authorized’ responses from the webhook authorizer.
.spec.authorization.webhook.cacheUnauthorizedTTL
The duration to cache ‘unauthorized’ responses from the webhook authorizer.
.spec.authorization.webhook.configSecretName
Name of a Kubernetes Secret that contains a kubeconfig formatted file that defines the authorization webhook configuration.
.spec.authorization.webhook.version
The API version of the authorization.k8s.io SubjectAccessReview to send to and expect from the webhook.
.spec.caBundleSecretRef
CABundle references a v1.Secret object that contains the CA bundle that should be used
to validate the API server’s TLS certificate. The secret must contain a key named tls.crt
that holds the PEM encoded CA certificate. It will be merged into the
“external-logical-cluster-admin-kubeconfig” kubeconfig under the certificate-authority-data
field.
If not specified, the kubeconfig will use the CA bundle of the root shard or front-proxy
referenced in the Target field. It will NOT be used to configure the API server’s own TLS
certificate or any other component.
.spec.caBundleSecretRef.name
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
.spec.cache
Optional: Configure an external cache server for this shard. If not configured, the cache settings of the RootShard will be used.
.spec.cache.ref
Reference references a local CacheServer object.
.spec.cache.ref.name
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
.spec.certificateTemplates
CertificateTemplates allows to customize the properties on the generated certificates for this shard.
.spec.clientCABundleRef
ClientCABundleRef references a v1.Secret containing an additional client CA bundle
for client certificate authentication. The secret must contain a key named tls.crt.
This CA bundle will be merged with the root shard’s client CA.
If configured on a RootShard, this bundle is automatically inherited by all FrontProxies,
Shards, and VirtualWorkspaces connected to it. Each of those components can additionally
specify their own ClientCABundleRef, which will be merged on top.
.spec.clientCABundleRef.name
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
.spec.clusterDomain
ClusterDomain is the DNS domain for services in the cluster. Defaults to “cluster.local” if not set.
.spec.deploymentTemplate
Optional: DeploymentTemplate configures the Kubernetes Deployment created for this shard.
.spec.deploymentTemplate.metadata
.spec.deploymentTemplate.metadata.annotations
Annotations is a key value map to be copied to the target Deployment.
.spec.deploymentTemplate.metadata.labels
Labels is a key value map to be copied to the target Deployment.
.spec.deploymentTemplate.spec
.spec.deploymentTemplate.spec.template
Template describes the pods that will be created.
.spec.deploymentTemplate.spec.template.metadata
.spec.deploymentTemplate.spec.template.metadata.annotations
Annotations is a key value map to be copied to the Pod.
.spec.deploymentTemplate.spec.template.metadata.labels
Labels is a key value map to be copied to the Pod.
.spec.deploymentTemplate.spec.template.spec
.spec.deploymentTemplate.spec.template.spec.affinity
If specified, the pod’s scheduling constraints
.spec.deploymentTemplate.spec.template.spec.affinity.nodeAffinity
Describes node affinity scheduling rules for the pod.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.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).
.spec.deploymentTemplate.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].preference
A node selector term, associated with the corresponding weight.
.spec.deploymentTemplate.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].preference.matchExpressions
A list of node selector requirements by node’s labels.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].preference.matchExpressions[*].key
The label key that the selector applies to.
.spec.deploymentTemplate.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].preference.matchExpressions[*].operator
Represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].preference.matchExpressions[*].values[*]
.spec.deploymentTemplate.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].preference.matchFields
A list of node selector requirements by node’s fields.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].preference.matchFields[*].key
The label key that the selector applies to.
.spec.deploymentTemplate.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].preference.matchFields[*].operator
Represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].preference.matchFields[*].values[*]
.spec.deploymentTemplate.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].weight
Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
.spec.deploymentTemplate.spec.template.spec.affinity.nodeAffinity.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 an update), the system may or may not try to eventually evict the pod from its node.
.spec.deploymentTemplate.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms
Required. A list of node selector terms. The terms are ORed.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[*].matchExpressions
A list of node selector requirements by node’s labels.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[*].matchExpressions[*].key
The label key that the selector applies to.
.spec.deploymentTemplate.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[*].matchExpressions[*].operator
Represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[*].matchExpressions[*].values[*]
.spec.deploymentTemplate.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[*].matchFields
A list of node selector requirements by node’s fields.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[*].matchFields[*].key
The label key that the selector applies to.
.spec.deploymentTemplate.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[*].matchFields[*].operator
Represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[*].matchFields[*].values[*]
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity
Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.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)
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm
Required. A pod affinity term, associated with the corresponding weight.
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.labelSelector
A label query over a set of resources, in this case pods. If it’s null, this PodAffinityTerm matches with no Pods.
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.labelSelector.matchExpressions
matchExpressions is a list of label selector requirements. The requirements are ANDed.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.labelSelector.matchExpressions[*].key
key is the label key that the selector applies to.
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.labelSelector.matchExpressions[*].operator
operator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.labelSelector.matchExpressions[*].values[*]
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.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).
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.matchLabelKeys[*]
.spec.deploymentTemplate.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).
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.mismatchLabelKeys[*]
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.namespaceSelector
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means “this pod’s namespace”. An empty selector ({}) matches all namespaces.
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.namespaceSelector.matchExpressions
matchExpressions is a list of label selector requirements. The requirements are ANDed.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.namespaceSelector.matchExpressions[*].key
key is the label key that the selector applies to.
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.namespaceSelector.matchExpressions[*].operator
operator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.namespaceSelector.matchExpressions[*].values[*]
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.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”.
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.namespaces[*]
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.topologyKey
This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, 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 any of the selected pods is running. Empty topologyKey is not allowed.
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].weight
weight associated with matching the corresponding podAffinityTerm, in the range 1-100.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.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
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].labelSelector
A label query over a set of resources, in this case pods. If it’s null, this PodAffinityTerm matches with no Pods.
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].labelSelector.matchExpressions
matchExpressions is a list of label selector requirements. The requirements are ANDed.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].labelSelector.matchExpressions[*].key
key is the label key that the selector applies to.
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].labelSelector.matchExpressions[*].operator
operator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].labelSelector.matchExpressions[*].values[*]
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.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).
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].matchLabelKeys[*]
.spec.deploymentTemplate.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).
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].mismatchLabelKeys[*]
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].namespaceSelector
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means “this pod’s namespace”. An empty selector ({}) matches all namespaces.
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].namespaceSelector.matchExpressions
matchExpressions is a list of label selector requirements. The requirements are ANDed.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].namespaceSelector.matchExpressions[*].key
key is the label key that the selector applies to.
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].namespaceSelector.matchExpressions[*].operator
operator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].namespaceSelector.matchExpressions[*].values[*]
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.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”.
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].namespaces[*]
.spec.deploymentTemplate.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].topologyKey
This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, 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 any of the selected pods is running. Empty topologyKey is not allowed.
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity
Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.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)
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm
Required. A pod affinity term, associated with the corresponding weight.
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.labelSelector
A label query over a set of resources, in this case pods. If it’s null, this PodAffinityTerm matches with no Pods.
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.labelSelector.matchExpressions
matchExpressions is a list of label selector requirements. The requirements are ANDed.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.labelSelector.matchExpressions[*].key
key is the label key that the selector applies to.
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.labelSelector.matchExpressions[*].operator
operator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.labelSelector.matchExpressions[*].values[*]
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.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).
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.matchLabelKeys[*]
.spec.deploymentTemplate.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).
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.mismatchLabelKeys[*]
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.namespaceSelector
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means “this pod’s namespace”. An empty selector ({}) matches all namespaces.
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.namespaceSelector.matchExpressions
matchExpressions is a list of label selector requirements. The requirements are ANDed.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.namespaceSelector.matchExpressions[*].key
key is the label key that the selector applies to.
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.namespaceSelector.matchExpressions[*].operator
operator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.namespaceSelector.matchExpressions[*].values[*]
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.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”.
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.namespaces[*]
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].podAffinityTerm.topologyKey
This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, 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 any of the selected pods is running. Empty topologyKey is not allowed.
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[*].weight
weight associated with matching the corresponding podAffinityTerm, in the range 1-100.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.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
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].labelSelector
A label query over a set of resources, in this case pods. If it’s null, this PodAffinityTerm matches with no Pods.
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].labelSelector.matchExpressions
matchExpressions is a list of label selector requirements. The requirements are ANDed.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].labelSelector.matchExpressions[*].key
key is the label key that the selector applies to.
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].labelSelector.matchExpressions[*].operator
operator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].labelSelector.matchExpressions[*].values[*]
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.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).
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].matchLabelKeys[*]
.spec.deploymentTemplate.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).
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].mismatchLabelKeys[*]
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].namespaceSelector
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means “this pod’s namespace”. An empty selector ({}) matches all namespaces.
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].namespaceSelector.matchExpressions
matchExpressions is a list of label selector requirements. The requirements are ANDed.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].namespaceSelector.matchExpressions[*].key
key is the label key that the selector applies to.
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].namespaceSelector.matchExpressions[*].operator
operator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].namespaceSelector.matchExpressions[*].values[*]
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.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”.
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].namespaces[*]
.spec.deploymentTemplate.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[*].topologyKey
This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, 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 any of the selected pods is running. Empty topologyKey is not allowed.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.hostAliases[*].hostnames
Hostnames for the above IP address.
.spec.deploymentTemplate.spec.template.spec.hostAliases[*].hostnames[*]
.spec.deploymentTemplate.spec.template.spec.hostAliases[*].ip
IP address of the host file entry.
.spec.deploymentTemplate.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
.spec.deploymentTemplate.spec.template.spec.imagePullSecrets[*]
LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
.spec.deploymentTemplate.spec.template.spec.imagePullSecrets[*].name
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
.spec.deploymentTemplate.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/
.spec.deploymentTemplate.spec.template.spec.tolerations
If specified, the pod’s tolerations.
.spec.deploymentTemplate.spec.template.spec.tolerations[*]
The pod this Toleration is attached to tolerates any taint that matches
the triple
.spec.deploymentTemplate.spec.template.spec.tolerations[*].effect
Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
.spec.deploymentTemplate.spec.template.spec.tolerations[*].key
Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.
.spec.deploymentTemplate.spec.template.spec.tolerations[*].operator
Operator represents a key’s relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.
.spec.deploymentTemplate.spec.template.spec.tolerations[*].tolerationSeconds
TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.
.spec.deploymentTemplate.spec.template.spec.tolerations[*].value
Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.topologySpreadConstraints[*]
TopologySpreadConstraint specifies how to spread matching pods among the given topology.
.spec.deploymentTemplate.spec.template.spec.topologySpreadConstraints[*].labelSelector
LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain.
.spec.deploymentTemplate.spec.template.spec.topologySpreadConstraints[*].labelSelector.matchExpressions
matchExpressions is a list of label selector requirements. The requirements are ANDed.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.topologySpreadConstraints[*].labelSelector.matchExpressions[*].key
key is the label key that the selector applies to.
.spec.deploymentTemplate.spec.template.spec.topologySpreadConstraints[*].labelSelector.matchExpressions[*].operator
operator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.spec.template.spec.topologySpreadConstraints[*].labelSelector.matchExpressions[*].values[*]
.spec.deploymentTemplate.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.
.spec.deploymentTemplate.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).
.spec.deploymentTemplate.spec.template.spec.topologySpreadConstraints[*].matchLabelKeys[*]
.spec.deploymentTemplate.spec.template.spec.topologySpreadConstraints[*].maxSkew
MaxSkew describes the degree to which pods may be unevenly distributed.
When whenUnsatisfiable=DoNotSchedule, it is the maximum permitted difference
between the number of matching pods in the target topology and the global minimum.
The global minimum is the minimum number of matching pods in an eligible domain
or zero if the number of eligible domains is less than MinDomains.
For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
labelSelector spread as 2/2/1:
In this case, the global minimum is 1.
| zone1 | zone2 | zone3 |
| P P | P P | P |
- if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2;
scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2)
violate MaxSkew(1).
- if MaxSkew is 2, incoming pod can be scheduled onto any zone.
When whenUnsatisfiable=ScheduleAnyway, it is used to give higher precedence
to topologies that satisfy it.
It’s a required field. Default value is 1 and 0 is not allowed.
.spec.deploymentTemplate.spec.template.spec.topologySpreadConstraints[*].minDomains
MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats “global minimum” as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won’t schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.
For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so “global minimum” is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew.
.spec.deploymentTemplate.spec.template.spec.topologySpreadConstraints[*].nodeAffinityPolicy
NodeAffinityPolicy indicates how we will treat Pod’s nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.
If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.
.spec.deploymentTemplate.spec.template.spec.topologySpreadConstraints[*].nodeTaintsPolicy
NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.
If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.
.spec.deploymentTemplate.spec.template.spec.topologySpreadConstraints[*].topologyKey
TopologyKey is the key of node labels. Nodes that have a label with this key
and identical values are considered to be in the same topology.
We consider each
.spec.deploymentTemplate.spec.template.spec.topologySpreadConstraints[*].whenUnsatisfiable
WhenUnsatisfiable indicates how to deal with a pod if it doesn’t satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, but giving higher precedence to topologies that would help reduce the skew. A constraint is considered “Unsatisfiable” for an incoming pod if and only if every possible node assignment for that pod would violate “MaxSkew” on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won’t make it more imbalanced. It’s a required field.
.spec.etcd
Etcd configures the etcd cluster that this shard should be using.
.spec.etcd.endpoints
Endpoints is a list of http urls at which etcd nodes are available. The expected format is “https://etcd-hostname:2379”.
.spec.etcd.endpoints[*]
.spec.etcd.prefix
Prefix is the etcd key prefix under which the component stores its data. If unset, the components default prefix is used.
.spec.etcd.tlsConfig
ClientCert configures the client certificate used to access etcd.
.spec.etcd.tlsConfig.secretRef
SecretRef is the reference to a v1.Secret object that contains the TLS certificate.
.spec.etcd.tlsConfig.secretRef.name
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
.spec.extraArgs
Optional: ExtraArgs defines additional command line arguments to pass to the shard container.
.spec.extraArgs[*]
.spec.extraVolumeMounts
Optional: ExtraVolumeMounts defines additional volume mounts that should be added to the
shard container. Each entry’s name must match the name of a volume defined in
ExtraVolumes (or one of the volumes the operator manages).
.spec.extraVolumeMounts[*]
VolumeMount describes a mounting of a Volume within a container.
.spec.extraVolumeMounts[*].mountPath
Path within the container at which the volume should be mounted. Must not contain ‘:’.
.spec.extraVolumeMounts[*].mountPropagation
mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None).
.spec.extraVolumeMounts[*].name
This must match the Name of a Volume.
.spec.extraVolumeMounts[*].readOnly
Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
.spec.extraVolumeMounts[*].recursiveReadOnly
RecursiveReadOnly specifies whether read-only mounts should be handled recursively.
If ReadOnly is false, this field has no meaning and must be unspecified.
If ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason.
If this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None).
If this field is not specified, it is treated as an equivalent of Disabled.
.spec.extraVolumeMounts[*].subPath
Path within the volume from which the container’s volume should be mounted. Defaults to “” (volume’s root).
.spec.extraVolumeMounts[*].subPathExpr
Expanded path within the volume from which the container’s volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container’s environment. Defaults to “” (volume’s root). SubPathExpr and SubPath are mutually exclusive.
.spec.extraVolumes
Optional: ExtraVolumes defines additional volumes that should be added to the shard Pod.
This is useful for mounting additional data, e.g. an EncryptionConfiguration file used
together with the --encryption-provider-config flag (see ExtraArgs) to enable
encryption of secrets at rest.
.spec.extraVolumes[*]
Volume represents a named volume in a pod that may be accessed by any container in the pod.
.spec.extraVolumes[*].awsElasticBlockStore
awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet’s host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
.spec.extraVolumes[*].awsElasticBlockStore.fsType
fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: “ext4”, “xfs”, “ntfs”. Implicitly inferred to be “ext4” if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
.spec.extraVolumes[*].awsElasticBlockStore.partition
partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as “1”. Similarly, the volume partition for /dev/sda is “0” (or you can leave the property empty).
.spec.extraVolumes[*].awsElasticBlockStore.readOnly
readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
.spec.extraVolumes[*].awsElasticBlockStore.volumeID
volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
.spec.extraVolumes[*].azureDisk
azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver.
.spec.extraVolumes[*].azureDisk.cachingMode
cachingMode is the Host Caching mode: None, Read Only, Read Write.
.spec.extraVolumes[*].azureDisk.diskName
diskName is the Name of the data disk in the blob storage
.spec.extraVolumes[*].azureDisk.diskURI
diskURI is the URI of data disk in the blob storage
.spec.extraVolumes[*].azureDisk.fsType
fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. “ext4”, “xfs”, “ntfs”. Implicitly inferred to be “ext4” if unspecified.
.spec.extraVolumes[*].azureDisk.kind
kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared
.spec.extraVolumes[*].azureDisk.readOnly
readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
.spec.extraVolumes[*].azureFile
azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver.
.spec.extraVolumes[*].azureFile.readOnly
readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
.spec.extraVolumes[*].azureFile.secretName
secretName is the name of secret that contains Azure Storage Account Name and Key
.spec.extraVolumes[*].azureFile.shareName
shareName is the azure share Name
.spec.extraVolumes[*].cephfs
cephFS represents a Ceph FS mount on the host that shares a pod’s lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.
.spec.extraVolumes[*].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
.spec.extraVolumes[*].cephfs.monitors[*]
.spec.extraVolumes[*].cephfs.path
path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /
.spec.extraVolumes[*].cephfs.readOnly
readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
.spec.extraVolumes[*].cephfs.secretFile
secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
.spec.extraVolumes[*].cephfs.secretRef
secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
.spec.extraVolumes[*].cephfs.secretRef.name
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
.spec.extraVolumes[*].cephfs.user
user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
.spec.extraVolumes[*].cinder
cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
.spec.extraVolumes[*].cinder.fsType
fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: “ext4”, “xfs”, “ntfs”. Implicitly inferred to be “ext4” if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
.spec.extraVolumes[*].cinder.readOnly
readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
.spec.extraVolumes[*].cinder.secretRef
secretRef is optional: points to a secret object containing parameters used to connect to OpenStack.
.spec.extraVolumes[*].cinder.secretRef.name
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
.spec.extraVolumes[*].cinder.volumeID
volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md
.spec.extraVolumes[*].configMap
configMap represents a configMap that should populate this volume
.spec.extraVolumes[*].configMap.defaultMode
defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
.spec.extraVolumes[*].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 ‘..’.
.spec.extraVolumes[*].configMap.items[*]
Maps a string key to a path within a volume.
.spec.extraVolumes[*].configMap.items[*].key
key is the key to project.
.spec.extraVolumes[*].configMap.items[*].mode
mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
.spec.extraVolumes[*].configMap.items[*].path
path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element ‘..’. May not start with the string ‘..’.
.spec.extraVolumes[*].configMap.name
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
.spec.extraVolumes[*].configMap.optional
optional specify whether the ConfigMap or its keys must be defined
.spec.extraVolumes[*].csi
csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.
.spec.extraVolumes[*].csi.driver
driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.
.spec.extraVolumes[*].csi.fsType
fsType to mount. Ex. “ext4”, “xfs”, “ntfs”. If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.
.spec.extraVolumes[*].csi.nodePublishSecretRef
nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed.
.spec.extraVolumes[*].csi.nodePublishSecretRef.name
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
.spec.extraVolumes[*].csi.readOnly
readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).
.spec.extraVolumes[*].csi.volumeAttributes
volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver’s documentation for supported values.
.spec.extraVolumes[*].downwardAPI
downwardAPI represents downward API about the pod that should populate this volume
.spec.extraVolumes[*].downwardAPI.defaultMode
Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
.spec.extraVolumes[*].downwardAPI.items
Items is a list of downward API volume file
.spec.extraVolumes[*].downwardAPI.items[*]
DownwardAPIVolumeFile represents information to create the file containing the pod field
.spec.extraVolumes[*].downwardAPI.items[*].fieldRef
Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.
.spec.extraVolumes[*].downwardAPI.items[*].fieldRef.apiVersion
Version of the schema the FieldPath is written in terms of, defaults to “v1”.
.spec.extraVolumes[*].downwardAPI.items[*].fieldRef.fieldPath
Path of the field to select in the specified API version.
.spec.extraVolumes[*].downwardAPI.items[*].mode
Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
.spec.extraVolumes[*].downwardAPI.items[*].path
Required: Path is the relative path name of the file to be created. Must not be absolute or contain the ‘..’ path. Must be utf-8 encoded. The first item of the relative path must not start with ‘..’
.spec.extraVolumes[*].downwardAPI.items[*].resourceFieldRef
Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
.spec.extraVolumes[*].downwardAPI.items[*].resourceFieldRef.containerName
Container name: required for volumes, optional for env vars
.spec.extraVolumes[*].downwardAPI.items[*].resourceFieldRef.divisor
Specifies the output format of the exposed resources, defaults to “1”
.spec.extraVolumes[*].downwardAPI.items[*].resourceFieldRef.resource
Required: resource to select
.spec.extraVolumes[*].emptyDir
emptyDir represents a temporary directory that shares a pod’s lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
.spec.extraVolumes[*].emptyDir.medium
medium represents what type of storage medium should back this directory. The default is “” which means to use the node’s default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
.spec.extraVolumes[*].emptyDir.sizeLimit
sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
.spec.extraVolumes[*].ephemeral
ephemeral represents a volume that is handled by a cluster storage driver. The volume’s lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed.
Use this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity tracking are needed, c) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through a PersistentVolumeClaim (see EphemeralVolumeSource for more information on the connection between this volume type and PersistentVolumeClaim).
Use PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod.
Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information.
A pod can use both types of ephemeral volumes and persistent volumes at the same time.
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate
Will be used to create a stand-alone PVC to provision the volume.
The pod in which this EphemeralVolumeSource is embedded will be the
owner of the PVC, i.e. the PVC will be deleted together with the
pod. The name of the PVC will be <pod name>-<volume name> where
<volume name> is the name from the PodSpec.Volumes array
entry. Pod validation will reject the pod if the concatenated name
is not valid for a PVC (for example, too long).
An existing PVC with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster.
This field is read-only and no changes will be made by Kubernetes to the PVC after it has been created.
Required, must not be nil.
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate.metadata
May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate.spec
The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here.
.spec.extraVolumes[*].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
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate.spec.accessModes[*]
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate.spec.dataSource
dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate.spec.dataSource.apiGroup
APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate.spec.dataSource.kind
Kind is the type of resource being referenced
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate.spec.dataSource.name
Name is the name of resource being referenced
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate.spec.dataSourceRef
dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn’t specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn’t set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While dataSource ignores disallowed values (dropping them), dataSourceRef preserves all values, and generates an error if a disallowed value is specified. * While dataSource only allows local objects, dataSourceRef allows objects in any namespaces. (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate.spec.dataSourceRef.apiGroup
APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate.spec.dataSourceRef.kind
Kind is the type of resource being referenced
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate.spec.dataSourceRef.name
Name is the name of resource being referenced
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate.spec.dataSourceRef.namespace
Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace’s owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate.spec.resources
resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
.spec.extraVolumes[*].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/
.spec.extraVolumes[*].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/
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate.spec.selector
selector is a label query over volumes to consider for binding.
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate.spec.selector.matchExpressions
matchExpressions is a list of label selector requirements. The requirements are ANDed.
.spec.extraVolumes[*].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.
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate.spec.selector.matchExpressions[*].key
key is the label key that the selector applies to.
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate.spec.selector.matchExpressions[*].operator
operator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
.spec.extraVolumes[*].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.
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate.spec.selector.matchExpressions[*].values[*]
.spec.extraVolumes[*].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.
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate.spec.storageClassName
storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate.spec.volumeAttributesClassName
volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it’s not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate.spec.volumeMode
volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.
.spec.extraVolumes[*].ephemeral.volumeClaimTemplate.spec.volumeName
volumeName is the binding reference to the PersistentVolume backing this claim.
.spec.extraVolumes[*].fc
fc represents a Fibre Channel resource that is attached to a kubelet’s host machine and then exposed to the pod.
.spec.extraVolumes[*].fc.fsType
fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. “ext4”, “xfs”, “ntfs”. Implicitly inferred to be “ext4” if unspecified.
.spec.extraVolumes[*].fc.lun
lun is Optional: FC target lun number
.spec.extraVolumes[*].fc.readOnly
readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
.spec.extraVolumes[*].fc.targetWWNs
targetWWNs is Optional: FC target worldwide names (WWNs)
.spec.extraVolumes[*].fc.targetWWNs[*]
.spec.extraVolumes[*].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.
.spec.extraVolumes[*].fc.wwids[*]
.spec.extraVolumes[*].flexVolume
flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.
.spec.extraVolumes[*].flexVolume.driver
driver is the name of the driver to use for this volume.
.spec.extraVolumes[*].flexVolume.fsType
fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. “ext4”, “xfs”, “ntfs”. The default filesystem depends on FlexVolume script.
.spec.extraVolumes[*].flexVolume.options
options is Optional: this field holds extra command options if any.
.spec.extraVolumes[*].flexVolume.readOnly
readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
.spec.extraVolumes[*].flexVolume.secretRef
secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.
.spec.extraVolumes[*].flexVolume.secretRef.name
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
.spec.extraVolumes[*].flocker
flocker represents a Flocker volume attached to a kubelet’s host machine. This depends on the Flocker control service being running. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.
.spec.extraVolumes[*].flocker.datasetName
datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated
.spec.extraVolumes[*].flocker.datasetUUID
datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset
.spec.extraVolumes[*].gcePersistentDisk
gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet’s host machine and then exposed to the pod. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
.spec.extraVolumes[*].gcePersistentDisk.fsType
fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: “ext4”, “xfs”, “ntfs”. Implicitly inferred to be “ext4” if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
.spec.extraVolumes[*].gcePersistentDisk.partition
partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as “1”. Similarly, the volume partition for /dev/sda is “0” (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
.spec.extraVolumes[*].gcePersistentDisk.pdName
pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
.spec.extraVolumes[*].gcePersistentDisk.readOnly
readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
.spec.extraVolumes[*].gitRepo
gitRepo represents a git repository at a particular revision. 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.
.spec.extraVolumes[*].gitRepo.directory
directory is the target directory name. Must not contain or start with ‘..’. If ‘.’ is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.
.spec.extraVolumes[*].gitRepo.repository
repository is the URL
.spec.extraVolumes[*].gitRepo.revision
revision is the commit hash for the specified revision.
.spec.extraVolumes[*].glusterfs
glusterfs represents a Glusterfs mount on the host that shares a pod’s lifetime. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported. More info: https://examples.k8s.io/volumes/glusterfs/README.md
.spec.extraVolumes[*].glusterfs.endpoints
endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
.spec.extraVolumes[*].glusterfs.path
path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
.spec.extraVolumes[*].glusterfs.readOnly
readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
.spec.extraVolumes[*].hostPath
hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
.spec.extraVolumes[*].hostPath.path
path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
.spec.extraVolumes[*].hostPath.type
type for HostPath Volume Defaults to “” More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
.spec.extraVolumes[*].image
image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet’s host machine. The volume is resolved at pod startup depending on which PullPolicy value is provided:
- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
- Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn’t present.
- IfNotPresent: the kubelet pulls if the reference isn’t already present on disk. Container creation will fail if the reference isn’t present and the pull fails.
The volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. The OCI object gets mounted in a single directory (spec.containers[].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. The volume will be mounted read-only (ro) and non-executable files (noexec). Sub path mounts for containers are not supported (spec.containers[].volumeMounts.subpath). The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.
.spec.extraVolumes[*].image.pullPolicy
Policy for pulling OCI objects. Possible values are: Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn’t present. IfNotPresent: the kubelet pulls if the reference isn’t already present on disk. Container creation will fail if the reference isn’t present and the pull fails. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
.spec.extraVolumes[*].image.reference
Required: Image or artifact reference to be used. Behaves in the same way as pod.spec.containers[*].image. Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.
.spec.extraVolumes[*].iscsi
iscsi represents an ISCSI Disk resource that is attached to a kubelet’s host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md
.spec.extraVolumes[*].iscsi.chapAuthDiscovery
chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
.spec.extraVolumes[*].iscsi.chapAuthSession
chapAuthSession defines whether support iSCSI Session CHAP authentication
.spec.extraVolumes[*].iscsi.fsType
fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: “ext4”, “xfs”, “ntfs”. Implicitly inferred to be “ext4” if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
.spec.extraVolumes[*].iscsi.initiatorName
initiatorName is the custom iSCSI Initiator Name.
If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
.spec.extraVolumes[*].iscsi.iqn
iqn is the target iSCSI Qualified Name.
.spec.extraVolumes[*].iscsi.iscsiInterface
iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to ‘default’ (tcp).
.spec.extraVolumes[*].iscsi.lun
lun represents iSCSI Target Lun number.
.spec.extraVolumes[*].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).
.spec.extraVolumes[*].iscsi.portals[*]
.spec.extraVolumes[*].iscsi.readOnly
readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.
.spec.extraVolumes[*].iscsi.secretRef
secretRef is the CHAP Secret for iSCSI target and initiator authentication
.spec.extraVolumes[*].iscsi.secretRef.name
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
.spec.extraVolumes[*].iscsi.targetPortal
targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).
.spec.extraVolumes[*].name
name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
.spec.extraVolumes[*].nfs
nfs represents an NFS mount on the host that shares a pod’s lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
.spec.extraVolumes[*].nfs.path
path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
.spec.extraVolumes[*].nfs.readOnly
readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
.spec.extraVolumes[*].nfs.server
server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
.spec.extraVolumes[*].persistentVolumeClaim
persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
.spec.extraVolumes[*].persistentVolumeClaim.claimName
claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
.spec.extraVolumes[*].persistentVolumeClaim.readOnly
readOnly Will force the ReadOnly setting in VolumeMounts. Default false.
.spec.extraVolumes[*].photonPersistentDisk
photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.
.spec.extraVolumes[*].photonPersistentDisk.fsType
fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. “ext4”, “xfs”, “ntfs”. Implicitly inferred to be “ext4” if unspecified.
.spec.extraVolumes[*].photonPersistentDisk.pdID
pdID is the ID that identifies Photon Controller persistent disk
.spec.extraVolumes[*].portworxVolume
portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on.
.spec.extraVolumes[*].portworxVolume.fsType
fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. “ext4”, “xfs”. Implicitly inferred to be “ext4” if unspecified.
.spec.extraVolumes[*].portworxVolume.readOnly
readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
.spec.extraVolumes[*].portworxVolume.volumeID
volumeID uniquely identifies a Portworx volume
.spec.extraVolumes[*].projected
projected items for all in one resources secrets, configmaps, and downward API
.spec.extraVolumes[*].projected.defaultMode
defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
.spec.extraVolumes[*].projected.sources
sources is the list of volume projections. Each entry in this list handles one source.
.spec.extraVolumes[*].projected.sources[*]
Projection that may be projected along with other supported volume types. Exactly one of these fields must be set.
.spec.extraVolumes[*].projected.sources[*].clusterTrustBundle
ClusterTrustBundle allows a pod to access the .spec.trustBundle field
of ClusterTrustBundle objects in an auto-updating file.
Alpha, gated by the ClusterTrustBundleProjection feature gate.
ClusterTrustBundle objects can either be selected by name, or by the combination of signer name and a label selector.
Kubelet performs aggressive normalization of the PEM contents written into the pod filesystem. Esoteric PEM features such as inter-block comments and block headers are stripped. Certificates are deduplicated. The ordering of certificates within the file is arbitrary, and Kubelet may change the order over time.
.spec.extraVolumes[*].projected.sources[*].clusterTrustBundle.labelSelector
Select all ClusterTrustBundles that match this label selector. Only has effect if signerName is set. Mutually-exclusive with name. If unset, interpreted as “match nothing”. If set but empty, interpreted as “match everything”.
.spec.extraVolumes[*].projected.sources[*].clusterTrustBundle.labelSelector.matchExpressions
matchExpressions is a list of label selector requirements. The requirements are ANDed.
.spec.extraVolumes[*].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.
.spec.extraVolumes[*].projected.sources[*].clusterTrustBundle.labelSelector.matchExpressions[*].key
key is the label key that the selector applies to.
.spec.extraVolumes[*].projected.sources[*].clusterTrustBundle.labelSelector.matchExpressions[*].operator
operator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
.spec.extraVolumes[*].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.
.spec.extraVolumes[*].projected.sources[*].clusterTrustBundle.labelSelector.matchExpressions[*].values[*]
.spec.extraVolumes[*].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.
.spec.extraVolumes[*].projected.sources[*].clusterTrustBundle.name
Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector.
.spec.extraVolumes[*].projected.sources[*].clusterTrustBundle.optional
If true, don’t block pod startup if the referenced ClusterTrustBundle(s) aren’t available. If using name, then the named ClusterTrustBundle is allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles.
.spec.extraVolumes[*].projected.sources[*].clusterTrustBundle.path
Relative path from the volume root to write the bundle.
.spec.extraVolumes[*].projected.sources[*].clusterTrustBundle.signerName
Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated.
.spec.extraVolumes[*].projected.sources[*].configMap
configMap information about the configMap data to project
.spec.extraVolumes[*].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 ‘..’.
.spec.extraVolumes[*].projected.sources[*].configMap.items[*]
Maps a string key to a path within a volume.
.spec.extraVolumes[*].projected.sources[*].configMap.items[*].key
key is the key to project.
.spec.extraVolumes[*].projected.sources[*].configMap.items[*].mode
mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
.spec.extraVolumes[*].projected.sources[*].configMap.items[*].path
path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element ‘..’. May not start with the string ‘..’.
.spec.extraVolumes[*].projected.sources[*].configMap.name
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
.spec.extraVolumes[*].projected.sources[*].configMap.optional
optional specify whether the ConfigMap or its keys must be defined
.spec.extraVolumes[*].projected.sources[*].downwardAPI
downwardAPI information about the downwardAPI data to project
.spec.extraVolumes[*].projected.sources[*].downwardAPI.items
Items is a list of DownwardAPIVolume file
.spec.extraVolumes[*].projected.sources[*].downwardAPI.items[*]
DownwardAPIVolumeFile represents information to create the file containing the pod field
.spec.extraVolumes[*].projected.sources[*].downwardAPI.items[*].fieldRef
Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.
.spec.extraVolumes[*].projected.sources[*].downwardAPI.items[*].fieldRef.apiVersion
Version of the schema the FieldPath is written in terms of, defaults to “v1”.
.spec.extraVolumes[*].projected.sources[*].downwardAPI.items[*].fieldRef.fieldPath
Path of the field to select in the specified API version.
.spec.extraVolumes[*].projected.sources[*].downwardAPI.items[*].mode
Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
.spec.extraVolumes[*].projected.sources[*].downwardAPI.items[*].path
Required: Path is the relative path name of the file to be created. Must not be absolute or contain the ‘..’ path. Must be utf-8 encoded. The first item of the relative path must not start with ‘..’
.spec.extraVolumes[*].projected.sources[*].downwardAPI.items[*].resourceFieldRef
Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
.spec.extraVolumes[*].projected.sources[*].downwardAPI.items[*].resourceFieldRef.containerName
Container name: required for volumes, optional for env vars
.spec.extraVolumes[*].projected.sources[*].downwardAPI.items[*].resourceFieldRef.divisor
Specifies the output format of the exposed resources, defaults to “1”
.spec.extraVolumes[*].projected.sources[*].downwardAPI.items[*].resourceFieldRef.resource
Required: resource to select
.spec.extraVolumes[*].projected.sources[*].secret
secret information about the secret data to project
.spec.extraVolumes[*].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 ‘..’.
.spec.extraVolumes[*].projected.sources[*].secret.items[*]
Maps a string key to a path within a volume.
.spec.extraVolumes[*].projected.sources[*].secret.items[*].key
key is the key to project.
.spec.extraVolumes[*].projected.sources[*].secret.items[*].mode
mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
.spec.extraVolumes[*].projected.sources[*].secret.items[*].path
path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element ‘..’. May not start with the string ‘..’.
.spec.extraVolumes[*].projected.sources[*].secret.name
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
.spec.extraVolumes[*].projected.sources[*].secret.optional
optional field specify whether the Secret or its key must be defined
.spec.extraVolumes[*].projected.sources[*].serviceAccountToken
serviceAccountToken is information about the serviceAccountToken data to project
.spec.extraVolumes[*].projected.sources[*].serviceAccountToken.audience
audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.
.spec.extraVolumes[*].projected.sources[*].serviceAccountToken.expirationSeconds
expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.
.spec.extraVolumes[*].projected.sources[*].serviceAccountToken.path
path is the path relative to the mount point of the file to project the token into.
.spec.extraVolumes[*].quobyte
quobyte represents a Quobyte mount on the host that shares a pod’s lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.
.spec.extraVolumes[*].quobyte.group
group to map volume access to Default is no group
.spec.extraVolumes[*].quobyte.readOnly
readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.
.spec.extraVolumes[*].quobyte.registry
registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes
.spec.extraVolumes[*].quobyte.tenant
tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin
.spec.extraVolumes[*].quobyte.user
user to map volume access to Defaults to serivceaccount user
.spec.extraVolumes[*].quobyte.volume
volume is a string that references an already created Quobyte volume by name.
.spec.extraVolumes[*].rbd
rbd represents a Rados Block Device mount on the host that shares a pod’s lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported. More info: https://examples.k8s.io/volumes/rbd/README.md
.spec.extraVolumes[*].rbd.fsType
fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: “ext4”, “xfs”, “ntfs”. Implicitly inferred to be “ext4” if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
.spec.extraVolumes[*].rbd.image
image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
.spec.extraVolumes[*].rbd.keyring
keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
.spec.extraVolumes[*].rbd.monitors
monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
.spec.extraVolumes[*].rbd.monitors[*]
.spec.extraVolumes[*].rbd.pool
pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
.spec.extraVolumes[*].rbd.readOnly
readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
.spec.extraVolumes[*].rbd.secretRef
secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
.spec.extraVolumes[*].rbd.secretRef.name
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
.spec.extraVolumes[*].rbd.user
user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
.spec.extraVolumes[*].scaleIO
scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.
.spec.extraVolumes[*].scaleIO.fsType
fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. “ext4”, “xfs”, “ntfs”. Default is “xfs”.
.spec.extraVolumes[*].scaleIO.gateway
gateway is the host address of the ScaleIO API Gateway.
.spec.extraVolumes[*].scaleIO.protectionDomain
protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.
.spec.extraVolumes[*].scaleIO.readOnly
readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
.spec.extraVolumes[*].scaleIO.secretRef
secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.
.spec.extraVolumes[*].scaleIO.secretRef.name
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
.spec.extraVolumes[*].scaleIO.sslEnabled
sslEnabled Flag enable/disable SSL communication with Gateway, default false
.spec.extraVolumes[*].scaleIO.storageMode
storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.
.spec.extraVolumes[*].scaleIO.storagePool
storagePool is the ScaleIO Storage Pool associated with the protection domain.
.spec.extraVolumes[*].scaleIO.system
system is the name of the storage system as configured in ScaleIO.
.spec.extraVolumes[*].scaleIO.volumeName
volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.
.spec.extraVolumes[*].secret
secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
.spec.extraVolumes[*].secret.defaultMode
defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
.spec.extraVolumes[*].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 ‘..’.
.spec.extraVolumes[*].secret.items[*]
Maps a string key to a path within a volume.
.spec.extraVolumes[*].secret.items[*].key
key is the key to project.
.spec.extraVolumes[*].secret.items[*].mode
mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
.spec.extraVolumes[*].secret.items[*].path
path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element ‘..’. May not start with the string ‘..’.
.spec.extraVolumes[*].secret.optional
optional field specify whether the Secret or its keys must be defined
.spec.extraVolumes[*].secret.secretName
secretName is the name of the secret in the pod’s namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
.spec.extraVolumes[*].storageos
storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported.
.spec.extraVolumes[*].storageos.fsType
fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. “ext4”, “xfs”, “ntfs”. Implicitly inferred to be “ext4” if unspecified.
.spec.extraVolumes[*].storageos.readOnly
readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
.spec.extraVolumes[*].storageos.secretRef
secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.
.spec.extraVolumes[*].storageos.secretRef.name
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
.spec.extraVolumes[*].storageos.volumeName
volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.
.spec.extraVolumes[*].storageos.volumeNamespace
volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod’s namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to “default” if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.
.spec.extraVolumes[*].vsphereVolume
vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver.
.spec.extraVolumes[*].vsphereVolume.fsType
fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. “ext4”, “xfs”, “ntfs”. Implicitly inferred to be “ext4” if unspecified.
.spec.extraVolumes[*].vsphereVolume.storagePolicyID
storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
.spec.extraVolumes[*].vsphereVolume.storagePolicyName
storagePolicyName is the storage Policy Based Management (SPBM) profile name.
.spec.extraVolumes[*].vsphereVolume.volumePath
volumePath is the path that identifies vSphere volume vmdk
.spec.image
ImageSpec defines settings for using a specific image and overwriting the default images used.
.spec.image.imagePullSecrets
Optional: ImagePullSecrets is a list of secret references that should be used as image pull secrets (e.g. when a private registry is used).
.spec.image.imagePullSecrets[*]
LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.
.spec.image.imagePullSecrets[*].name
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
.spec.image.repository
Repository is the container image repository to use for kcp containers. Defaults to ghcr.io/kcp-dev/kcp.
.spec.image.tag
Tag is the container image tag to use for kcp containers. Defaults to the latest kcp release that the operator supports.
.spec.kcpVirtualWorkspace
Optionally the kcp virtual-workspace can be deployed standalone. In this case, the Shard or RootShard will need to be configured to point to the VirtualWorkspace that serve the kcp virtual workspaces (apiexport, initializingworkspaces etc.). If this field is left blank, kcp the kcp-operator assumes that the in-process virtual workspace should be enabled on this shard.
.spec.kcpVirtualWorkspace.name
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
.spec.logging
Optional: Logging configures the logging settings for the shard.
.spec.logging.level
Level sets the verbosity level for the component. Higher values mean more verbose logging. This corresponds to the -v flag in kcp components.
.spec.replicas
Replicas configures how many instances of this shard run in parallel. Defaults to 2 if not set.
.spec.resources
Resources overrides the default resource requests and limits.
.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.
.spec.resources.claims[*]
ResourceClaim references one entry in PodSpec.ResourceClaims.
.spec.resources.claims[*].name
Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.
.spec.resources.claims[*].request
Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request.
.spec.resources.limits
Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
.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/
.spec.rootShard
.spec.rootShard.ref
Reference references a local RootShard object.
.spec.rootShard.ref.name
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
.spec.serviceTemplate
Optional: ServiceTemplate configures the Kubernetes Service created for this shard.
.spec.serviceTemplate.metadata
ServiceMetadataTemplate defines the default labels and annotations to be copied to the Kubernetes Service resource.
.spec.serviceTemplate.metadata.annotations
Annotations is a key value map to be copied to the target Kubernetes Service.
.spec.serviceTemplate.metadata.labels
Labels is a key value map to be copied to the target Kubernetes Service.
.spec.serviceTemplate.spec
.spec.serviceTemplate.spec.clusterIP
.spec.serviceTemplate.spec.type
Service Type string describes ingress methods for a service
.spec.shardBaseURL
ShardBaseURL is the base URL under which this shard should be reachable. This is used to configure the external URL. If not provided, the operator will use kubernetes service address to generate it.
.status
ShardStatus defines the observed state of Shard
.status.conditions
.status.conditions[*]
Condition contains details for one aspect of the current state of this API Resource.
.status.conditions[*].lastTransitionTime
lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
.status.conditions[*].message
message is a human readable message indicating details about the transition. This may be an empty string.
.status.conditions[*].observedGeneration
observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.
.status.conditions[*].reason
reason contains a programmatic identifier indicating the reason for the condition’s last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
.status.conditions[*].status
status of the condition, one of True, False, Unknown.
.status.conditions[*].type
type of condition in CamelCase or in foo.example.com/CamelCase.