7444 lines
452 KiB
YAML
7444 lines
452 KiB
YAML
---
|
||
apiVersion: apiextensions.k8s.io/v1
|
||
kind: CustomResourceDefinition
|
||
metadata:
|
||
annotations:
|
||
controller-gen.kubebuilder.io/version: v0.11.3
|
||
creationTimestamp: null
|
||
name: dorisclusters.doris.selectdb.com
|
||
spec:
|
||
group: doris.selectdb.com
|
||
names:
|
||
kind: DorisCluster
|
||
listKind: DorisClusterList
|
||
plural: dorisclusters
|
||
shortNames:
|
||
- dcr
|
||
singular: doriscluster
|
||
scope: Namespaced
|
||
versions:
|
||
- additionalPrinterColumns:
|
||
- jsonPath: .status.feStatus.componentCondition.phase
|
||
name: FeStatus
|
||
type: string
|
||
- jsonPath: .status.beStatus.componentCondition.phase
|
||
name: BeStatus
|
||
type: string
|
||
- jsonPath: .status.cnStatus.componentCondition.phase
|
||
name: CnStatus
|
||
type: string
|
||
- jsonPath: .status.brokerStatus.componentCondition.phase
|
||
name: BrokerStatus
|
||
type: string
|
||
name: v1
|
||
schema:
|
||
openAPIV3Schema:
|
||
description: DorisCluster is the Schema for the dorisclusters API
|
||
properties:
|
||
apiVersion:
|
||
description: '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'
|
||
type: string
|
||
kind:
|
||
description: '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'
|
||
type: string
|
||
metadata:
|
||
type: object
|
||
spec:
|
||
description: DorisClusterSpec defines the desired state of DorisCluster
|
||
properties:
|
||
adminUser:
|
||
description: administrator for register or drop component from fe
|
||
cluster. adminUser for all component register and operator drop
|
||
component.
|
||
properties:
|
||
name:
|
||
description: the user name for admin service's node.
|
||
type: string
|
||
password:
|
||
description: password, login to doris db.
|
||
type: string
|
||
type: object
|
||
authSecret:
|
||
description: the name of secret that type is `kubernetes.io/basic-auth`
|
||
and contains keys username, password for management doris node in
|
||
cluster as fe, be register. the password key is `password`. the
|
||
username defaults to `root` and is omitempty.
|
||
type: string
|
||
beSpec:
|
||
description: defines the be cluster state pod that will be created
|
||
by operator.
|
||
properties:
|
||
affinity:
|
||
description: If specified, the pod's scheduling constraints.
|
||
properties:
|
||
nodeAffinity:
|
||
description: Describes node affinity scheduling rules for
|
||
the pod.
|
||
properties:
|
||
preferredDuringSchedulingIgnoredDuringExecution:
|
||
description: 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.
|
||
items:
|
||
description: 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).
|
||
properties:
|
||
preference:
|
||
description: A node selector term, associated with
|
||
the corresponding weight.
|
||
properties:
|
||
matchExpressions:
|
||
description: A list of node selector requirements
|
||
by node's labels.
|
||
items:
|
||
description: A node selector requirement is
|
||
a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: The label key that the selector
|
||
applies to.
|
||
type: string
|
||
operator:
|
||
description: Represents a key's relationship
|
||
to a set of values. Valid operators
|
||
are In, NotIn, Exists, DoesNotExist.
|
||
Gt, and Lt.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchFields:
|
||
description: A list of node selector requirements
|
||
by node's fields.
|
||
items:
|
||
description: A node selector requirement is
|
||
a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: The label key that the selector
|
||
applies to.
|
||
type: string
|
||
operator:
|
||
description: Represents a key's relationship
|
||
to a set of values. Valid operators
|
||
are In, NotIn, Exists, DoesNotExist.
|
||
Gt, and Lt.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
weight:
|
||
description: Weight associated with matching the
|
||
corresponding nodeSelectorTerm, in the range 1-100.
|
||
format: int32
|
||
type: integer
|
||
required:
|
||
- preference
|
||
- weight
|
||
type: object
|
||
type: array
|
||
requiredDuringSchedulingIgnoredDuringExecution:
|
||
description: 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.
|
||
properties:
|
||
nodeSelectorTerms:
|
||
description: Required. A list of node selector terms.
|
||
The terms are ORed.
|
||
items:
|
||
description: 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.
|
||
properties:
|
||
matchExpressions:
|
||
description: A list of node selector requirements
|
||
by node's labels.
|
||
items:
|
||
description: A node selector requirement is
|
||
a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: The label key that the selector
|
||
applies to.
|
||
type: string
|
||
operator:
|
||
description: Represents a key's relationship
|
||
to a set of values. Valid operators
|
||
are In, NotIn, Exists, DoesNotExist.
|
||
Gt, and Lt.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchFields:
|
||
description: A list of node selector requirements
|
||
by node's fields.
|
||
items:
|
||
description: A node selector requirement is
|
||
a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: The label key that the selector
|
||
applies to.
|
||
type: string
|
||
operator:
|
||
description: Represents a key's relationship
|
||
to a set of values. Valid operators
|
||
are In, NotIn, Exists, DoesNotExist.
|
||
Gt, and Lt.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
type: array
|
||
required:
|
||
- nodeSelectorTerms
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
type: object
|
||
podAffinity:
|
||
description: Describes pod affinity scheduling rules (e.g.
|
||
co-locate this pod in the same node, zone, etc. as some
|
||
other pod(s)).
|
||
properties:
|
||
preferredDuringSchedulingIgnoredDuringExecution:
|
||
description: 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.
|
||
items:
|
||
description: The weights of all of the matched WeightedPodAffinityTerm
|
||
fields are added per-node to find the most preferred
|
||
node(s)
|
||
properties:
|
||
podAffinityTerm:
|
||
description: Required. A pod affinity term, associated
|
||
with the corresponding weight.
|
||
properties:
|
||
labelSelector:
|
||
description: A label query over a set of resources,
|
||
in this case pods.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list
|
||
of label selector requirements. The requirements
|
||
are ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values,
|
||
a key, and an operator that relates
|
||
the key and values.
|
||
properties:
|
||
key:
|
||
description: key is the label key
|
||
that the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a
|
||
key's relationship to a set of values.
|
||
Valid operators are In, NotIn, Exists
|
||
and DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaceSelector:
|
||
description: 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.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list
|
||
of label selector requirements. The requirements
|
||
are ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values,
|
||
a key, and an operator that relates
|
||
the key and values.
|
||
properties:
|
||
key:
|
||
description: key is the label key
|
||
that the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a
|
||
key's relationship to a set of values.
|
||
Valid operators are In, NotIn, Exists
|
||
and DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaces:
|
||
description: 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".
|
||
items:
|
||
type: string
|
||
type: array
|
||
topologyKey:
|
||
description: 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.
|
||
type: string
|
||
required:
|
||
- topologyKey
|
||
type: object
|
||
weight:
|
||
description: weight associated with matching the
|
||
corresponding podAffinityTerm, in the range 1-100.
|
||
format: int32
|
||
type: integer
|
||
required:
|
||
- podAffinityTerm
|
||
- weight
|
||
type: object
|
||
type: array
|
||
requiredDuringSchedulingIgnoredDuringExecution:
|
||
description: 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.
|
||
items:
|
||
description: Defines a set of pods (namely those matching
|
||
the labelSelector relative to the given namespace(s))
|
||
that this pod should be co-located (affinity) or not
|
||
co-located (anti-affinity) with, where co-located
|
||
is defined as running on a node whose value of the
|
||
label with key <topologyKey> matches that of any node
|
||
on which a pod of the set of pods is running
|
||
properties:
|
||
labelSelector:
|
||
description: A label query over a set of resources,
|
||
in this case pods.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list of label
|
||
selector requirements. The requirements are
|
||
ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: key is the label key that
|
||
the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a key's
|
||
relationship to a set of values. Valid
|
||
operators are In, NotIn, Exists and
|
||
DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaceSelector:
|
||
description: 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.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list of label
|
||
selector requirements. The requirements are
|
||
ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: key is the label key that
|
||
the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a key's
|
||
relationship to a set of values. Valid
|
||
operators are In, NotIn, Exists and
|
||
DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaces:
|
||
description: 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".
|
||
items:
|
||
type: string
|
||
type: array
|
||
topologyKey:
|
||
description: 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.
|
||
type: string
|
||
required:
|
||
- topologyKey
|
||
type: object
|
||
type: array
|
||
type: object
|
||
podAntiAffinity:
|
||
description: Describes pod anti-affinity scheduling rules
|
||
(e.g. avoid putting this pod in the same node, zone, etc.
|
||
as some other pod(s)).
|
||
properties:
|
||
preferredDuringSchedulingIgnoredDuringExecution:
|
||
description: 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.
|
||
items:
|
||
description: The weights of all of the matched WeightedPodAffinityTerm
|
||
fields are added per-node to find the most preferred
|
||
node(s)
|
||
properties:
|
||
podAffinityTerm:
|
||
description: Required. A pod affinity term, associated
|
||
with the corresponding weight.
|
||
properties:
|
||
labelSelector:
|
||
description: A label query over a set of resources,
|
||
in this case pods.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list
|
||
of label selector requirements. The requirements
|
||
are ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values,
|
||
a key, and an operator that relates
|
||
the key and values.
|
||
properties:
|
||
key:
|
||
description: key is the label key
|
||
that the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a
|
||
key's relationship to a set of values.
|
||
Valid operators are In, NotIn, Exists
|
||
and DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaceSelector:
|
||
description: 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.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list
|
||
of label selector requirements. The requirements
|
||
are ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values,
|
||
a key, and an operator that relates
|
||
the key and values.
|
||
properties:
|
||
key:
|
||
description: key is the label key
|
||
that the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a
|
||
key's relationship to a set of values.
|
||
Valid operators are In, NotIn, Exists
|
||
and DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaces:
|
||
description: 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".
|
||
items:
|
||
type: string
|
||
type: array
|
||
topologyKey:
|
||
description: 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.
|
||
type: string
|
||
required:
|
||
- topologyKey
|
||
type: object
|
||
weight:
|
||
description: weight associated with matching the
|
||
corresponding podAffinityTerm, in the range 1-100.
|
||
format: int32
|
||
type: integer
|
||
required:
|
||
- podAffinityTerm
|
||
- weight
|
||
type: object
|
||
type: array
|
||
requiredDuringSchedulingIgnoredDuringExecution:
|
||
description: 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.
|
||
items:
|
||
description: Defines a set of pods (namely those matching
|
||
the labelSelector relative to the given namespace(s))
|
||
that this pod should be co-located (affinity) or not
|
||
co-located (anti-affinity) with, where co-located
|
||
is defined as running on a node whose value of the
|
||
label with key <topologyKey> matches that of any node
|
||
on which a pod of the set of pods is running
|
||
properties:
|
||
labelSelector:
|
||
description: A label query over a set of resources,
|
||
in this case pods.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list of label
|
||
selector requirements. The requirements are
|
||
ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: key is the label key that
|
||
the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a key's
|
||
relationship to a set of values. Valid
|
||
operators are In, NotIn, Exists and
|
||
DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaceSelector:
|
||
description: 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.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list of label
|
||
selector requirements. The requirements are
|
||
ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: key is the label key that
|
||
the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a key's
|
||
relationship to a set of values. Valid
|
||
operators are In, NotIn, Exists and
|
||
DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaces:
|
||
description: 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".
|
||
items:
|
||
type: string
|
||
type: array
|
||
topologyKey:
|
||
description: 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.
|
||
type: string
|
||
required:
|
||
- topologyKey
|
||
type: object
|
||
type: array
|
||
type: object
|
||
type: object
|
||
annotations:
|
||
additionalProperties:
|
||
type: string
|
||
description: annotation for fe pods. user can config monitor annotation
|
||
for collect to monitor system.
|
||
type: object
|
||
claims:
|
||
description: "Claims lists the names of resources, defined in
|
||
spec.resourceClaims, that are used by this container. \n This
|
||
is an alpha field and requires enabling the DynamicResourceAllocation
|
||
feature gate. \n This field is immutable."
|
||
items:
|
||
description: ResourceClaim references one entry in PodSpec.ResourceClaims.
|
||
properties:
|
||
name:
|
||
description: 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.
|
||
type: string
|
||
required:
|
||
- name
|
||
type: object
|
||
type: array
|
||
x-kubernetes-list-map-keys:
|
||
- name
|
||
x-kubernetes-list-type: map
|
||
configMapInfo:
|
||
description: the reference for cn configMap.
|
||
properties:
|
||
configMapName:
|
||
description: ConfigMapName mapped the configuration files
|
||
in the doris 'conf/' directory. such as 'fe.conf', 'be.conf'.
|
||
If HDFS access is involved, there may also be 'core-site.xml'
|
||
and other files. doris-operator mounts these configuration
|
||
files in the '/etc/doris' directory by default. links them
|
||
to the 'conf/' directory of the doris component through
|
||
soft links.
|
||
type: string
|
||
configMaps:
|
||
description: ConfigMaps can mount multiple configmaps to the
|
||
specified path. The mounting path of configmap cannot be
|
||
repeated.
|
||
items:
|
||
properties:
|
||
configMapName:
|
||
description: name of configmap that needs to mount.
|
||
type: string
|
||
mountPath:
|
||
description: Current ConfigMap Mount Path. If MountConfigMapInfo
|
||
belongs to the same ConfigMapInfo, their MountPath
|
||
cannot be repeated.
|
||
type: string
|
||
type: object
|
||
type: array
|
||
resolveKey:
|
||
description: 'Deprecated: This configuration has been abandoned
|
||
and will be cleared in version 1.7.0. It is currently forced
|
||
to be ''fe.conf'', ''be.conf'', ''apache_hdfs_broker.conf''
|
||
It is no longer effective. the configuration content will
|
||
not take effect.'
|
||
type: string
|
||
type: object
|
||
containerSecurityContext:
|
||
description: Security context for all containers running in the
|
||
pod (unless they override it).
|
||
properties:
|
||
allowPrivilegeEscalation:
|
||
description: 'AllowPrivilegeEscalation controls whether a
|
||
process can gain more privileges than its parent process.
|
||
This bool directly controls if the no_new_privs flag will
|
||
be set on the container process. AllowPrivilegeEscalation
|
||
is true always when the container is: 1) run as Privileged
|
||
2) has CAP_SYS_ADMIN Note that this field cannot be set
|
||
when spec.os.name is windows.'
|
||
type: boolean
|
||
capabilities:
|
||
description: The capabilities to add/drop when running containers.
|
||
Defaults to the default set of capabilities granted by the
|
||
container runtime. Note that this field cannot be set when
|
||
spec.os.name is windows.
|
||
properties:
|
||
add:
|
||
description: Added capabilities
|
||
items:
|
||
description: Capability represent POSIX capabilities
|
||
type
|
||
type: string
|
||
type: array
|
||
drop:
|
||
description: Removed capabilities
|
||
items:
|
||
description: Capability represent POSIX capabilities
|
||
type
|
||
type: string
|
||
type: array
|
||
type: object
|
||
privileged:
|
||
description: Run container in privileged mode. Processes in
|
||
privileged containers are essentially equivalent to root
|
||
on the host. Defaults to false. Note that this field cannot
|
||
be set when spec.os.name is windows.
|
||
type: boolean
|
||
procMount:
|
||
description: procMount denotes the type of proc mount to use
|
||
for the containers. The default is DefaultProcMount which
|
||
uses the container runtime defaults for readonly paths and
|
||
masked paths. This requires the ProcMountType feature flag
|
||
to be enabled. Note that this field cannot be set when spec.os.name
|
||
is windows.
|
||
type: string
|
||
readOnlyRootFilesystem:
|
||
description: Whether this container has a read-only root filesystem.
|
||
Default is false. Note that this field cannot be set when
|
||
spec.os.name is windows.
|
||
type: boolean
|
||
runAsGroup:
|
||
description: The GID to run the entrypoint of the container
|
||
process. Uses runtime default if unset. May also be set
|
||
in PodSecurityContext. If set in both SecurityContext and
|
||
PodSecurityContext, the value specified in SecurityContext
|
||
takes precedence. Note that this field cannot be set when
|
||
spec.os.name is windows.
|
||
format: int64
|
||
type: integer
|
||
runAsNonRoot:
|
||
description: Indicates that the container must run as a non-root
|
||
user. If true, the Kubelet will validate the image at runtime
|
||
to ensure that it does not run as UID 0 (root) and fail
|
||
to start the container if it does. If unset or false, no
|
||
such validation will be performed. May also be set in PodSecurityContext. If
|
||
set in both SecurityContext and PodSecurityContext, the
|
||
value specified in SecurityContext takes precedence.
|
||
type: boolean
|
||
runAsUser:
|
||
description: The UID to run the entrypoint of the container
|
||
process. Defaults to user specified in image metadata if
|
||
unspecified. May also be set in PodSecurityContext. If
|
||
set in both SecurityContext and PodSecurityContext, the
|
||
value specified in SecurityContext takes precedence. Note
|
||
that this field cannot be set when spec.os.name is windows.
|
||
format: int64
|
||
type: integer
|
||
seLinuxOptions:
|
||
description: The SELinux context to be applied to the container.
|
||
If unspecified, the container runtime will allocate a random
|
||
SELinux context for each container. May also be set in
|
||
PodSecurityContext. If set in both SecurityContext and
|
||
PodSecurityContext, the value specified in SecurityContext
|
||
takes precedence. Note that this field cannot be set when
|
||
spec.os.name is windows.
|
||
properties:
|
||
level:
|
||
description: Level is SELinux level label that applies
|
||
to the container.
|
||
type: string
|
||
role:
|
||
description: Role is a SELinux role label that applies
|
||
to the container.
|
||
type: string
|
||
type:
|
||
description: Type is a SELinux type label that applies
|
||
to the container.
|
||
type: string
|
||
user:
|
||
description: User is a SELinux user label that applies
|
||
to the container.
|
||
type: string
|
||
type: object
|
||
seccompProfile:
|
||
description: The seccomp options to use by this container.
|
||
If seccomp options are provided at both the pod & container
|
||
level, the container options override the pod options. Note
|
||
that this field cannot be set when spec.os.name is windows.
|
||
properties:
|
||
localhostProfile:
|
||
description: localhostProfile indicates a profile defined
|
||
in a file on the node should be used. The profile must
|
||
be preconfigured on the node to work. Must be a descending
|
||
path, relative to the kubelet's configured seccomp profile
|
||
location. Must only be set if type is "Localhost".
|
||
type: string
|
||
type:
|
||
description: "type indicates which kind of seccomp profile
|
||
will be applied. Valid options are: \n Localhost - a
|
||
profile defined in a file on the node should be used.
|
||
RuntimeDefault - the container runtime default profile
|
||
should be used. Unconfined - no profile should be applied."
|
||
type: string
|
||
required:
|
||
- type
|
||
type: object
|
||
windowsOptions:
|
||
description: The Windows specific settings applied to all
|
||
containers. If unspecified, the options from the PodSecurityContext
|
||
will be used. If set in both SecurityContext and PodSecurityContext,
|
||
the value specified in SecurityContext takes precedence.
|
||
Note that this field cannot be set when spec.os.name is
|
||
linux.
|
||
properties:
|
||
gmsaCredentialSpec:
|
||
description: GMSACredentialSpec is where the GMSA admission
|
||
webhook (https://github.com/kubernetes-sigs/windows-gmsa)
|
||
inlines the contents of the GMSA credential spec named
|
||
by the GMSACredentialSpecName field.
|
||
type: string
|
||
gmsaCredentialSpecName:
|
||
description: GMSACredentialSpecName is the name of the
|
||
GMSA credential spec to use.
|
||
type: string
|
||
hostProcess:
|
||
description: HostProcess determines if a container should
|
||
be run as a 'Host Process' container. This field is
|
||
alpha-level and will only be honored by components that
|
||
enable the WindowsHostProcessContainers feature flag.
|
||
Setting this field without the feature flag will result
|
||
in errors when validating the Pod. All of a Pod's containers
|
||
must have the same effective HostProcess value (it is
|
||
not allowed to have a mix of HostProcess containers
|
||
and non-HostProcess containers). In addition, if HostProcess
|
||
is true then HostNetwork must also be set to true.
|
||
type: boolean
|
||
runAsUserName:
|
||
description: The UserName in Windows to run the entrypoint
|
||
of the container process. Defaults to the user specified
|
||
in image metadata if unspecified. May also be set in
|
||
PodSecurityContext. If set in both SecurityContext and
|
||
PodSecurityContext, the value specified in SecurityContext
|
||
takes precedence.
|
||
type: string
|
||
type: object
|
||
type: object
|
||
envVars:
|
||
description: cnEnvVars is a slice of environment variables that
|
||
are added to the pods, the default is empty.
|
||
items:
|
||
description: EnvVar represents an environment variable present
|
||
in a Container.
|
||
properties:
|
||
name:
|
||
description: Name of the environment variable. Must be a
|
||
C_IDENTIFIER.
|
||
type: string
|
||
value:
|
||
description: 'Variable references $(VAR_NAME) are expanded
|
||
using the previously defined environment variables in
|
||
the container and any service environment variables. If
|
||
a variable cannot be resolved, the reference in the input
|
||
string will be unchanged. Double $$ are reduced to a single
|
||
$, which allows for escaping the $(VAR_NAME) syntax: i.e.
|
||
"$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
|
||
Escaped references will never be expanded, regardless
|
||
of whether the variable exists or not. Defaults to "".'
|
||
type: string
|
||
valueFrom:
|
||
description: Source for the environment variable's value.
|
||
Cannot be used if value is not empty.
|
||
properties:
|
||
configMapKeyRef:
|
||
description: Selects a key of a ConfigMap.
|
||
properties:
|
||
key:
|
||
description: The key to select.
|
||
type: string
|
||
name:
|
||
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
|
||
TODO: Add other useful fields. apiVersion, kind,
|
||
uid?'
|
||
type: string
|
||
optional:
|
||
description: Specify whether the ConfigMap or its
|
||
key must be defined
|
||
type: boolean
|
||
required:
|
||
- key
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
fieldRef:
|
||
description: 'Selects a field of the pod: supports metadata.name,
|
||
metadata.namespace, `metadata.labels[''<KEY>'']`,
|
||
`metadata.annotations[''<KEY>'']`, spec.nodeName,
|
||
spec.serviceAccountName, status.hostIP, status.podIP,
|
||
status.podIPs.'
|
||
properties:
|
||
apiVersion:
|
||
description: Version of the schema the FieldPath
|
||
is written in terms of, defaults to "v1".
|
||
type: string
|
||
fieldPath:
|
||
description: Path of the field to select in the
|
||
specified API version.
|
||
type: string
|
||
required:
|
||
- fieldPath
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
resourceFieldRef:
|
||
description: 'Selects a resource of the container: only
|
||
resources limits and requests (limits.cpu, limits.memory,
|
||
limits.ephemeral-storage, requests.cpu, requests.memory
|
||
and requests.ephemeral-storage) are currently supported.'
|
||
properties:
|
||
containerName:
|
||
description: 'Container name: required for volumes,
|
||
optional for env vars'
|
||
type: string
|
||
divisor:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
description: Specifies the output format of the
|
||
exposed resources, defaults to "1"
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
resource:
|
||
description: 'Required: resource to select'
|
||
type: string
|
||
required:
|
||
- resource
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
secretKeyRef:
|
||
description: Selects a key of a secret in the pod's
|
||
namespace
|
||
properties:
|
||
key:
|
||
description: The key of the secret to select from. Must
|
||
be a valid secret key.
|
||
type: string
|
||
name:
|
||
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
|
||
TODO: Add other useful fields. apiVersion, kind,
|
||
uid?'
|
||
type: string
|
||
optional:
|
||
description: Specify whether the Secret or its key
|
||
must be defined
|
||
type: boolean
|
||
required:
|
||
- key
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
type: object
|
||
required:
|
||
- name
|
||
type: object
|
||
type: array
|
||
feAddress:
|
||
description: specify register fe addresses
|
||
properties:
|
||
ServiceName:
|
||
description: the service name that proxy fe on k8s. the service
|
||
must in same namespace with fe.
|
||
type: string
|
||
endpoints:
|
||
description: the fe addresses if not deploy by crd, user can
|
||
use k8s deploy fe observer.
|
||
properties:
|
||
:address:
|
||
description: the ip or domain array.
|
||
items:
|
||
type: string
|
||
type: array
|
||
port:
|
||
description: the fe port that for query. the field `query_port`
|
||
defines in fe config.
|
||
type: integer
|
||
type: object
|
||
type: object
|
||
hostAliases:
|
||
description: HostAliases is an optional list of hosts and IPs
|
||
that will be injected into the pod's hosts file if specified.
|
||
This is only valid for non-hostNetwork pods.
|
||
items:
|
||
description: HostAlias holds the mapping between IP and hostnames
|
||
that will be injected as an entry in the pod's hosts file.
|
||
properties:
|
||
hostnames:
|
||
description: Hostnames for the above IP address.
|
||
items:
|
||
type: string
|
||
type: array
|
||
ip:
|
||
description: IP address of the host file entry.
|
||
type: string
|
||
type: object
|
||
type: array
|
||
image:
|
||
description: Image for a doris cn deployment.
|
||
type: string
|
||
imagePullSecrets:
|
||
description: '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'
|
||
items:
|
||
description: LocalObjectReference contains enough information
|
||
to let you locate the referenced object inside the same namespace.
|
||
properties:
|
||
name:
|
||
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
|
||
TODO: Add other useful fields. apiVersion, kind, uid?'
|
||
type: string
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
type: array
|
||
limits:
|
||
additionalProperties:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
description: 'Limits describes the maximum amount of compute resources
|
||
allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
|
||
type: object
|
||
nodeSelector:
|
||
additionalProperties:
|
||
type: string
|
||
description: (Optional) If specified, the pod's nodeSelector,displayName="Map
|
||
of nodeSelectors to match when scheduling pods on nodes"
|
||
type: object
|
||
persistentVolumes:
|
||
items:
|
||
description: PersistentVolume defines volume information and
|
||
container mount information.
|
||
properties:
|
||
annotations:
|
||
additionalProperties:
|
||
type: string
|
||
description: Annotation for PVC pods. Users can adapt the
|
||
storage authentication and pv binding of the cloud platform
|
||
through configuration. It only takes effect in the first
|
||
configuration and cannot be added or modified later.
|
||
type: object
|
||
mountPath:
|
||
description: the mount path for component service.
|
||
type: string
|
||
name:
|
||
description: the volume name associate with
|
||
type: string
|
||
persistentVolumeClaimSpec:
|
||
description: PersistentVolumeClaimSpec is a list of claim
|
||
spec about storage that pods are required.
|
||
properties:
|
||
accessModes:
|
||
description: 'accessModes contains the desired access
|
||
modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1'
|
||
items:
|
||
type: string
|
||
type: array
|
||
dataSource:
|
||
description: '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.'
|
||
properties:
|
||
apiGroup:
|
||
description: 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.
|
||
type: string
|
||
kind:
|
||
description: Kind is the type of resource being
|
||
referenced
|
||
type: string
|
||
name:
|
||
description: Name is the name of resource being
|
||
referenced
|
||
type: string
|
||
required:
|
||
- kind
|
||
- name
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
dataSourceRef:
|
||
description: '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.'
|
||
properties:
|
||
apiGroup:
|
||
description: 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.
|
||
type: string
|
||
kind:
|
||
description: Kind is the type of resource being
|
||
referenced
|
||
type: string
|
||
name:
|
||
description: Name is the name of resource being
|
||
referenced
|
||
type: string
|
||
namespace:
|
||
description: 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.
|
||
type: string
|
||
required:
|
||
- kind
|
||
- name
|
||
type: object
|
||
resources:
|
||
description: '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'
|
||
properties:
|
||
claims:
|
||
description: "Claims lists the names of resources,
|
||
defined in spec.resourceClaims, that are used
|
||
by this container. \n This is an alpha field and
|
||
requires enabling the DynamicResourceAllocation
|
||
feature gate. \n This field is immutable."
|
||
items:
|
||
description: ResourceClaim references one entry
|
||
in PodSpec.ResourceClaims.
|
||
properties:
|
||
name:
|
||
description: 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.
|
||
type: string
|
||
required:
|
||
- name
|
||
type: object
|
||
type: array
|
||
x-kubernetes-list-map-keys:
|
||
- name
|
||
x-kubernetes-list-type: map
|
||
limits:
|
||
additionalProperties:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
description: 'Limits describes the maximum amount
|
||
of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
|
||
type: object
|
||
requests:
|
||
additionalProperties:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
description: 'Requests describes the minimum amount
|
||
of compute resources required. If Requests is
|
||
omitted for a container, it defaults to Limits
|
||
if that is explicitly specified, otherwise to
|
||
an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
|
||
type: object
|
||
type: object
|
||
selector:
|
||
description: selector is a label query over volumes
|
||
to consider for binding.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list of label
|
||
selector requirements. The requirements are ANDed.
|
||
items:
|
||
description: A label selector requirement is a
|
||
selector that contains values, a key, and an
|
||
operator that relates the key and values.
|
||
properties:
|
||
key:
|
||
description: key is the label key that the
|
||
selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a key's relationship
|
||
to a set of values. Valid operators are
|
||
In, NotIn, Exists and DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
storageClassName:
|
||
description: 'storageClassName is the name of the StorageClass
|
||
required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1'
|
||
type: string
|
||
volumeMode:
|
||
description: volumeMode defines what type of volume
|
||
is required by the claim. Value of Filesystem is implied
|
||
when not included in claim spec.
|
||
type: string
|
||
volumeName:
|
||
description: volumeName is the binding reference to
|
||
the PersistentVolume backing this claim.
|
||
type: string
|
||
type: object
|
||
provisioner:
|
||
description: defines pvc provisioner
|
||
type: string
|
||
type: object
|
||
type: array
|
||
podLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: podLabels for user selector or classify pods
|
||
type: object
|
||
replicas:
|
||
description: Replicas is the number of desired cn Pod.
|
||
format: int32
|
||
minimum: 0
|
||
type: integer
|
||
requests:
|
||
additionalProperties:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
description: 'Requests describes the minimum amount of compute
|
||
resources required. If Requests is omitted for a container,
|
||
it defaults to Limits if that is explicitly specified, otherwise
|
||
to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
|
||
type: object
|
||
securityContext:
|
||
description: Security context for pod.
|
||
properties:
|
||
fsGroup:
|
||
description: "A special supplemental group that applies to
|
||
all containers in a pod. Some volume types allow the Kubelet
|
||
to change the ownership of that volume to be owned by the
|
||
pod: \n 1. The owning GID will be the FSGroup 2. The setgid
|
||
bit is set (new files created in the volume will be owned
|
||
by FSGroup) 3. The permission bits are OR'd with rw-rw----
|
||
\n If unset, the Kubelet will not modify the ownership and
|
||
permissions of any volume. Note that this field cannot be
|
||
set when spec.os.name is windows."
|
||
format: int64
|
||
type: integer
|
||
fsGroupChangePolicy:
|
||
description: 'fsGroupChangePolicy defines behavior of changing
|
||
ownership and permission of the volume before being exposed
|
||
inside Pod. This field will only apply to volume types which
|
||
support fsGroup based ownership(and permissions). It will
|
||
have no effect on ephemeral volume types such as: secret,
|
||
configmaps and emptydir. Valid values are "OnRootMismatch"
|
||
and "Always". If not specified, "Always" is used. Note that
|
||
this field cannot be set when spec.os.name is windows.'
|
||
type: string
|
||
runAsGroup:
|
||
description: The GID to run the entrypoint of the container
|
||
process. Uses runtime default if unset. May also be set
|
||
in SecurityContext. If set in both SecurityContext and
|
||
PodSecurityContext, the value specified in SecurityContext
|
||
takes precedence for that container. Note that this field
|
||
cannot be set when spec.os.name is windows.
|
||
format: int64
|
||
type: integer
|
||
runAsNonRoot:
|
||
description: Indicates that the container must run as a non-root
|
||
user. If true, the Kubelet will validate the image at runtime
|
||
to ensure that it does not run as UID 0 (root) and fail
|
||
to start the container if it does. If unset or false, no
|
||
such validation will be performed. May also be set in SecurityContext. If
|
||
set in both SecurityContext and PodSecurityContext, the
|
||
value specified in SecurityContext takes precedence.
|
||
type: boolean
|
||
runAsUser:
|
||
description: The UID to run the entrypoint of the container
|
||
process. Defaults to user specified in image metadata if
|
||
unspecified. May also be set in SecurityContext. If set
|
||
in both SecurityContext and PodSecurityContext, the value
|
||
specified in SecurityContext takes precedence for that container.
|
||
Note that this field cannot be set when spec.os.name is
|
||
windows.
|
||
format: int64
|
||
type: integer
|
||
seLinuxOptions:
|
||
description: The SELinux context to be applied to all containers.
|
||
If unspecified, the container runtime will allocate a random
|
||
SELinux context for each container. May also be set in
|
||
SecurityContext. If set in both SecurityContext and PodSecurityContext,
|
||
the value specified in SecurityContext takes precedence
|
||
for that container. Note that this field cannot be set when
|
||
spec.os.name is windows.
|
||
properties:
|
||
level:
|
||
description: Level is SELinux level label that applies
|
||
to the container.
|
||
type: string
|
||
role:
|
||
description: Role is a SELinux role label that applies
|
||
to the container.
|
||
type: string
|
||
type:
|
||
description: Type is a SELinux type label that applies
|
||
to the container.
|
||
type: string
|
||
user:
|
||
description: User is a SELinux user label that applies
|
||
to the container.
|
||
type: string
|
||
type: object
|
||
seccompProfile:
|
||
description: The seccomp options to use by the containers
|
||
in this pod. Note that this field cannot be set when spec.os.name
|
||
is windows.
|
||
properties:
|
||
localhostProfile:
|
||
description: localhostProfile indicates a profile defined
|
||
in a file on the node should be used. The profile must
|
||
be preconfigured on the node to work. Must be a descending
|
||
path, relative to the kubelet's configured seccomp profile
|
||
location. Must only be set if type is "Localhost".
|
||
type: string
|
||
type:
|
||
description: "type indicates which kind of seccomp profile
|
||
will be applied. Valid options are: \n Localhost - a
|
||
profile defined in a file on the node should be used.
|
||
RuntimeDefault - the container runtime default profile
|
||
should be used. Unconfined - no profile should be applied."
|
||
type: string
|
||
required:
|
||
- type
|
||
type: object
|
||
supplementalGroups:
|
||
items:
|
||
format: int64
|
||
type: integer
|
||
type: array
|
||
sysctls:
|
||
description: Sysctls hold a list of namespaced sysctls used
|
||
for the pod. Pods with unsupported sysctls (by the container
|
||
runtime) might fail to launch. Note that this field cannot
|
||
be set when spec.os.name is windows.
|
||
items:
|
||
description: Sysctl defines a kernel parameter to be set
|
||
properties:
|
||
name:
|
||
description: Name of a property to set
|
||
type: string
|
||
value:
|
||
description: Value of a property to set
|
||
type: string
|
||
required:
|
||
- name
|
||
- value
|
||
type: object
|
||
type: array
|
||
windowsOptions:
|
||
description: The Windows specific settings applied to all
|
||
containers. If unspecified, the options within a container's
|
||
SecurityContext will be used. If set in both SecurityContext
|
||
and PodSecurityContext, the value specified in SecurityContext
|
||
takes precedence. Note that this field cannot be set when
|
||
spec.os.name is linux.
|
||
properties:
|
||
gmsaCredentialSpec:
|
||
description: GMSACredentialSpec is where the GMSA admission
|
||
webhook (https://github.com/kubernetes-sigs/windows-gmsa)
|
||
inlines the contents of the GMSA credential spec named
|
||
by the GMSACredentialSpecName field.
|
||
type: string
|
||
gmsaCredentialSpecName:
|
||
description: GMSACredentialSpecName is the name of the
|
||
GMSA credential spec to use.
|
||
type: string
|
||
hostProcess:
|
||
description: HostProcess determines if a container should
|
||
be run as a 'Host Process' container. This field is
|
||
alpha-level and will only be honored by components that
|
||
enable the WindowsHostProcessContainers feature flag.
|
||
Setting this field without the feature flag will result
|
||
in errors when validating the Pod. All of a Pod's containers
|
||
must have the same effective HostProcess value (it is
|
||
not allowed to have a mix of HostProcess containers
|
||
and non-HostProcess containers). In addition, if HostProcess
|
||
is true then HostNetwork must also be set to true.
|
||
type: boolean
|
||
runAsUserName:
|
||
description: The UserName in Windows to run the entrypoint
|
||
of the container process. Defaults to the user specified
|
||
in image metadata if unspecified. May also be set in
|
||
PodSecurityContext. If set in both SecurityContext and
|
||
PodSecurityContext, the value specified in SecurityContext
|
||
takes precedence.
|
||
type: string
|
||
type: object
|
||
type: object
|
||
service:
|
||
description: 'expose doris components for accessing. example:
|
||
if you want to use `stream load` to load data into doris out
|
||
k8s, you can use be service and config different service type
|
||
for loading data.'
|
||
properties:
|
||
annotations:
|
||
additionalProperties:
|
||
type: string
|
||
description: Annotations for using function on different cloud
|
||
platform.
|
||
type: object
|
||
loadBalancerIP:
|
||
description: 'Only applies to Service Type: LoadBalancer.
|
||
This feature depends on whether the underlying cloud-provider
|
||
supports specifying the loadBalancerIP when a load balancer
|
||
is created. This field will be ignored if the cloud-provider
|
||
does not support the feature. This field was under-specified
|
||
and its meaning varies across implementations, and it cannot
|
||
support dual-stack. As of Kubernetes v1.24, users are encouraged
|
||
to use implementation-specific annotations when available.
|
||
This field may be removed in a future API version.'
|
||
type: string
|
||
servicePorts:
|
||
description: ServicePort config service for NodePort access
|
||
mode.
|
||
items:
|
||
description: DorisServicePort for ServiceType=NodePort situation.
|
||
properties:
|
||
nodePort:
|
||
description: 'The port on each node on which this service
|
||
is exposed when type is NodePort or LoadBalancer. Usually
|
||
assigned by the system. If a value is specified, in-range,
|
||
and not in use it will be used, otherwise the operation
|
||
will fail. If not specified, a port will be allocated
|
||
if this Service requires one. If this field is specified
|
||
when creating a Service which does not need it, creation
|
||
will fail. This field will be wiped when updating
|
||
a Service to no longer need it (e.g. changing type
|
||
from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
|
||
need in 30000-32767'
|
||
format: int32
|
||
type: integer
|
||
targetPort:
|
||
description: 'Number or name of the port to access on
|
||
the pods targeted by the service. Number must be in
|
||
the range 1 to 65535. Name must be an IANA_SVC_NAME.
|
||
If this is a string, it will be looked up as a named
|
||
port in the target Pod''s container ports. If this
|
||
is not specified, the value of the ''port'' field
|
||
is used (an identity map). This field is ignored for
|
||
services with clusterIP=None, and should be omitted
|
||
or set equal to the ''port'' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service'
|
||
format: int32
|
||
type: integer
|
||
type: object
|
||
type: array
|
||
type:
|
||
description: 'type of service,the possible value for the service
|
||
type are : ClusterIP, NodePort, LoadBalancer,ExternalName.
|
||
More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types'
|
||
type: string
|
||
type: object
|
||
serviceAccount:
|
||
description: serviceAccount for cn access cloud service.
|
||
type: string
|
||
systemInitialization:
|
||
description: SystemInitialization for fe, be and cn setting system
|
||
parameters.
|
||
properties:
|
||
args:
|
||
description: Arguments to the entrypoint.
|
||
items:
|
||
type: string
|
||
type: array
|
||
command:
|
||
description: Entrypoint array. Not executed within a shell.
|
||
items:
|
||
type: string
|
||
type: array
|
||
initImage:
|
||
description: Image for doris initialization, default is selectdb/alpine:latest.
|
||
type: string
|
||
type: object
|
||
tolerations:
|
||
description: (Optional) Tolerations for scheduling pods onto some
|
||
dedicated nodes
|
||
items:
|
||
description: The pod this Toleration is attached to tolerates
|
||
any taint that matches the triple <key,value,effect> using
|
||
the matching operator <operator>.
|
||
properties:
|
||
effect:
|
||
description: Effect indicates the taint effect to match.
|
||
Empty means match all taint effects. When specified, allowed
|
||
values are NoSchedule, PreferNoSchedule and NoExecute.
|
||
type: string
|
||
key:
|
||
description: 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.
|
||
type: string
|
||
operator:
|
||
description: 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.
|
||
type: string
|
||
tolerationSeconds:
|
||
description: 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.
|
||
format: int64
|
||
type: integer
|
||
value:
|
||
description: Value is the taint value the toleration matches
|
||
to. If the operator is Exists, the value should be empty,
|
||
otherwise just a regular string.
|
||
type: string
|
||
type: object
|
||
type: array
|
||
required:
|
||
- image
|
||
type: object
|
||
brokerSpec:
|
||
description: defines the broker state that will be created by operator.
|
||
properties:
|
||
affinity:
|
||
description: If specified, the pod's scheduling constraints.
|
||
properties:
|
||
nodeAffinity:
|
||
description: Describes node affinity scheduling rules for
|
||
the pod.
|
||
properties:
|
||
preferredDuringSchedulingIgnoredDuringExecution:
|
||
description: 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.
|
||
items:
|
||
description: 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).
|
||
properties:
|
||
preference:
|
||
description: A node selector term, associated with
|
||
the corresponding weight.
|
||
properties:
|
||
matchExpressions:
|
||
description: A list of node selector requirements
|
||
by node's labels.
|
||
items:
|
||
description: A node selector requirement is
|
||
a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: The label key that the selector
|
||
applies to.
|
||
type: string
|
||
operator:
|
||
description: Represents a key's relationship
|
||
to a set of values. Valid operators
|
||
are In, NotIn, Exists, DoesNotExist.
|
||
Gt, and Lt.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchFields:
|
||
description: A list of node selector requirements
|
||
by node's fields.
|
||
items:
|
||
description: A node selector requirement is
|
||
a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: The label key that the selector
|
||
applies to.
|
||
type: string
|
||
operator:
|
||
description: Represents a key's relationship
|
||
to a set of values. Valid operators
|
||
are In, NotIn, Exists, DoesNotExist.
|
||
Gt, and Lt.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
weight:
|
||
description: Weight associated with matching the
|
||
corresponding nodeSelectorTerm, in the range 1-100.
|
||
format: int32
|
||
type: integer
|
||
required:
|
||
- preference
|
||
- weight
|
||
type: object
|
||
type: array
|
||
requiredDuringSchedulingIgnoredDuringExecution:
|
||
description: 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.
|
||
properties:
|
||
nodeSelectorTerms:
|
||
description: Required. A list of node selector terms.
|
||
The terms are ORed.
|
||
items:
|
||
description: 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.
|
||
properties:
|
||
matchExpressions:
|
||
description: A list of node selector requirements
|
||
by node's labels.
|
||
items:
|
||
description: A node selector requirement is
|
||
a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: The label key that the selector
|
||
applies to.
|
||
type: string
|
||
operator:
|
||
description: Represents a key's relationship
|
||
to a set of values. Valid operators
|
||
are In, NotIn, Exists, DoesNotExist.
|
||
Gt, and Lt.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchFields:
|
||
description: A list of node selector requirements
|
||
by node's fields.
|
||
items:
|
||
description: A node selector requirement is
|
||
a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: The label key that the selector
|
||
applies to.
|
||
type: string
|
||
operator:
|
||
description: Represents a key's relationship
|
||
to a set of values. Valid operators
|
||
are In, NotIn, Exists, DoesNotExist.
|
||
Gt, and Lt.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
type: array
|
||
required:
|
||
- nodeSelectorTerms
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
type: object
|
||
podAffinity:
|
||
description: Describes pod affinity scheduling rules (e.g.
|
||
co-locate this pod in the same node, zone, etc. as some
|
||
other pod(s)).
|
||
properties:
|
||
preferredDuringSchedulingIgnoredDuringExecution:
|
||
description: 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.
|
||
items:
|
||
description: The weights of all of the matched WeightedPodAffinityTerm
|
||
fields are added per-node to find the most preferred
|
||
node(s)
|
||
properties:
|
||
podAffinityTerm:
|
||
description: Required. A pod affinity term, associated
|
||
with the corresponding weight.
|
||
properties:
|
||
labelSelector:
|
||
description: A label query over a set of resources,
|
||
in this case pods.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list
|
||
of label selector requirements. The requirements
|
||
are ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values,
|
||
a key, and an operator that relates
|
||
the key and values.
|
||
properties:
|
||
key:
|
||
description: key is the label key
|
||
that the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a
|
||
key's relationship to a set of values.
|
||
Valid operators are In, NotIn, Exists
|
||
and DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaceSelector:
|
||
description: 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.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list
|
||
of label selector requirements. The requirements
|
||
are ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values,
|
||
a key, and an operator that relates
|
||
the key and values.
|
||
properties:
|
||
key:
|
||
description: key is the label key
|
||
that the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a
|
||
key's relationship to a set of values.
|
||
Valid operators are In, NotIn, Exists
|
||
and DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaces:
|
||
description: 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".
|
||
items:
|
||
type: string
|
||
type: array
|
||
topologyKey:
|
||
description: 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.
|
||
type: string
|
||
required:
|
||
- topologyKey
|
||
type: object
|
||
weight:
|
||
description: weight associated with matching the
|
||
corresponding podAffinityTerm, in the range 1-100.
|
||
format: int32
|
||
type: integer
|
||
required:
|
||
- podAffinityTerm
|
||
- weight
|
||
type: object
|
||
type: array
|
||
requiredDuringSchedulingIgnoredDuringExecution:
|
||
description: 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.
|
||
items:
|
||
description: Defines a set of pods (namely those matching
|
||
the labelSelector relative to the given namespace(s))
|
||
that this pod should be co-located (affinity) or not
|
||
co-located (anti-affinity) with, where co-located
|
||
is defined as running on a node whose value of the
|
||
label with key <topologyKey> matches that of any node
|
||
on which a pod of the set of pods is running
|
||
properties:
|
||
labelSelector:
|
||
description: A label query over a set of resources,
|
||
in this case pods.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list of label
|
||
selector requirements. The requirements are
|
||
ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: key is the label key that
|
||
the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a key's
|
||
relationship to a set of values. Valid
|
||
operators are In, NotIn, Exists and
|
||
DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaceSelector:
|
||
description: 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.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list of label
|
||
selector requirements. The requirements are
|
||
ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: key is the label key that
|
||
the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a key's
|
||
relationship to a set of values. Valid
|
||
operators are In, NotIn, Exists and
|
||
DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaces:
|
||
description: 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".
|
||
items:
|
||
type: string
|
||
type: array
|
||
topologyKey:
|
||
description: 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.
|
||
type: string
|
||
required:
|
||
- topologyKey
|
||
type: object
|
||
type: array
|
||
type: object
|
||
podAntiAffinity:
|
||
description: Describes pod anti-affinity scheduling rules
|
||
(e.g. avoid putting this pod in the same node, zone, etc.
|
||
as some other pod(s)).
|
||
properties:
|
||
preferredDuringSchedulingIgnoredDuringExecution:
|
||
description: 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.
|
||
items:
|
||
description: The weights of all of the matched WeightedPodAffinityTerm
|
||
fields are added per-node to find the most preferred
|
||
node(s)
|
||
properties:
|
||
podAffinityTerm:
|
||
description: Required. A pod affinity term, associated
|
||
with the corresponding weight.
|
||
properties:
|
||
labelSelector:
|
||
description: A label query over a set of resources,
|
||
in this case pods.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list
|
||
of label selector requirements. The requirements
|
||
are ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values,
|
||
a key, and an operator that relates
|
||
the key and values.
|
||
properties:
|
||
key:
|
||
description: key is the label key
|
||
that the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a
|
||
key's relationship to a set of values.
|
||
Valid operators are In, NotIn, Exists
|
||
and DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaceSelector:
|
||
description: 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.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list
|
||
of label selector requirements. The requirements
|
||
are ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values,
|
||
a key, and an operator that relates
|
||
the key and values.
|
||
properties:
|
||
key:
|
||
description: key is the label key
|
||
that the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a
|
||
key's relationship to a set of values.
|
||
Valid operators are In, NotIn, Exists
|
||
and DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaces:
|
||
description: 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".
|
||
items:
|
||
type: string
|
||
type: array
|
||
topologyKey:
|
||
description: 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.
|
||
type: string
|
||
required:
|
||
- topologyKey
|
||
type: object
|
||
weight:
|
||
description: weight associated with matching the
|
||
corresponding podAffinityTerm, in the range 1-100.
|
||
format: int32
|
||
type: integer
|
||
required:
|
||
- podAffinityTerm
|
||
- weight
|
||
type: object
|
||
type: array
|
||
requiredDuringSchedulingIgnoredDuringExecution:
|
||
description: 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.
|
||
items:
|
||
description: Defines a set of pods (namely those matching
|
||
the labelSelector relative to the given namespace(s))
|
||
that this pod should be co-located (affinity) or not
|
||
co-located (anti-affinity) with, where co-located
|
||
is defined as running on a node whose value of the
|
||
label with key <topologyKey> matches that of any node
|
||
on which a pod of the set of pods is running
|
||
properties:
|
||
labelSelector:
|
||
description: A label query over a set of resources,
|
||
in this case pods.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list of label
|
||
selector requirements. The requirements are
|
||
ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: key is the label key that
|
||
the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a key's
|
||
relationship to a set of values. Valid
|
||
operators are In, NotIn, Exists and
|
||
DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaceSelector:
|
||
description: 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.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list of label
|
||
selector requirements. The requirements are
|
||
ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: key is the label key that
|
||
the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a key's
|
||
relationship to a set of values. Valid
|
||
operators are In, NotIn, Exists and
|
||
DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaces:
|
||
description: 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".
|
||
items:
|
||
type: string
|
||
type: array
|
||
topologyKey:
|
||
description: 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.
|
||
type: string
|
||
required:
|
||
- topologyKey
|
||
type: object
|
||
type: array
|
||
type: object
|
||
type: object
|
||
annotations:
|
||
additionalProperties:
|
||
type: string
|
||
description: annotation for fe pods. user can config monitor annotation
|
||
for collect to monitor system.
|
||
type: object
|
||
claims:
|
||
description: "Claims lists the names of resources, defined in
|
||
spec.resourceClaims, that are used by this container. \n This
|
||
is an alpha field and requires enabling the DynamicResourceAllocation
|
||
feature gate. \n This field is immutable."
|
||
items:
|
||
description: ResourceClaim references one entry in PodSpec.ResourceClaims.
|
||
properties:
|
||
name:
|
||
description: 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.
|
||
type: string
|
||
required:
|
||
- name
|
||
type: object
|
||
type: array
|
||
x-kubernetes-list-map-keys:
|
||
- name
|
||
x-kubernetes-list-type: map
|
||
configMapInfo:
|
||
description: the reference for cn configMap.
|
||
properties:
|
||
configMapName:
|
||
description: ConfigMapName mapped the configuration files
|
||
in the doris 'conf/' directory. such as 'fe.conf', 'be.conf'.
|
||
If HDFS access is involved, there may also be 'core-site.xml'
|
||
and other files. doris-operator mounts these configuration
|
||
files in the '/etc/doris' directory by default. links them
|
||
to the 'conf/' directory of the doris component through
|
||
soft links.
|
||
type: string
|
||
configMaps:
|
||
description: ConfigMaps can mount multiple configmaps to the
|
||
specified path. The mounting path of configmap cannot be
|
||
repeated.
|
||
items:
|
||
properties:
|
||
configMapName:
|
||
description: name of configmap that needs to mount.
|
||
type: string
|
||
mountPath:
|
||
description: Current ConfigMap Mount Path. If MountConfigMapInfo
|
||
belongs to the same ConfigMapInfo, their MountPath
|
||
cannot be repeated.
|
||
type: string
|
||
type: object
|
||
type: array
|
||
resolveKey:
|
||
description: 'Deprecated: This configuration has been abandoned
|
||
and will be cleared in version 1.7.0. It is currently forced
|
||
to be ''fe.conf'', ''be.conf'', ''apache_hdfs_broker.conf''
|
||
It is no longer effective. the configuration content will
|
||
not take effect.'
|
||
type: string
|
||
type: object
|
||
containerSecurityContext:
|
||
description: Security context for all containers running in the
|
||
pod (unless they override it).
|
||
properties:
|
||
allowPrivilegeEscalation:
|
||
description: 'AllowPrivilegeEscalation controls whether a
|
||
process can gain more privileges than its parent process.
|
||
This bool directly controls if the no_new_privs flag will
|
||
be set on the container process. AllowPrivilegeEscalation
|
||
is true always when the container is: 1) run as Privileged
|
||
2) has CAP_SYS_ADMIN Note that this field cannot be set
|
||
when spec.os.name is windows.'
|
||
type: boolean
|
||
capabilities:
|
||
description: The capabilities to add/drop when running containers.
|
||
Defaults to the default set of capabilities granted by the
|
||
container runtime. Note that this field cannot be set when
|
||
spec.os.name is windows.
|
||
properties:
|
||
add:
|
||
description: Added capabilities
|
||
items:
|
||
description: Capability represent POSIX capabilities
|
||
type
|
||
type: string
|
||
type: array
|
||
drop:
|
||
description: Removed capabilities
|
||
items:
|
||
description: Capability represent POSIX capabilities
|
||
type
|
||
type: string
|
||
type: array
|
||
type: object
|
||
privileged:
|
||
description: Run container in privileged mode. Processes in
|
||
privileged containers are essentially equivalent to root
|
||
on the host. Defaults to false. Note that this field cannot
|
||
be set when spec.os.name is windows.
|
||
type: boolean
|
||
procMount:
|
||
description: procMount denotes the type of proc mount to use
|
||
for the containers. The default is DefaultProcMount which
|
||
uses the container runtime defaults for readonly paths and
|
||
masked paths. This requires the ProcMountType feature flag
|
||
to be enabled. Note that this field cannot be set when spec.os.name
|
||
is windows.
|
||
type: string
|
||
readOnlyRootFilesystem:
|
||
description: Whether this container has a read-only root filesystem.
|
||
Default is false. Note that this field cannot be set when
|
||
spec.os.name is windows.
|
||
type: boolean
|
||
runAsGroup:
|
||
description: The GID to run the entrypoint of the container
|
||
process. Uses runtime default if unset. May also be set
|
||
in PodSecurityContext. If set in both SecurityContext and
|
||
PodSecurityContext, the value specified in SecurityContext
|
||
takes precedence. Note that this field cannot be set when
|
||
spec.os.name is windows.
|
||
format: int64
|
||
type: integer
|
||
runAsNonRoot:
|
||
description: Indicates that the container must run as a non-root
|
||
user. If true, the Kubelet will validate the image at runtime
|
||
to ensure that it does not run as UID 0 (root) and fail
|
||
to start the container if it does. If unset or false, no
|
||
such validation will be performed. May also be set in PodSecurityContext. If
|
||
set in both SecurityContext and PodSecurityContext, the
|
||
value specified in SecurityContext takes precedence.
|
||
type: boolean
|
||
runAsUser:
|
||
description: The UID to run the entrypoint of the container
|
||
process. Defaults to user specified in image metadata if
|
||
unspecified. May also be set in PodSecurityContext. If
|
||
set in both SecurityContext and PodSecurityContext, the
|
||
value specified in SecurityContext takes precedence. Note
|
||
that this field cannot be set when spec.os.name is windows.
|
||
format: int64
|
||
type: integer
|
||
seLinuxOptions:
|
||
description: The SELinux context to be applied to the container.
|
||
If unspecified, the container runtime will allocate a random
|
||
SELinux context for each container. May also be set in
|
||
PodSecurityContext. If set in both SecurityContext and
|
||
PodSecurityContext, the value specified in SecurityContext
|
||
takes precedence. Note that this field cannot be set when
|
||
spec.os.name is windows.
|
||
properties:
|
||
level:
|
||
description: Level is SELinux level label that applies
|
||
to the container.
|
||
type: string
|
||
role:
|
||
description: Role is a SELinux role label that applies
|
||
to the container.
|
||
type: string
|
||
type:
|
||
description: Type is a SELinux type label that applies
|
||
to the container.
|
||
type: string
|
||
user:
|
||
description: User is a SELinux user label that applies
|
||
to the container.
|
||
type: string
|
||
type: object
|
||
seccompProfile:
|
||
description: The seccomp options to use by this container.
|
||
If seccomp options are provided at both the pod & container
|
||
level, the container options override the pod options. Note
|
||
that this field cannot be set when spec.os.name is windows.
|
||
properties:
|
||
localhostProfile:
|
||
description: localhostProfile indicates a profile defined
|
||
in a file on the node should be used. The profile must
|
||
be preconfigured on the node to work. Must be a descending
|
||
path, relative to the kubelet's configured seccomp profile
|
||
location. Must only be set if type is "Localhost".
|
||
type: string
|
||
type:
|
||
description: "type indicates which kind of seccomp profile
|
||
will be applied. Valid options are: \n Localhost - a
|
||
profile defined in a file on the node should be used.
|
||
RuntimeDefault - the container runtime default profile
|
||
should be used. Unconfined - no profile should be applied."
|
||
type: string
|
||
required:
|
||
- type
|
||
type: object
|
||
windowsOptions:
|
||
description: The Windows specific settings applied to all
|
||
containers. If unspecified, the options from the PodSecurityContext
|
||
will be used. If set in both SecurityContext and PodSecurityContext,
|
||
the value specified in SecurityContext takes precedence.
|
||
Note that this field cannot be set when spec.os.name is
|
||
linux.
|
||
properties:
|
||
gmsaCredentialSpec:
|
||
description: GMSACredentialSpec is where the GMSA admission
|
||
webhook (https://github.com/kubernetes-sigs/windows-gmsa)
|
||
inlines the contents of the GMSA credential spec named
|
||
by the GMSACredentialSpecName field.
|
||
type: string
|
||
gmsaCredentialSpecName:
|
||
description: GMSACredentialSpecName is the name of the
|
||
GMSA credential spec to use.
|
||
type: string
|
||
hostProcess:
|
||
description: HostProcess determines if a container should
|
||
be run as a 'Host Process' container. This field is
|
||
alpha-level and will only be honored by components that
|
||
enable the WindowsHostProcessContainers feature flag.
|
||
Setting this field without the feature flag will result
|
||
in errors when validating the Pod. All of a Pod's containers
|
||
must have the same effective HostProcess value (it is
|
||
not allowed to have a mix of HostProcess containers
|
||
and non-HostProcess containers). In addition, if HostProcess
|
||
is true then HostNetwork must also be set to true.
|
||
type: boolean
|
||
runAsUserName:
|
||
description: The UserName in Windows to run the entrypoint
|
||
of the container process. Defaults to the user specified
|
||
in image metadata if unspecified. May also be set in
|
||
PodSecurityContext. If set in both SecurityContext and
|
||
PodSecurityContext, the value specified in SecurityContext
|
||
takes precedence.
|
||
type: string
|
||
type: object
|
||
type: object
|
||
envVars:
|
||
description: cnEnvVars is a slice of environment variables that
|
||
are added to the pods, the default is empty.
|
||
items:
|
||
description: EnvVar represents an environment variable present
|
||
in a Container.
|
||
properties:
|
||
name:
|
||
description: Name of the environment variable. Must be a
|
||
C_IDENTIFIER.
|
||
type: string
|
||
value:
|
||
description: 'Variable references $(VAR_NAME) are expanded
|
||
using the previously defined environment variables in
|
||
the container and any service environment variables. If
|
||
a variable cannot be resolved, the reference in the input
|
||
string will be unchanged. Double $$ are reduced to a single
|
||
$, which allows for escaping the $(VAR_NAME) syntax: i.e.
|
||
"$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
|
||
Escaped references will never be expanded, regardless
|
||
of whether the variable exists or not. Defaults to "".'
|
||
type: string
|
||
valueFrom:
|
||
description: Source for the environment variable's value.
|
||
Cannot be used if value is not empty.
|
||
properties:
|
||
configMapKeyRef:
|
||
description: Selects a key of a ConfigMap.
|
||
properties:
|
||
key:
|
||
description: The key to select.
|
||
type: string
|
||
name:
|
||
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
|
||
TODO: Add other useful fields. apiVersion, kind,
|
||
uid?'
|
||
type: string
|
||
optional:
|
||
description: Specify whether the ConfigMap or its
|
||
key must be defined
|
||
type: boolean
|
||
required:
|
||
- key
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
fieldRef:
|
||
description: 'Selects a field of the pod: supports metadata.name,
|
||
metadata.namespace, `metadata.labels[''<KEY>'']`,
|
||
`metadata.annotations[''<KEY>'']`, spec.nodeName,
|
||
spec.serviceAccountName, status.hostIP, status.podIP,
|
||
status.podIPs.'
|
||
properties:
|
||
apiVersion:
|
||
description: Version of the schema the FieldPath
|
||
is written in terms of, defaults to "v1".
|
||
type: string
|
||
fieldPath:
|
||
description: Path of the field to select in the
|
||
specified API version.
|
||
type: string
|
||
required:
|
||
- fieldPath
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
resourceFieldRef:
|
||
description: 'Selects a resource of the container: only
|
||
resources limits and requests (limits.cpu, limits.memory,
|
||
limits.ephemeral-storage, requests.cpu, requests.memory
|
||
and requests.ephemeral-storage) are currently supported.'
|
||
properties:
|
||
containerName:
|
||
description: 'Container name: required for volumes,
|
||
optional for env vars'
|
||
type: string
|
||
divisor:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
description: Specifies the output format of the
|
||
exposed resources, defaults to "1"
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
resource:
|
||
description: 'Required: resource to select'
|
||
type: string
|
||
required:
|
||
- resource
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
secretKeyRef:
|
||
description: Selects a key of a secret in the pod's
|
||
namespace
|
||
properties:
|
||
key:
|
||
description: The key of the secret to select from. Must
|
||
be a valid secret key.
|
||
type: string
|
||
name:
|
||
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
|
||
TODO: Add other useful fields. apiVersion, kind,
|
||
uid?'
|
||
type: string
|
||
optional:
|
||
description: Specify whether the Secret or its key
|
||
must be defined
|
||
type: boolean
|
||
required:
|
||
- key
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
type: object
|
||
required:
|
||
- name
|
||
type: object
|
||
type: array
|
||
feAddress:
|
||
description: specify register fe addresses
|
||
properties:
|
||
ServiceName:
|
||
description: the service name that proxy fe on k8s. the service
|
||
must in same namespace with fe.
|
||
type: string
|
||
endpoints:
|
||
description: the fe addresses if not deploy by crd, user can
|
||
use k8s deploy fe observer.
|
||
properties:
|
||
:address:
|
||
description: the ip or domain array.
|
||
items:
|
||
type: string
|
||
type: array
|
||
port:
|
||
description: the fe port that for query. the field `query_port`
|
||
defines in fe config.
|
||
type: integer
|
||
type: object
|
||
type: object
|
||
hostAliases:
|
||
description: HostAliases is an optional list of hosts and IPs
|
||
that will be injected into the pod's hosts file if specified.
|
||
This is only valid for non-hostNetwork pods.
|
||
items:
|
||
description: HostAlias holds the mapping between IP and hostnames
|
||
that will be injected as an entry in the pod's hosts file.
|
||
properties:
|
||
hostnames:
|
||
description: Hostnames for the above IP address.
|
||
items:
|
||
type: string
|
||
type: array
|
||
ip:
|
||
description: IP address of the host file entry.
|
||
type: string
|
||
type: object
|
||
type: array
|
||
image:
|
||
description: Image for a doris cn deployment.
|
||
type: string
|
||
imagePullSecrets:
|
||
description: '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'
|
||
items:
|
||
description: LocalObjectReference contains enough information
|
||
to let you locate the referenced object inside the same namespace.
|
||
properties:
|
||
name:
|
||
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
|
||
TODO: Add other useful fields. apiVersion, kind, uid?'
|
||
type: string
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
type: array
|
||
kickOffAffinityBe:
|
||
description: enable affinity with be , if kickoff affinity, the
|
||
operator will set affinity on broker with be. The affinity is
|
||
preferred not required. When the user custom affinity the switch
|
||
does not take effect anymore.
|
||
type: boolean
|
||
limits:
|
||
additionalProperties:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
description: 'Limits describes the maximum amount of compute resources
|
||
allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
|
||
type: object
|
||
nodeSelector:
|
||
additionalProperties:
|
||
type: string
|
||
description: (Optional) If specified, the pod's nodeSelector,displayName="Map
|
||
of nodeSelectors to match when scheduling pods on nodes"
|
||
type: object
|
||
persistentVolumes:
|
||
items:
|
||
description: PersistentVolume defines volume information and
|
||
container mount information.
|
||
properties:
|
||
annotations:
|
||
additionalProperties:
|
||
type: string
|
||
description: Annotation for PVC pods. Users can adapt the
|
||
storage authentication and pv binding of the cloud platform
|
||
through configuration. It only takes effect in the first
|
||
configuration and cannot be added or modified later.
|
||
type: object
|
||
mountPath:
|
||
description: the mount path for component service.
|
||
type: string
|
||
name:
|
||
description: the volume name associate with
|
||
type: string
|
||
persistentVolumeClaimSpec:
|
||
description: PersistentVolumeClaimSpec is a list of claim
|
||
spec about storage that pods are required.
|
||
properties:
|
||
accessModes:
|
||
description: 'accessModes contains the desired access
|
||
modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1'
|
||
items:
|
||
type: string
|
||
type: array
|
||
dataSource:
|
||
description: '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.'
|
||
properties:
|
||
apiGroup:
|
||
description: 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.
|
||
type: string
|
||
kind:
|
||
description: Kind is the type of resource being
|
||
referenced
|
||
type: string
|
||
name:
|
||
description: Name is the name of resource being
|
||
referenced
|
||
type: string
|
||
required:
|
||
- kind
|
||
- name
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
dataSourceRef:
|
||
description: '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.'
|
||
properties:
|
||
apiGroup:
|
||
description: 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.
|
||
type: string
|
||
kind:
|
||
description: Kind is the type of resource being
|
||
referenced
|
||
type: string
|
||
name:
|
||
description: Name is the name of resource being
|
||
referenced
|
||
type: string
|
||
namespace:
|
||
description: 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.
|
||
type: string
|
||
required:
|
||
- kind
|
||
- name
|
||
type: object
|
||
resources:
|
||
description: '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'
|
||
properties:
|
||
claims:
|
||
description: "Claims lists the names of resources,
|
||
defined in spec.resourceClaims, that are used
|
||
by this container. \n This is an alpha field and
|
||
requires enabling the DynamicResourceAllocation
|
||
feature gate. \n This field is immutable."
|
||
items:
|
||
description: ResourceClaim references one entry
|
||
in PodSpec.ResourceClaims.
|
||
properties:
|
||
name:
|
||
description: 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.
|
||
type: string
|
||
required:
|
||
- name
|
||
type: object
|
||
type: array
|
||
x-kubernetes-list-map-keys:
|
||
- name
|
||
x-kubernetes-list-type: map
|
||
limits:
|
||
additionalProperties:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
description: 'Limits describes the maximum amount
|
||
of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
|
||
type: object
|
||
requests:
|
||
additionalProperties:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
description: 'Requests describes the minimum amount
|
||
of compute resources required. If Requests is
|
||
omitted for a container, it defaults to Limits
|
||
if that is explicitly specified, otherwise to
|
||
an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
|
||
type: object
|
||
type: object
|
||
selector:
|
||
description: selector is a label query over volumes
|
||
to consider for binding.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list of label
|
||
selector requirements. The requirements are ANDed.
|
||
items:
|
||
description: A label selector requirement is a
|
||
selector that contains values, a key, and an
|
||
operator that relates the key and values.
|
||
properties:
|
||
key:
|
||
description: key is the label key that the
|
||
selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a key's relationship
|
||
to a set of values. Valid operators are
|
||
In, NotIn, Exists and DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
storageClassName:
|
||
description: 'storageClassName is the name of the StorageClass
|
||
required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1'
|
||
type: string
|
||
volumeMode:
|
||
description: volumeMode defines what type of volume
|
||
is required by the claim. Value of Filesystem is implied
|
||
when not included in claim spec.
|
||
type: string
|
||
volumeName:
|
||
description: volumeName is the binding reference to
|
||
the PersistentVolume backing this claim.
|
||
type: string
|
||
type: object
|
||
provisioner:
|
||
description: defines pvc provisioner
|
||
type: string
|
||
type: object
|
||
type: array
|
||
podLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: podLabels for user selector or classify pods
|
||
type: object
|
||
replicas:
|
||
description: Replicas is the number of desired cn Pod.
|
||
format: int32
|
||
minimum: 0
|
||
type: integer
|
||
requests:
|
||
additionalProperties:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
description: 'Requests describes the minimum amount of compute
|
||
resources required. If Requests is omitted for a container,
|
||
it defaults to Limits if that is explicitly specified, otherwise
|
||
to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
|
||
type: object
|
||
securityContext:
|
||
description: Security context for pod.
|
||
properties:
|
||
fsGroup:
|
||
description: "A special supplemental group that applies to
|
||
all containers in a pod. Some volume types allow the Kubelet
|
||
to change the ownership of that volume to be owned by the
|
||
pod: \n 1. The owning GID will be the FSGroup 2. The setgid
|
||
bit is set (new files created in the volume will be owned
|
||
by FSGroup) 3. The permission bits are OR'd with rw-rw----
|
||
\n If unset, the Kubelet will not modify the ownership and
|
||
permissions of any volume. Note that this field cannot be
|
||
set when spec.os.name is windows."
|
||
format: int64
|
||
type: integer
|
||
fsGroupChangePolicy:
|
||
description: 'fsGroupChangePolicy defines behavior of changing
|
||
ownership and permission of the volume before being exposed
|
||
inside Pod. This field will only apply to volume types which
|
||
support fsGroup based ownership(and permissions). It will
|
||
have no effect on ephemeral volume types such as: secret,
|
||
configmaps and emptydir. Valid values are "OnRootMismatch"
|
||
and "Always". If not specified, "Always" is used. Note that
|
||
this field cannot be set when spec.os.name is windows.'
|
||
type: string
|
||
runAsGroup:
|
||
description: The GID to run the entrypoint of the container
|
||
process. Uses runtime default if unset. May also be set
|
||
in SecurityContext. If set in both SecurityContext and
|
||
PodSecurityContext, the value specified in SecurityContext
|
||
takes precedence for that container. Note that this field
|
||
cannot be set when spec.os.name is windows.
|
||
format: int64
|
||
type: integer
|
||
runAsNonRoot:
|
||
description: Indicates that the container must run as a non-root
|
||
user. If true, the Kubelet will validate the image at runtime
|
||
to ensure that it does not run as UID 0 (root) and fail
|
||
to start the container if it does. If unset or false, no
|
||
such validation will be performed. May also be set in SecurityContext. If
|
||
set in both SecurityContext and PodSecurityContext, the
|
||
value specified in SecurityContext takes precedence.
|
||
type: boolean
|
||
runAsUser:
|
||
description: The UID to run the entrypoint of the container
|
||
process. Defaults to user specified in image metadata if
|
||
unspecified. May also be set in SecurityContext. If set
|
||
in both SecurityContext and PodSecurityContext, the value
|
||
specified in SecurityContext takes precedence for that container.
|
||
Note that this field cannot be set when spec.os.name is
|
||
windows.
|
||
format: int64
|
||
type: integer
|
||
seLinuxOptions:
|
||
description: The SELinux context to be applied to all containers.
|
||
If unspecified, the container runtime will allocate a random
|
||
SELinux context for each container. May also be set in
|
||
SecurityContext. If set in both SecurityContext and PodSecurityContext,
|
||
the value specified in SecurityContext takes precedence
|
||
for that container. Note that this field cannot be set when
|
||
spec.os.name is windows.
|
||
properties:
|
||
level:
|
||
description: Level is SELinux level label that applies
|
||
to the container.
|
||
type: string
|
||
role:
|
||
description: Role is a SELinux role label that applies
|
||
to the container.
|
||
type: string
|
||
type:
|
||
description: Type is a SELinux type label that applies
|
||
to the container.
|
||
type: string
|
||
user:
|
||
description: User is a SELinux user label that applies
|
||
to the container.
|
||
type: string
|
||
type: object
|
||
seccompProfile:
|
||
description: The seccomp options to use by the containers
|
||
in this pod. Note that this field cannot be set when spec.os.name
|
||
is windows.
|
||
properties:
|
||
localhostProfile:
|
||
description: localhostProfile indicates a profile defined
|
||
in a file on the node should be used. The profile must
|
||
be preconfigured on the node to work. Must be a descending
|
||
path, relative to the kubelet's configured seccomp profile
|
||
location. Must only be set if type is "Localhost".
|
||
type: string
|
||
type:
|
||
description: "type indicates which kind of seccomp profile
|
||
will be applied. Valid options are: \n Localhost - a
|
||
profile defined in a file on the node should be used.
|
||
RuntimeDefault - the container runtime default profile
|
||
should be used. Unconfined - no profile should be applied."
|
||
type: string
|
||
required:
|
||
- type
|
||
type: object
|
||
supplementalGroups:
|
||
description: A list of groups applied to the first process
|
||
run in each container, in addition to the container's primary
|
||
GID, the fsGroup (if specified), and group memberships defined
|
||
in the container image for the uid of the container process.
|
||
If unspecified, no additional groups are added to any container.
|
||
Note that group memberships defined in the container image
|
||
for the uid of the container process are still effective,
|
||
even if they are not included in this list. Note that this
|
||
field cannot be set when spec.os.name is windows.
|
||
items:
|
||
format: int64
|
||
type: integer
|
||
type: array
|
||
sysctls:
|
||
description: Sysctls hold a list of namespaced sysctls used
|
||
for the pod. Pods with unsupported sysctls (by the container
|
||
runtime) might fail to launch. Note that this field cannot
|
||
be set when spec.os.name is windows.
|
||
items:
|
||
description: Sysctl defines a kernel parameter to be set
|
||
properties:
|
||
name:
|
||
description: Name of a property to set
|
||
type: string
|
||
value:
|
||
description: Value of a property to set
|
||
type: string
|
||
required:
|
||
- name
|
||
- value
|
||
type: object
|
||
type: array
|
||
windowsOptions:
|
||
description: The Windows specific settings applied to all
|
||
containers. If unspecified, the options within a container's
|
||
SecurityContext will be used. If set in both SecurityContext
|
||
and PodSecurityContext, the value specified in SecurityContext
|
||
takes precedence. Note that this field cannot be set when
|
||
spec.os.name is linux.
|
||
properties:
|
||
gmsaCredentialSpec:
|
||
description: GMSACredentialSpec is where the GMSA admission
|
||
webhook (https://github.com/kubernetes-sigs/windows-gmsa)
|
||
inlines the contents of the GMSA credential spec named
|
||
by the GMSACredentialSpecName field.
|
||
type: string
|
||
gmsaCredentialSpecName:
|
||
description: GMSACredentialSpecName is the name of the
|
||
GMSA credential spec to use.
|
||
type: string
|
||
hostProcess:
|
||
description: HostProcess determines if a container should
|
||
be run as a 'Host Process' container. This field is
|
||
alpha-level and will only be honored by components that
|
||
enable the WindowsHostProcessContainers feature flag.
|
||
Setting this field without the feature flag will result
|
||
in errors when validating the Pod. All of a Pod's containers
|
||
must have the same effective HostProcess value (it is
|
||
not allowed to have a mix of HostProcess containers
|
||
and non-HostProcess containers). In addition, if HostProcess
|
||
is true then HostNetwork must also be set to true.
|
||
type: boolean
|
||
runAsUserName:
|
||
description: The UserName in Windows to run the entrypoint
|
||
of the container process. Defaults to the user specified
|
||
in image metadata if unspecified. May also be set in
|
||
PodSecurityContext. If set in both SecurityContext and
|
||
PodSecurityContext, the value specified in SecurityContext
|
||
takes precedence.
|
||
type: string
|
||
type: object
|
||
type: object
|
||
service:
|
||
description: 'expose doris components for accessing. example:
|
||
if you want to use `stream load` to load data into doris out
|
||
k8s, you can use be service and config different service type
|
||
for loading data.'
|
||
properties:
|
||
annotations:
|
||
additionalProperties:
|
||
type: string
|
||
description: Annotations for using function on different cloud
|
||
platform.
|
||
type: object
|
||
loadBalancerIP:
|
||
description: 'Only applies to Service Type: LoadBalancer.
|
||
This feature depends on whether the underlying cloud-provider
|
||
supports specifying the loadBalancerIP when a load balancer
|
||
is created. This field will be ignored if the cloud-provider
|
||
does not support the feature. This field was under-specified
|
||
and its meaning varies across implementations, and it cannot
|
||
support dual-stack. As of Kubernetes v1.24, users are encouraged
|
||
to use implementation-specific annotations when available.
|
||
This field may be removed in a future API version.'
|
||
type: string
|
||
servicePorts:
|
||
description: ServicePort config service for NodePort access
|
||
mode.
|
||
items:
|
||
description: DorisServicePort for ServiceType=NodePort situation.
|
||
properties:
|
||
nodePort:
|
||
description: 'The port on each node on which this service
|
||
is exposed when type is NodePort or LoadBalancer. Usually
|
||
assigned by the system. If a value is specified, in-range,
|
||
and not in use it will be used, otherwise the operation
|
||
will fail. If not specified, a port will be allocated
|
||
if this Service requires one. If this field is specified
|
||
when creating a Service which does not need it, creation
|
||
will fail. This field will be wiped when updating
|
||
a Service to no longer need it (e.g. changing type
|
||
from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
|
||
need in 30000-32767'
|
||
format: int32
|
||
type: integer
|
||
targetPort:
|
||
description: 'Number or name of the port to access on
|
||
the pods targeted by the service. Number must be in
|
||
the range 1 to 65535. Name must be an IANA_SVC_NAME.
|
||
If this is a string, it will be looked up as a named
|
||
port in the target Pod''s container ports. If this
|
||
is not specified, the value of the ''port'' field
|
||
is used (an identity map). This field is ignored for
|
||
services with clusterIP=None, and should be omitted
|
||
or set equal to the ''port'' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service'
|
||
format: int32
|
||
type: integer
|
||
type: object
|
||
type: array
|
||
type:
|
||
description: 'type of service,the possible value for the service
|
||
type are : ClusterIP, NodePort, LoadBalancer,ExternalName.
|
||
More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types'
|
||
type: string
|
||
type: object
|
||
serviceAccount:
|
||
description: serviceAccount for cn access cloud service.
|
||
type: string
|
||
systemInitialization:
|
||
description: SystemInitialization for fe, be and cn setting system
|
||
parameters.
|
||
properties:
|
||
args:
|
||
description: Arguments to the entrypoint.
|
||
items:
|
||
type: string
|
||
type: array
|
||
command:
|
||
description: Entrypoint array. Not executed within a shell.
|
||
items:
|
||
type: string
|
||
type: array
|
||
initImage:
|
||
description: Image for doris initialization, default is selectdb/alpine:latest.
|
||
type: string
|
||
type: object
|
||
tolerations:
|
||
description: (Optional) Tolerations for scheduling pods onto some
|
||
dedicated nodes
|
||
items:
|
||
description: The pod this Toleration is attached to tolerates
|
||
any taint that matches the triple <key,value,effect> using
|
||
the matching operator <operator>.
|
||
properties:
|
||
effect:
|
||
description: Effect indicates the taint effect to match.
|
||
Empty means match all taint effects. When specified, allowed
|
||
values are NoSchedule, PreferNoSchedule and NoExecute.
|
||
type: string
|
||
key:
|
||
description: 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.
|
||
type: string
|
||
operator:
|
||
description: 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.
|
||
type: string
|
||
tolerationSeconds:
|
||
description: 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.
|
||
format: int64
|
||
type: integer
|
||
value:
|
||
description: Value is the taint value the toleration matches
|
||
to. If the operator is Exists, the value should be empty,
|
||
otherwise just a regular string.
|
||
type: string
|
||
type: object
|
||
type: array
|
||
required:
|
||
- image
|
||
type: object
|
||
cnSpec:
|
||
description: defines the cn cluster state that will be created by
|
||
operator.
|
||
properties:
|
||
affinity:
|
||
description: If specified, the pod's scheduling constraints.
|
||
properties:
|
||
nodeAffinity:
|
||
description: Describes node affinity scheduling rules for
|
||
the pod.
|
||
properties:
|
||
preferredDuringSchedulingIgnoredDuringExecution:
|
||
items:
|
||
description: 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).
|
||
properties:
|
||
preference:
|
||
description: A node selector term, associated with
|
||
the corresponding weight.
|
||
properties:
|
||
matchExpressions:
|
||
description: A list of node selector requirements
|
||
by node's labels.
|
||
items:
|
||
description: A node selector requirement is
|
||
a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: The label key that the selector
|
||
applies to.
|
||
type: string
|
||
operator:
|
||
description: Represents a key's relationship
|
||
to a set of values. Valid operators
|
||
are In, NotIn, Exists, DoesNotExist.
|
||
Gt, and Lt.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchFields:
|
||
description: A list of node selector requirements
|
||
by node's fields.
|
||
items:
|
||
description: A node selector requirement is
|
||
a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: The label key that the selector
|
||
applies to.
|
||
type: string
|
||
operator:
|
||
description: Represents a key's relationship
|
||
to a set of values. Valid operators
|
||
are In, NotIn, Exists, DoesNotExist.
|
||
Gt, and Lt.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
weight:
|
||
description: Weight associated with matching the
|
||
corresponding nodeSelectorTerm, in the range 1-100.
|
||
format: int32
|
||
type: integer
|
||
required:
|
||
- preference
|
||
- weight
|
||
type: object
|
||
type: array
|
||
requiredDuringSchedulingIgnoredDuringExecution:
|
||
description: 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.
|
||
properties:
|
||
nodeSelectorTerms:
|
||
description: Required. A list of node selector terms.
|
||
The terms are ORed.
|
||
items:
|
||
description: 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.
|
||
properties:
|
||
matchExpressions:
|
||
description: A list of node selector requirements
|
||
by node's labels.
|
||
items:
|
||
description: A node selector requirement is
|
||
a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: The label key that the selector
|
||
applies to.
|
||
type: string
|
||
operator:
|
||
description: Represents a key's relationship
|
||
to a set of values. Valid operators
|
||
are In, NotIn, Exists, DoesNotExist.
|
||
Gt, and Lt.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchFields:
|
||
description: A list of node selector requirements
|
||
by node's fields.
|
||
items:
|
||
description: A node selector requirement is
|
||
a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: The label key that the selector
|
||
applies to.
|
||
type: string
|
||
operator:
|
||
description: Represents a key's relationship
|
||
to a set of values. Valid operators
|
||
are In, NotIn, Exists, DoesNotExist.
|
||
Gt, and Lt.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
type: array
|
||
required:
|
||
- nodeSelectorTerms
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
type: object
|
||
podAffinity:
|
||
description: Describes pod affinity scheduling rules (e.g.
|
||
co-locate this pod in the same node, zone, etc. as some
|
||
other pod(s)).
|
||
properties:
|
||
preferredDuringSchedulingIgnoredDuringExecution:
|
||
description: 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.
|
||
items:
|
||
description: The weights of all of the matched WeightedPodAffinityTerm
|
||
fields are added per-node to find the most preferred
|
||
node(s)
|
||
properties:
|
||
podAffinityTerm:
|
||
description: Required. A pod affinity term, associated
|
||
with the corresponding weight.
|
||
properties:
|
||
labelSelector:
|
||
description: A label query over a set of resources,
|
||
in this case pods.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list
|
||
of label selector requirements. The requirements
|
||
are ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values,
|
||
a key, and an operator that relates
|
||
the key and values.
|
||
properties:
|
||
key:
|
||
description: key is the label key
|
||
that the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a
|
||
key's relationship to a set of values.
|
||
Valid operators are In, NotIn, Exists
|
||
and DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaceSelector:
|
||
description: 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.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list
|
||
of label selector requirements. The requirements
|
||
are ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values,
|
||
a key, and an operator that relates
|
||
the key and values.
|
||
properties:
|
||
key:
|
||
description: key is the label key
|
||
that the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a
|
||
key's relationship to a set of values.
|
||
Valid operators are In, NotIn, Exists
|
||
and DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaces:
|
||
description: 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".
|
||
items:
|
||
type: string
|
||
type: array
|
||
topologyKey:
|
||
description: 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.
|
||
type: string
|
||
required:
|
||
- topologyKey
|
||
type: object
|
||
weight:
|
||
description: weight associated with matching the
|
||
corresponding podAffinityTerm, in the range 1-100.
|
||
format: int32
|
||
type: integer
|
||
required:
|
||
- podAffinityTerm
|
||
- weight
|
||
type: object
|
||
type: array
|
||
requiredDuringSchedulingIgnoredDuringExecution:
|
||
description: 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.
|
||
items:
|
||
description: Defines a set of pods (namely those matching
|
||
the labelSelector relative to the given namespace(s))
|
||
that this pod should be co-located (affinity) or not
|
||
co-located (anti-affinity) with, where co-located
|
||
is defined as running on a node whose value of the
|
||
label with key <topologyKey> matches that of any node
|
||
on which a pod of the set of pods is running
|
||
properties:
|
||
labelSelector:
|
||
description: A label query over a set of resources,
|
||
in this case pods.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list of label
|
||
selector requirements. The requirements are
|
||
ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: key is the label key that
|
||
the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a key's
|
||
relationship to a set of values. Valid
|
||
operators are In, NotIn, Exists and
|
||
DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaceSelector:
|
||
description: 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.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list of label
|
||
selector requirements. The requirements are
|
||
ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: key is the label key that
|
||
the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a key's
|
||
relationship to a set of values. Valid
|
||
operators are In, NotIn, Exists and
|
||
DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaces:
|
||
description: 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".
|
||
items:
|
||
type: string
|
||
type: array
|
||
topologyKey:
|
||
description: 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.
|
||
type: string
|
||
required:
|
||
- topologyKey
|
||
type: object
|
||
type: array
|
||
type: object
|
||
podAntiAffinity:
|
||
description: Describes pod anti-affinity scheduling rules
|
||
(e.g. avoid putting this pod in the same node, zone, etc.
|
||
as some other pod(s)).
|
||
properties:
|
||
preferredDuringSchedulingIgnoredDuringExecution:
|
||
description: 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.
|
||
items:
|
||
description: The weights of all of the matched WeightedPodAffinityTerm
|
||
fields are added per-node to find the most preferred
|
||
node(s)
|
||
properties:
|
||
podAffinityTerm:
|
||
description: Required. A pod affinity term, associated
|
||
with the corresponding weight.
|
||
properties:
|
||
labelSelector:
|
||
description: A label query over a set of resources,
|
||
in this case pods.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list
|
||
of label selector requirements. The requirements
|
||
are ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values,
|
||
a key, and an operator that relates
|
||
the key and values.
|
||
properties:
|
||
key:
|
||
description: key is the label key
|
||
that the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a
|
||
key's relationship to a set of values.
|
||
Valid operators are In, NotIn, Exists
|
||
and DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaceSelector:
|
||
description: 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.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list
|
||
of label selector requirements. The requirements
|
||
are ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values,
|
||
a key, and an operator that relates
|
||
the key and values.
|
||
properties:
|
||
key:
|
||
description: key is the label key
|
||
that the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a
|
||
key's relationship to a set of values.
|
||
Valid operators are In, NotIn, Exists
|
||
and DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaces:
|
||
description: 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".
|
||
items:
|
||
type: string
|
||
type: array
|
||
topologyKey:
|
||
description: 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.
|
||
type: string
|
||
required:
|
||
- topologyKey
|
||
type: object
|
||
weight:
|
||
description: weight associated with matching the
|
||
corresponding podAffinityTerm, in the range 1-100.
|
||
format: int32
|
||
type: integer
|
||
required:
|
||
- podAffinityTerm
|
||
- weight
|
||
type: object
|
||
type: array
|
||
requiredDuringSchedulingIgnoredDuringExecution:
|
||
items:
|
||
properties:
|
||
labelSelector:
|
||
description: A label query over a set of resources,
|
||
in this case pods.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list of label
|
||
selector requirements. The requirements are
|
||
ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: key is the label key that
|
||
the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a key's
|
||
relationship to a set of values. Valid
|
||
operators are In, NotIn, Exists and
|
||
DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaceSelector:
|
||
description: 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.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list of label
|
||
selector requirements. The requirements are
|
||
ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: key is the label key that
|
||
the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a key's
|
||
relationship to a set of values. Valid
|
||
operators are In, NotIn, Exists and
|
||
DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaces:
|
||
description: 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".
|
||
items:
|
||
type: string
|
||
type: array
|
||
topologyKey:
|
||
description: 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.
|
||
type: string
|
||
required:
|
||
- topologyKey
|
||
type: object
|
||
type: array
|
||
type: object
|
||
type: object
|
||
annotations:
|
||
additionalProperties:
|
||
type: string
|
||
description: annotation for fe pods. user can config monitor annotation
|
||
for collect to monitor system.
|
||
type: object
|
||
autoScalingPolicy:
|
||
description: AutoScalingPolicy auto scaling strategy
|
||
properties:
|
||
hpaPolicy:
|
||
description: the policy of cn autoscale. operator use autoscaling
|
||
v2.
|
||
properties:
|
||
behavior:
|
||
description: HorizontalPodAutoscalerBehavior configures
|
||
the scaling behavior of the target. the struct copy
|
||
from k8s.io/api/autoscaling/v2beta2/types.go. the redundancy
|
||
code will hide the restriction about HorizontalPodAutoscaler
|
||
version and kubernetes releases matching issue. the
|
||
properties:
|
||
scaleDown:
|
||
description: scaleDown is scaling policy for scaling
|
||
Down. If not set, the default value is to allow
|
||
to scale down to minReplicas pods, with a 300 second
|
||
stabilization window (i.e., the highest recommendation
|
||
for the last 300sec is used).
|
||
properties:
|
||
policies:
|
||
description: policies is a list of potential scaling
|
||
polices which can be used during scaling. At
|
||
least one policy must be specified, otherwise
|
||
the HPAScalingRules will be discarded as invalid
|
||
items:
|
||
description: HPAScalingPolicy is a single policy
|
||
which must hold true for a specified past
|
||
interval.
|
||
properties:
|
||
periodSeconds:
|
||
description: PeriodSeconds specifies the
|
||
window of time for which the policy should
|
||
hold true. PeriodSeconds must be greater
|
||
than zero and less than or equal to 1800
|
||
(30 min).
|
||
format: int32
|
||
type: integer
|
||
type:
|
||
description: Type is used to specify the
|
||
scaling policy.
|
||
type: string
|
||
value:
|
||
description: Value contains the amount of
|
||
change which is permitted by the policy.
|
||
It must be greater than zero
|
||
format: int32
|
||
type: integer
|
||
required:
|
||
- periodSeconds
|
||
- type
|
||
- value
|
||
type: object
|
||
type: array
|
||
selectPolicy:
|
||
description: selectPolicy is used to specify which
|
||
policy should be used. If not set, the default
|
||
value MaxPolicySelect is used.
|
||
type: string
|
||
stabilizationWindowSeconds:
|
||
description: 'StabilizationWindowSeconds is the
|
||
number of seconds for which past recommendations
|
||
should be considered while scaling up or scaling
|
||
down. StabilizationWindowSeconds must be greater
|
||
than or equal to zero and less than or equal
|
||
to 3600 (one hour). If not set, use the default
|
||
values: - For scale up: 0 (i.e. no stabilization
|
||
is done). - For scale down: 300 (i.e. the stabilization
|
||
window is 300 seconds long).'
|
||
format: int32
|
||
type: integer
|
||
type: object
|
||
scaleUp:
|
||
description: 'scaleUp is scaling policy for scaling
|
||
Up. If not set, the default value is the higher
|
||
of: * increase no more than 4 pods per 60 seconds
|
||
* double the number of pods per 60 seconds No stabilization
|
||
is used.'
|
||
properties:
|
||
policies:
|
||
description: policies is a list of potential scaling
|
||
polices which can be used during scaling. At
|
||
least one policy must be specified, otherwise
|
||
the HPAScalingRules will be discarded as invalid
|
||
items:
|
||
description: HPAScalingPolicy is a single policy
|
||
which must hold true for a specified past
|
||
interval.
|
||
properties:
|
||
periodSeconds:
|
||
description: PeriodSeconds specifies the
|
||
window of time for which the policy should
|
||
hold true. PeriodSeconds must be greater
|
||
than zero and less than or equal to 1800
|
||
(30 min).
|
||
format: int32
|
||
type: integer
|
||
type:
|
||
description: Type is used to specify the
|
||
scaling policy.
|
||
type: string
|
||
value:
|
||
description: Value contains the amount of
|
||
change which is permitted by the policy.
|
||
It must be greater than zero
|
||
format: int32
|
||
type: integer
|
||
required:
|
||
- periodSeconds
|
||
- type
|
||
- value
|
||
type: object
|
||
type: array
|
||
selectPolicy:
|
||
description: selectPolicy is used to specify which
|
||
policy should be used. If not set, the default
|
||
value MaxPolicySelect is used.
|
||
type: string
|
||
stabilizationWindowSeconds:
|
||
description: 'StabilizationWindowSeconds is the
|
||
number of seconds for which past recommendations
|
||
should be considered while scaling up or scaling
|
||
down. StabilizationWindowSeconds must be greater
|
||
than or equal to zero and less than or equal
|
||
to 3600 (one hour). If not set, use the default
|
||
values: - For scale up: 0 (i.e. no stabilization
|
||
is done). - For scale down: 300 (i.e. the stabilization
|
||
window is 300 seconds long).'
|
||
format: int32
|
||
type: integer
|
||
type: object
|
||
type: object
|
||
metrics:
|
||
items:
|
||
description: MetricSpec specifies how to scale based
|
||
on a single metric (only `type` and one other matching
|
||
field should be set at once).
|
||
properties:
|
||
containerResource:
|
||
properties:
|
||
container:
|
||
description: container is the name of the container
|
||
in the pods of the scaling target
|
||
type: string
|
||
name:
|
||
description: name is the name of the resource
|
||
in question.
|
||
type: string
|
||
target:
|
||
description: target specifies the target value
|
||
for the given metric
|
||
properties:
|
||
averageUtilization:
|
||
description: averageUtilization is the target
|
||
value of the average of the resource metric
|
||
across all relevant pods, represented
|
||
as a percentage of the requested value
|
||
of the resource for the pods. Currently
|
||
only valid for Resource metric source
|
||
type
|
||
format: int32
|
||
type: integer
|
||
averageValue:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
description: averageValue is the target
|
||
value of the average of the metric across
|
||
all relevant pods (as a quantity)
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
type:
|
||
description: type represents whether the
|
||
metric type is Utilization, Value, or
|
||
AverageValue
|
||
type: string
|
||
value:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
description: value is the target value of
|
||
the metric (as a quantity).
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
required:
|
||
- type
|
||
type: object
|
||
required:
|
||
- container
|
||
- name
|
||
- target
|
||
type: object
|
||
external:
|
||
description: external refers to a global metric
|
||
that is not associated with any Kubernetes object.
|
||
It allows autoscaling based on information coming
|
||
from components running outside of cluster (for
|
||
example length of queue in cloud messaging service,
|
||
or QPS from loadbalancer running outside of cluster).
|
||
properties:
|
||
metric:
|
||
description: metric identifies the target metric
|
||
by name and selector
|
||
properties:
|
||
name:
|
||
description: name is the name of the given
|
||
metric
|
||
type: string
|
||
selector:
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list
|
||
of label selector requirements. The
|
||
requirements are ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values,
|
||
a key, and an operator that relates
|
||
the key and values.
|
||
properties:
|
||
key:
|
||
description: key is the label
|
||
key that the selector applies
|
||
to.
|
||
type: string
|
||
operator:
|
||
description: operator represents
|
||
a key's relationship to a set
|
||
of values. Valid operators are
|
||
In, NotIn, Exists and DoesNotExist.
|
||
type: string
|
||
values:
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
required:
|
||
- name
|
||
type: object
|
||
target:
|
||
description: target specifies the target value
|
||
for the given metric
|
||
properties:
|
||
averageUtilization:
|
||
description: averageUtilization is the target
|
||
value of the average of the resource metric
|
||
across all relevant pods, represented
|
||
as a percentage of the requested value
|
||
of the resource for the pods. Currently
|
||
only valid for Resource metric source
|
||
type
|
||
format: int32
|
||
type: integer
|
||
averageValue:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
description: averageValue is the target
|
||
value of the average of the metric across
|
||
all relevant pods (as a quantity)
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
type:
|
||
description: type represents whether the
|
||
metric type is Utilization, Value, or
|
||
AverageValue
|
||
type: string
|
||
value:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
description: value is the target value of
|
||
the metric (as a quantity).
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
required:
|
||
- type
|
||
type: object
|
||
required:
|
||
- metric
|
||
- target
|
||
type: object
|
||
object:
|
||
description: object refers to a metric describing
|
||
a single kubernetes object (for example, hits-per-second
|
||
on an Ingress object).
|
||
properties:
|
||
describedObject:
|
||
description: CrossVersionObjectReference contains
|
||
enough information to let you identify the
|
||
referred resource.
|
||
properties:
|
||
apiVersion:
|
||
description: API version of the referent
|
||
type: string
|
||
kind:
|
||
description: 'Kind of the referent; More
|
||
info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"'
|
||
type: string
|
||
name:
|
||
description: 'Name of the referent; More
|
||
info: http://kubernetes.io/docs/user-guide/identifiers#names'
|
||
type: string
|
||
required:
|
||
- kind
|
||
- name
|
||
type: object
|
||
metric:
|
||
description: metric identifies the target metric
|
||
by name and selector
|
||
properties:
|
||
name:
|
||
description: name is the name of the given
|
||
metric
|
||
type: string
|
||
selector:
|
||
description: selector is the string-encoded
|
||
form of a standard kubernetes label selector
|
||
for the given metric When set, it is passed
|
||
as an additional parameter to the metrics
|
||
server for more specific metrics scoping.
|
||
When unset, just the metricName will be
|
||
used to gather metrics.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list
|
||
of label selector requirements. The
|
||
requirements are ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values,
|
||
a key, and an operator that relates
|
||
the key and values.
|
||
properties:
|
||
key:
|
||
description: key is the label
|
||
key that the selector applies
|
||
to.
|
||
type: string
|
||
operator:
|
||
description: operator represents
|
||
a key's relationship to a set
|
||
of values. Valid operators are
|
||
In, NotIn, Exists and DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
required:
|
||
- name
|
||
type: object
|
||
target:
|
||
description: target specifies the target value
|
||
for the given metric
|
||
properties:
|
||
averageUtilization:
|
||
description: averageUtilization is the target
|
||
value of the average of the resource metric
|
||
across all relevant pods, represented
|
||
as a percentage of the requested value
|
||
of the resource for the pods. Currently
|
||
only valid for Resource metric source
|
||
type
|
||
format: int32
|
||
type: integer
|
||
averageValue:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
description: averageValue is the target
|
||
value of the average of the metric across
|
||
all relevant pods (as a quantity)
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
type:
|
||
description: type represents whether the
|
||
metric type is Utilization, Value, or
|
||
AverageValue
|
||
type: string
|
||
value:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
description: value is the target value of
|
||
the metric (as a quantity).
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
required:
|
||
- type
|
||
type: object
|
||
required:
|
||
- describedObject
|
||
- metric
|
||
- target
|
||
type: object
|
||
pods:
|
||
description: pods refers to a metric describing
|
||
each pod in the current scale target (for example,
|
||
transactions-processed-per-second). The values
|
||
will be averaged together before being compared
|
||
to the target value.
|
||
properties:
|
||
metric:
|
||
description: metric identifies the target metric
|
||
by name and selector
|
||
properties:
|
||
name:
|
||
description: name is the name of the given
|
||
metric
|
||
type: string
|
||
selector:
|
||
description: selector is the string-encoded
|
||
form of a standard kubernetes label selector
|
||
for the given metric When set, it is passed
|
||
as an additional parameter to the metrics
|
||
server for more specific metrics scoping.
|
||
When unset, just the metricName will be
|
||
used to gather metrics.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list
|
||
of label selector requirements. The
|
||
requirements are ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values,
|
||
a key, and an operator that relates
|
||
the key and values.
|
||
properties:
|
||
key:
|
||
description: key is the label
|
||
key that the selector applies
|
||
to.
|
||
type: string
|
||
operator:
|
||
description: operator represents
|
||
a key's relationship to a set
|
||
of values. Valid operators are
|
||
In, NotIn, Exists and DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: 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.
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
required:
|
||
- name
|
||
type: object
|
||
target:
|
||
description: target specifies the target value
|
||
for the given metric
|
||
properties:
|
||
averageUtilization:
|
||
description: averageUtilization is the target
|
||
value of the average of the resource metric
|
||
across all relevant pods, represented
|
||
as a percentage of the requested value
|
||
of the resource for the pods. Currently
|
||
only valid for Resource metric source
|
||
type
|
||
format: int32
|
||
type: integer
|
||
averageValue:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
description: averageValue is the target
|
||
value of the average of the metric across
|
||
all relevant pods (as a quantity)
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
type:
|
||
description: type represents whether the
|
||
metric type is Utilization, Value, or
|
||
AverageValue
|
||
type: string
|
||
value:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
description: value is the target value of
|
||
the metric (as a quantity).
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
required:
|
||
- type
|
||
type: object
|
||
required:
|
||
- metric
|
||
- target
|
||
type: object
|
||
resource:
|
||
description: resource refers to a resource metric
|
||
(such as those specified in requests and limits)
|
||
known to Kubernetes describing each pod in the
|
||
current scale target (e.g. CPU or memory). Such
|
||
metrics are built in to Kubernetes, and have special
|
||
scaling options on top of those available to normal
|
||
per-pod metrics using the "pods" source.
|
||
properties:
|
||
name:
|
||
description: name is the name of the resource
|
||
in question.
|
||
type: string
|
||
target:
|
||
description: target specifies the target value
|
||
for the given metric
|
||
properties:
|
||
averageUtilization:
|
||
description: averageUtilization is the target
|
||
value of the average of the resource metric
|
||
across all relevant pods, represented
|
||
as a percentage of the requested value
|
||
of the resource for the pods. Currently
|
||
only valid for Resource metric source
|
||
type
|
||
format: int32
|
||
type: integer
|
||
averageValue:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
description: averageValue is the target
|
||
value of the average of the metric across
|
||
all relevant pods (as a quantity)
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
type:
|
||
description: type represents whether the
|
||
metric type is Utilization, Value, or
|
||
AverageValue
|
||
type: string
|
||
value:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
description: value is the target value of
|
||
the metric (as a quantity).
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
required:
|
||
- type
|
||
type: object
|
||
required:
|
||
- name
|
||
- target
|
||
type: object
|
||
type:
|
||
description: 'type is the type of metric source. It
|
||
should be one of "ContainerResource", "External",
|
||
"Object", "Pods" or "Resource", each mapping to
|
||
a matching field in the object. Note: "ContainerResource"
|
||
type is available on when the feature-gate HPAContainerMetrics
|
||
is enabled'
|
||
type: string
|
||
required:
|
||
- type
|
||
type: object
|
||
type: array
|
||
type: object
|
||
maxReplicas:
|
||
description: the max numbers of target.
|
||
format: int32
|
||
type: integer
|
||
minReplicas:
|
||
description: the min numbers of target.
|
||
format: int32
|
||
type: integer
|
||
version:
|
||
default: v2
|
||
description: version represents the autoscaler version for
|
||
cn service. only support v1,,v2
|
||
type: string
|
||
type: object
|
||
claims:
|
||
description: "Claims lists the names of resources, defined in
|
||
spec.resourceClaims, that are used by this container. \n This
|
||
is an alpha field and requires enabling the DynamicResourceAllocation
|
||
feature gate. \n This field is immutable."
|
||
items:
|
||
description: ResourceClaim references one entry in PodSpec.ResourceClaims.
|
||
properties:
|
||
name:
|
||
description: 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.
|
||
type: string
|
||
required:
|
||
- name
|
||
type: object
|
||
type: array
|
||
x-kubernetes-list-map-keys:
|
||
- name
|
||
x-kubernetes-list-type: map
|
||
configMapInfo:
|
||
description: the reference for cn configMap.
|
||
properties:
|
||
configMapName:
|
||
description: ConfigMapName mapped the configuration files
|
||
in the doris 'conf/' directory. such as 'fe.conf', 'be.conf'.
|
||
If HDFS access is involved, there may also be 'core-site.xml'
|
||
and other files. doris-operator mounts these configuration
|
||
files in the '/etc/doris' directory by default. links them
|
||
to the 'conf/' directory of the doris component through
|
||
soft links.
|
||
type: string
|
||
configMaps:
|
||
description: ConfigMaps can mount multiple configmaps to the
|
||
specified path. The mounting path of configmap cannot be
|
||
repeated.
|
||
items:
|
||
properties:
|
||
configMapName:
|
||
description: name of configmap that needs to mount.
|
||
type: string
|
||
mountPath:
|
||
description: Current ConfigMap Mount Path. If MountConfigMapInfo
|
||
belongs to the same ConfigMapInfo, their MountPath
|
||
cannot be repeated.
|
||
type: string
|
||
type: object
|
||
type: array
|
||
resolveKey:
|
||
description: 'Deprecated: This configuration has been abandoned
|
||
and will be cleared in version 1.7.0. It is currently forced
|
||
to be ''fe.conf'', ''be.conf'', ''apache_hdfs_broker.conf''
|
||
It is no longer effective. the configuration content will
|
||
not take effect.'
|
||
type: string
|
||
type: object
|
||
containerSecurityContext:
|
||
description: Security context for all containers running in the
|
||
pod (unless they override it).
|
||
properties:
|
||
allowPrivilegeEscalation:
|
||
description: 'AllowPrivilegeEscalation controls whether a
|
||
process can gain more privileges than its parent process.
|
||
This bool directly controls if the no_new_privs flag will
|
||
be set on the container process. AllowPrivilegeEscalation
|
||
is true always when the container is: 1) run as Privileged
|
||
2) has CAP_SYS_ADMIN Note that this field cannot be set
|
||
when spec.os.name is windows.'
|
||
type: boolean
|
||
capabilities:
|
||
description: The capabilities to add/drop when running containers.
|
||
Defaults to the default set of capabilities granted by the
|
||
container runtime. Note that this field cannot be set when
|
||
spec.os.name is windows.
|
||
properties:
|
||
add:
|
||
description: Added capabilities
|
||
items:
|
||
description: Capability represent POSIX capabilities
|
||
type
|
||
type: string
|
||
type: array
|
||
drop:
|
||
description: Removed capabilities
|
||
items:
|
||
description: Capability represent POSIX capabilities
|
||
type
|
||
type: string
|
||
type: array
|
||
type: object
|
||
privileged:
|
||
description: Run container in privileged mode. Processes in
|
||
privileged containers are essentially equivalent to root
|
||
on the host. Defaults to false. Note that this field cannot
|
||
be set when spec.os.name is windows.
|
||
type: boolean
|
||
procMount:
|
||
description: procMount denotes the type of proc mount to use
|
||
for the containers. The default is DefaultProcMount which
|
||
uses the container runtime defaults for readonly paths and
|
||
masked paths. This requires the ProcMountType feature flag
|
||
to be enabled. Note that this field cannot be set when spec.os.name
|
||
is windows.
|
||
type: string
|
||
readOnlyRootFilesystem:
|
||
description: Whether this container has a read-only root filesystem.
|
||
Default is false. Note that this field cannot be set when
|
||
spec.os.name is windows.
|
||
type: boolean
|
||
runAsGroup:
|
||
description: The GID to run the entrypoint of the container
|
||
process. Uses runtime default if unset. May also be set
|
||
in PodSecurityContext. If set in both SecurityContext and
|
||
PodSecurityContext, the value specified in SecurityContext
|
||
takes precedence. Note that this field cannot be set when
|
||
spec.os.name is windows.
|
||
format: int64
|
||
type: integer
|
||
runAsNonRoot:
|
||
type: boolean
|
||
runAsUser:
|
||
format: int64
|
||
type: integer
|
||
seLinuxOptions:
|
||
properties:
|
||
level:
|
||
description: Level is SELinux level label that applies
|
||
to the container.
|
||
type: string
|
||
role:
|
||
description: Role is a SELinux role label that applies
|
||
to the container.
|
||
type: string
|
||
type:
|
||
description: Type is a SELinux type label that applies
|
||
to the container.
|
||
type: string
|
||
user:
|
||
description: User is a SELinux user label that applies
|
||
to the container.
|
||
type: string
|
||
type: object
|
||
seccompProfile:
|
||
description: The seccomp options to use by this container.
|
||
If seccomp options are provided at both the pod & container
|
||
level, the container options override the pod options. Note
|
||
that this field cannot be set when spec.os.name is windows.
|
||
properties:
|
||
localhostProfile:
|
||
description: localhostProfile indicates a profile defined
|
||
in a file on the node should be used. The profile must
|
||
be preconfigured on the node to work. Must be a descending
|
||
path, relative to the kubelet's configured seccomp profile
|
||
location. Must only be set if type is "Localhost".
|
||
type: string
|
||
type:
|
||
description: "type indicates which kind of seccomp profile
|
||
will be applied. Valid options are: \n Localhost - a
|
||
profile defined in a file on the node should be used.
|
||
RuntimeDefault - the container runtime default profile
|
||
should be used. Unconfined - no profile should be applied."
|
||
type: string
|
||
required:
|
||
- type
|
||
type: object
|
||
windowsOptions:
|
||
description: The Windows specific settings applied to all
|
||
containers. If unspecified, the options from the PodSecurityContext
|
||
will be used. If set in both SecurityContext and PodSecurityContext,
|
||
the value specified in SecurityContext takes precedence.
|
||
Note that this field cannot be set when spec.os.name is
|
||
linux.
|
||
properties:
|
||
gmsaCredentialSpec:
|
||
description: GMSACredentialSpec is where the GMSA admission
|
||
webhook (https://github.com/kubernetes-sigs/windows-gmsa)
|
||
inlines the contents of the GMSA credential spec named
|
||
by the GMSACredentialSpecName field.
|
||
type: string
|
||
gmsaCredentialSpecName:
|
||
description: GMSACredentialSpecName is the name of the
|
||
GMSA credential spec to use.
|
||
type: string
|
||
hostProcess:
|
||
type: boolean
|
||
runAsUserName:
|
||
description: The UserName in Windows to run the entrypoint
|
||
of the container process. Defaults to the user specified
|
||
in image metadata if unspecified. May also be set in
|
||
PodSecurityContext. If set in both SecurityContext and
|
||
PodSecurityContext, the value specified in SecurityContext
|
||
takes precedence.
|
||
type: string
|
||
type: object
|
||
type: object
|
||
envVars:
|
||
description: cnEnvVars is a slice of environment variables that
|
||
are added to the pods, the default is empty.
|
||
items:
|
||
description: EnvVar represents an environment variable present
|
||
in a Container.
|
||
properties:
|
||
name:
|
||
description: Name of the environment variable. Must be a
|
||
C_IDENTIFIER.
|
||
type: string
|
||
value:
|
||
type: string
|
||
valueFrom:
|
||
description: Source for the environment variable's value.
|
||
Cannot be used if value is not empty.
|
||
properties:
|
||
configMapKeyRef:
|
||
description: Selects a key of a ConfigMap.
|
||
properties:
|
||
key:
|
||
description: The key to select.
|
||
type: string
|
||
name:
|
||
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
|
||
TODO: Add other useful fields. apiVersion, kind,
|
||
uid?'
|
||
type: string
|
||
optional:
|
||
description: Specify whether the ConfigMap or its
|
||
key must be defined
|
||
type: boolean
|
||
required:
|
||
- key
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
fieldRef:
|
||
description: 'Selects a field of the pod: supports metadata.name,
|
||
metadata.namespace, `metadata.labels[''<KEY>'']`,
|
||
`metadata.annotations[''<KEY>'']`, spec.nodeName,
|
||
spec.serviceAccountName, status.hostIP, status.podIP,
|
||
status.podIPs.'
|
||
properties:
|
||
apiVersion:
|
||
description: Version of the schema the FieldPath
|
||
is written in terms of, defaults to "v1".
|
||
type: string
|
||
fieldPath:
|
||
description: Path of the field to select in the
|
||
specified API version.
|
||
type: string
|
||
required:
|
||
- fieldPath
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
resourceFieldRef:
|
||
description: 'Selects a resource of the container: only
|
||
resources limits and requests (limits.cpu, limits.memory,
|
||
limits.ephemeral-storage, requests.cpu, requests.memory
|
||
and requests.ephemeral-storage) are currently supported.'
|
||
properties:
|
||
containerName:
|
||
description: 'Container name: required for volumes,
|
||
optional for env vars'
|
||
type: string
|
||
divisor:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
description: Specifies the output format of the
|
||
exposed resources, defaults to "1"
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
resource:
|
||
description: 'Required: resource to select'
|
||
type: string
|
||
required:
|
||
- resource
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
secretKeyRef:
|
||
description: Selects a key of a secret in the pod's
|
||
namespace
|
||
properties:
|
||
key:
|
||
description: The key of the secret to select from. Must
|
||
be a valid secret key.
|
||
type: string
|
||
name:
|
||
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
|
||
TODO: Add other useful fields. apiVersion, kind,
|
||
uid?'
|
||
type: string
|
||
optional:
|
||
description: Specify whether the Secret or its key
|
||
must be defined
|
||
type: boolean
|
||
required:
|
||
- key
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
type: object
|
||
required:
|
||
- name
|
||
type: object
|
||
type: array
|
||
feAddress:
|
||
description: specify register fe addresses
|
||
properties:
|
||
ServiceName:
|
||
description: the service name that proxy fe on k8s. the service
|
||
must in same namespace with fe.
|
||
type: string
|
||
endpoints:
|
||
description: the fe addresses if not deploy by crd, user can
|
||
use k8s deploy fe observer.
|
||
properties:
|
||
:address:
|
||
description: the ip or domain array.
|
||
items:
|
||
type: string
|
||
type: array
|
||
port:
|
||
description: the fe port that for query. the field `query_port`
|
||
defines in fe config.
|
||
type: integer
|
||
type: object
|
||
type: object
|
||
hostAliases:
|
||
description: HostAliases is an optional list of hosts and IPs
|
||
that will be injected into the pod's hosts file if specified.
|
||
This is only valid for non-hostNetwork pods.
|
||
items:
|
||
description: HostAlias holds the mapping between IP and hostnames
|
||
that will be injected as an entry in the pod's hosts file.
|
||
properties:
|
||
hostnames:
|
||
description: Hostnames for the above IP address.
|
||
items:
|
||
type: string
|
||
type: array
|
||
ip:
|
||
description: IP address of the host file entry.
|
||
type: string
|
||
type: object
|
||
type: array
|
||
image:
|
||
description: Image for a doris cn deployment.
|
||
type: string
|
||
imagePullSecrets:
|
||
description: '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'
|
||
items:
|
||
description: LocalObjectReference contains enough information
|
||
to let you locate the referenced object inside the same namespace.
|
||
properties:
|
||
name:
|
||
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
|
||
TODO: Add other useful fields. apiVersion, kind, uid?'
|
||
type: string
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
type: array
|
||
limits:
|
||
additionalProperties:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
description: 'Limits describes the maximum amount of compute resources
|
||
allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
|
||
type: object
|
||
nodeSelector:
|
||
additionalProperties:
|
||
type: string
|
||
description: (Optional) If specified, the pod's nodeSelector,displayName="Map
|
||
of nodeSelectors to match when scheduling pods on nodes"
|
||
type: object
|
||
persistentVolumes:
|
||
items:
|
||
description: PersistentVolume defines volume information and
|
||
container mount information.
|
||
properties:
|
||
annotations:
|
||
additionalProperties:
|
||
type: string
|
||
description: Annotation for PVC pods. Users can adapt the
|
||
storage authentication and pv binding of the cloud platform
|
||
through configuration. It only takes effect in the first
|
||
configuration and cannot be added or modified later.
|
||
type: object
|
||
mountPath:
|
||
description: the mount path for component service.
|
||
type: string
|
||
name:
|
||
description: the volume name associate with
|
||
type: string
|
||
persistentVolumeClaimSpec:
|
||
description: PersistentVolumeClaimSpec is a list of claim
|
||
spec about storage that pods are required.
|
||
properties:
|
||
accessModes:
|
||
description: 'accessModes contains the desired access
|
||
modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1'
|
||
items:
|
||
type: string
|
||
type: array
|
||
dataSource:
|
||
properties:
|
||
apiGroup:
|
||
description: 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.
|
||
type: string
|
||
kind:
|
||
description: Kind is the type of resource being
|
||
referenced
|
||
type: string
|
||
name:
|
||
description: Name is the name of resource being
|
||
referenced
|
||
type: string
|
||
required:
|
||
- kind
|
||
- name
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
dataSourceRef:
|
||
properties:
|
||
apiGroup:
|
||
description: 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.
|
||
type: string
|
||
kind:
|
||
description: Kind is the type of resource being
|
||
referenced
|
||
type: string
|
||
name:
|
||
description: Name is the name of resource being
|
||
referenced
|
||
type: string
|
||
namespace:
|
||
type: string
|
||
required:
|
||
- kind
|
||
- name
|
||
type: object
|
||
resources:
|
||
properties:
|
||
claims:
|
||
description: "Claims lists the names of resources,
|
||
defined in spec.resourceClaims, that are used
|
||
by this container. \n This is an alpha field and
|
||
requires enabling the DynamicResourceAllocation
|
||
feature gate. \n This field is immutable."
|
||
items:
|
||
description: ResourceClaim references one entry
|
||
in PodSpec.ResourceClaims.
|
||
properties:
|
||
name:
|
||
description: 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.
|
||
type: string
|
||
required:
|
||
- name
|
||
type: object
|
||
type: array
|
||
x-kubernetes-list-map-keys:
|
||
- name
|
||
x-kubernetes-list-type: map
|
||
limits:
|
||
additionalProperties:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
description: 'Limits describes the maximum amount
|
||
of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
|
||
type: object
|
||
requests:
|
||
additionalProperties:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
description: 'Requests describes the minimum amount
|
||
of compute resources required. If Requests is
|
||
omitted for a container, it defaults to Limits
|
||
if that is explicitly specified, otherwise to
|
||
an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
|
||
type: object
|
||
type: object
|
||
selector:
|
||
description: selector is a label query over volumes
|
||
to consider for binding.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list of label
|
||
selector requirements. The requirements are ANDed.
|
||
items:
|
||
description: A label selector requirement is a
|
||
selector that contains values, a key, and an
|
||
operator that relates the key and values.
|
||
properties:
|
||
key:
|
||
description: key is the label key that the
|
||
selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a key's relationship
|
||
to a set of values. Valid operators are
|
||
In, NotIn, Exists and DoesNotExist.
|
||
type: string
|
||
values:
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
storageClassName:
|
||
description: 'storageClassName is the name of the StorageClass
|
||
required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1'
|
||
type: string
|
||
volumeMode:
|
||
description: volumeMode defines what type of volume
|
||
is required by the claim. Value of Filesystem is implied
|
||
when not included in claim spec.
|
||
type: string
|
||
volumeName:
|
||
description: volumeName is the binding reference to
|
||
the PersistentVolume backing this claim.
|
||
type: string
|
||
type: object
|
||
provisioner:
|
||
description: defines pvc provisioner
|
||
type: string
|
||
type: object
|
||
type: array
|
||
podLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: podLabels for user selector or classify pods
|
||
type: object
|
||
replicas:
|
||
description: Replicas is the number of desired cn Pod.
|
||
format: int32
|
||
minimum: 0
|
||
type: integer
|
||
requests:
|
||
additionalProperties:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
description: 'Requests describes the minimum amount of compute
|
||
resources required. If Requests is omitted for a container,
|
||
it defaults to Limits if that is explicitly specified, otherwise
|
||
to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
|
||
type: object
|
||
securityContext:
|
||
description: Security context for pod.
|
||
properties:
|
||
fsGroup:
|
||
format: int64
|
||
type: integer
|
||
fsGroupChangePolicy:
|
||
type: string
|
||
runAsGroup:
|
||
format: int64
|
||
type: integer
|
||
runAsNonRoot:
|
||
type: boolean
|
||
runAsUser:
|
||
format: int64
|
||
type: integer
|
||
seLinuxOptions:
|
||
properties:
|
||
level:
|
||
description: Level is SELinux level label that applies
|
||
to the container.
|
||
type: string
|
||
role:
|
||
description: Role is a SELinux role label that applies
|
||
to the container.
|
||
type: string
|
||
type:
|
||
description: Type is a SELinux type label that applies
|
||
to the container.
|
||
type: string
|
||
user:
|
||
description: User is a SELinux user label that applies
|
||
to the container.
|
||
type: string
|
||
type: object
|
||
seccompProfile:
|
||
description: The seccomp options to use by the containers
|
||
in this pod. Note that this field cannot be set when spec.os.name
|
||
is windows.
|
||
properties:
|
||
localhostProfile:
|
||
type: string
|
||
type:
|
||
type: string
|
||
required:
|
||
- type
|
||
type: object
|
||
supplementalGroups:
|
||
items:
|
||
format: int64
|
||
type: integer
|
||
type: array
|
||
sysctls:
|
||
description: Sysctls hold a list of namespaced sysctls used
|
||
for the pod. Pods with unsupported sysctls (by the container
|
||
runtime) might fail to launch. Note that this field cannot
|
||
be set when spec.os.name is windows.
|
||
items:
|
||
description: Sysctl defines a kernel parameter to be set
|
||
properties:
|
||
name:
|
||
description: Name of a property to set
|
||
type: string
|
||
value:
|
||
description: Value of a property to set
|
||
type: string
|
||
required:
|
||
- name
|
||
- value
|
||
type: object
|
||
type: array
|
||
windowsOptions:
|
||
description: The Windows specific settings applied to all
|
||
containers. If unspecified, the options within a container's
|
||
SecurityContext will be used. If set in both SecurityContext
|
||
and PodSecurityContext, the value specified in SecurityContext
|
||
takes precedence. Note that this field cannot be set when
|
||
spec.os.name is linux.
|
||
properties:
|
||
gmsaCredentialSpec:
|
||
description: GMSACredentialSpec is where the GMSA admission
|
||
webhook (https://github.com/kubernetes-sigs/windows-gmsa)
|
||
inlines the contents of the GMSA credential spec named
|
||
by the GMSACredentialSpecName field.
|
||
type: string
|
||
gmsaCredentialSpecName:
|
||
description: GMSACredentialSpecName is the name of the
|
||
GMSA credential spec to use.
|
||
type: string
|
||
hostProcess:
|
||
type: boolean
|
||
runAsUserName:
|
||
type: string
|
||
type: object
|
||
type: object
|
||
service:
|
||
description: 'expose doris components for accessing. example:
|
||
if you want to use `stream load` to load data into doris out
|
||
k8s, you can use be service and config different service type
|
||
for loading data.'
|
||
properties:
|
||
annotations:
|
||
additionalProperties:
|
||
type: string
|
||
description: Annotations for using function on different cloud
|
||
platform.
|
||
type: object
|
||
loadBalancerIP:
|
||
type: string
|
||
servicePorts:
|
||
description: ServicePort config service for NodePort access
|
||
mode.
|
||
items:
|
||
description: DorisServicePort for ServiceType=NodePort situation.
|
||
properties:
|
||
nodePort:
|
||
format: int32
|
||
type: integer
|
||
targetPort:
|
||
format: int32
|
||
type: integer
|
||
type: object
|
||
type: array
|
||
type:
|
||
description: 'type of service,the possible value for the service
|
||
type are : ClusterIP, NodePort, LoadBalancer,ExternalName.
|
||
More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types'
|
||
type: string
|
||
type: object
|
||
serviceAccount:
|
||
description: serviceAccount for cn access cloud service.
|
||
type: string
|
||
systemInitialization:
|
||
description: SystemInitialization for fe, be and cn setting system
|
||
parameters.
|
||
properties:
|
||
args:
|
||
description: Arguments to the entrypoint.
|
||
items:
|
||
type: string
|
||
type: array
|
||
command:
|
||
description: Entrypoint array. Not executed within a shell.
|
||
items:
|
||
type: string
|
||
type: array
|
||
initImage:
|
||
description: Image for doris initialization, default is selectdb/alpine:latest.
|
||
type: string
|
||
type: object
|
||
tolerations:
|
||
description: (Optional) Tolerations for scheduling pods onto some
|
||
dedicated nodes
|
||
items:
|
||
description: The pod this Toleration is attached to tolerates
|
||
any taint that matches the triple <key,value,effect> using
|
||
the matching operator <operator>.
|
||
properties:
|
||
effect:
|
||
description: Effect indicates the taint effect to match.
|
||
Empty means match all taint effects. When specified, allowed
|
||
values are NoSchedule, PreferNoSchedule and NoExecute.
|
||
type: string
|
||
key:
|
||
description: 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.
|
||
type: string
|
||
operator:
|
||
type: string
|
||
tolerationSeconds:
|
||
format: int64
|
||
type: integer
|
||
value:
|
||
description: Value is the taint value the toleration matches
|
||
to. If the operator is Exists, the value should be empty,
|
||
otherwise just a regular string.
|
||
type: string
|
||
type: object
|
||
type: array
|
||
required:
|
||
- image
|
||
type: object
|
||
feSpec:
|
||
description: defines the fe cluster state that will be created by
|
||
operator.
|
||
properties:
|
||
affinity:
|
||
description: If specified, the pod's scheduling constraints.
|
||
properties:
|
||
nodeAffinity:
|
||
description: Describes node affinity scheduling rules for
|
||
the pod.
|
||
properties:
|
||
preferredDuringSchedulingIgnoredDuringExecution:
|
||
items:
|
||
description: 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).
|
||
properties:
|
||
preference:
|
||
description: A node selector term, associated with
|
||
the corresponding weight.
|
||
properties:
|
||
matchExpressions:
|
||
description: A list of node selector requirements
|
||
by node's labels.
|
||
items:
|
||
description: A node selector requirement is
|
||
a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: The label key that the selector
|
||
applies to.
|
||
type: string
|
||
operator:
|
||
description: Represents a key's relationship
|
||
to a set of values. Valid operators
|
||
are In, NotIn, Exists, DoesNotExist.
|
||
Gt, and Lt.
|
||
type: string
|
||
values:
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchFields:
|
||
description: A list of node selector requirements
|
||
by node's fields.
|
||
items:
|
||
description: A node selector requirement is
|
||
a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: The label key that the selector
|
||
applies to.
|
||
type: string
|
||
operator:
|
||
description: Represents a key's relationship
|
||
to a set of values. Valid operators
|
||
are In, NotIn, Exists, DoesNotExist.
|
||
Gt, and Lt.
|
||
type: string
|
||
values:
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
weight:
|
||
description: Weight associated with matching the
|
||
corresponding nodeSelectorTerm, in the range 1-100.
|
||
format: int32
|
||
type: integer
|
||
required:
|
||
- preference
|
||
- weight
|
||
type: object
|
||
type: array
|
||
requiredDuringSchedulingIgnoredDuringExecution:
|
||
properties:
|
||
nodeSelectorTerms:
|
||
description: Required. A list of node selector terms.
|
||
The terms are ORed.
|
||
items:
|
||
description: 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.
|
||
properties:
|
||
matchExpressions:
|
||
description: A list of node selector requirements
|
||
by node's labels.
|
||
items:
|
||
description: A node selector requirement is
|
||
a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: The label key that the selector
|
||
applies to.
|
||
type: string
|
||
operator:
|
||
description: Represents a key's relationship
|
||
to a set of values. Valid operators
|
||
are In, NotIn, Exists, DoesNotExist.
|
||
Gt, and Lt.
|
||
type: string
|
||
values:
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchFields:
|
||
description: A list of node selector requirements
|
||
by node's fields.
|
||
items:
|
||
description: A node selector requirement is
|
||
a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: The label key that the selector
|
||
applies to.
|
||
type: string
|
||
operator:
|
||
description: Represents a key's relationship
|
||
to a set of values. Valid operators
|
||
are In, NotIn, Exists, DoesNotExist.
|
||
Gt, and Lt.
|
||
type: string
|
||
values:
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
type: array
|
||
required:
|
||
- nodeSelectorTerms
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
type: object
|
||
podAffinity:
|
||
description: Describes pod affinity scheduling rules (e.g.
|
||
co-locate this pod in the same node, zone, etc. as some
|
||
other pod(s)).
|
||
properties:
|
||
preferredDuringSchedulingIgnoredDuringExecution:
|
||
items:
|
||
description: The weights of all of the matched WeightedPodAffinityTerm
|
||
fields are added per-node to find the most preferred
|
||
node(s)
|
||
properties:
|
||
podAffinityTerm:
|
||
description: Required. A pod affinity term, associated
|
||
with the corresponding weight.
|
||
properties:
|
||
labelSelector:
|
||
description: A label query over a set of resources,
|
||
in this case pods.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list
|
||
of label selector requirements. The requirements
|
||
are ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values,
|
||
a key, and an operator that relates
|
||
the key and values.
|
||
properties:
|
||
key:
|
||
description: key is the label key
|
||
that the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a
|
||
key's relationship to a set of values.
|
||
Valid operators are In, NotIn, Exists
|
||
and DoesNotExist.
|
||
type: string
|
||
values:
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaceSelector:
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list
|
||
of label selector requirements. The requirements
|
||
are ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values,
|
||
a key, and an operator that relates
|
||
the key and values.
|
||
properties:
|
||
key:
|
||
description: key is the label key
|
||
that the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a
|
||
key's relationship to a set of values.
|
||
Valid operators are In, NotIn, Exists
|
||
and DoesNotExist.
|
||
type: string
|
||
values:
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaces:
|
||
items:
|
||
type: string
|
||
type: array
|
||
topologyKey:
|
||
type: string
|
||
required:
|
||
- topologyKey
|
||
type: object
|
||
weight:
|
||
description: weight associated with matching the
|
||
corresponding podAffinityTerm, in the range 1-100.
|
||
format: int32
|
||
type: integer
|
||
required:
|
||
- podAffinityTerm
|
||
- weight
|
||
type: object
|
||
type: array
|
||
requiredDuringSchedulingIgnoredDuringExecution:
|
||
items:
|
||
properties:
|
||
labelSelector:
|
||
description: A label query over a set of resources,
|
||
in this case pods.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list of label
|
||
selector requirements. The requirements are
|
||
ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: key is the label key that
|
||
the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a key's
|
||
relationship to a set of values. Valid
|
||
operators are In, NotIn, Exists and
|
||
DoesNotExist.
|
||
type: string
|
||
values:
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaceSelector:
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list of label
|
||
selector requirements. The requirements are
|
||
ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: key is the label key that
|
||
the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a key's
|
||
relationship to a set of values. Valid
|
||
operators are In, NotIn, Exists and
|
||
DoesNotExist.
|
||
type: string
|
||
values:
|
||
description: 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.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaces:
|
||
items:
|
||
type: string
|
||
type: array
|
||
topologyKey:
|
||
type: string
|
||
required:
|
||
- topologyKey
|
||
type: object
|
||
type: array
|
||
type: object
|
||
podAntiAffinity:
|
||
description: Describes pod anti-affinity scheduling rules
|
||
(e.g. avoid putting this pod in the same node, zone, etc.
|
||
as some other pod(s)).
|
||
properties:
|
||
preferredDuringSchedulingIgnoredDuringExecution:
|
||
items:
|
||
description: The weights of all of the matched WeightedPodAffinityTerm
|
||
fields are added per-node to find the most preferred
|
||
node(s)
|
||
properties:
|
||
podAffinityTerm:
|
||
description: Required. A pod affinity term, associated
|
||
with the corresponding weight.
|
||
properties:
|
||
labelSelector:
|
||
description: A label query over a set of resources,
|
||
in this case pods.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list
|
||
of label selector requirements. The requirements
|
||
are ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values,
|
||
a key, and an operator that relates
|
||
the key and values.
|
||
properties:
|
||
key:
|
||
description: key is the label key
|
||
that the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a
|
||
key's relationship to a set of values.
|
||
Valid operators are In, NotIn, Exists
|
||
and DoesNotExist.
|
||
type: string
|
||
values:
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaceSelector:
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list
|
||
of label selector requirements. The requirements
|
||
are ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values,
|
||
a key, and an operator that relates
|
||
the key and values.
|
||
properties:
|
||
key:
|
||
description: key is the label key
|
||
that the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a
|
||
key's relationship to a set of values.
|
||
Valid operators are In, NotIn, Exists
|
||
and DoesNotExist.
|
||
type: string
|
||
values:
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaces:
|
||
items:
|
||
type: string
|
||
type: array
|
||
topologyKey:
|
||
type: string
|
||
required:
|
||
- topologyKey
|
||
type: object
|
||
weight:
|
||
description: weight associated with matching the
|
||
corresponding podAffinityTerm, in the range 1-100.
|
||
format: int32
|
||
type: integer
|
||
required:
|
||
- podAffinityTerm
|
||
- weight
|
||
type: object
|
||
type: array
|
||
requiredDuringSchedulingIgnoredDuringExecution:
|
||
items:
|
||
properties:
|
||
labelSelector:
|
||
description: A label query over a set of resources,
|
||
in this case pods.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list of label
|
||
selector requirements. The requirements are
|
||
ANDed.
|
||
items:
|
||
description: A label selector requirement
|
||
is a selector that contains values, a key,
|
||
and an operator that relates the key and
|
||
values.
|
||
properties:
|
||
key:
|
||
description: key is the label key that
|
||
the selector applies to.
|
||
type: string
|
||
operator:
|
||
description: operator represents a key's
|
||
relationship to a set of values. Valid
|
||
operators are In, NotIn, Exists and
|
||
DoesNotExist.
|
||
type: string
|
||
values:
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaceSelector:
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list of label
|
||
selector requirements. The requirements are
|
||
ANDed.
|
||
items:
|
||
properties:
|
||
key:
|
||
description: key is the label key that
|
||
the selector applies to.
|
||
type: string
|
||
operator:
|
||
type: string
|
||
values:
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
namespaces:
|
||
items:
|
||
type: string
|
||
type: array
|
||
topologyKey:
|
||
type: string
|
||
required:
|
||
- topologyKey
|
||
type: object
|
||
type: array
|
||
type: object
|
||
type: object
|
||
annotations:
|
||
additionalProperties:
|
||
type: string
|
||
description: annotation for fe pods. user can config monitor annotation
|
||
for collect to monitor system.
|
||
type: object
|
||
claims:
|
||
items:
|
||
description: ResourceClaim references one entry in PodSpec.ResourceClaims.
|
||
properties:
|
||
name:
|
||
type: string
|
||
required:
|
||
- name
|
||
type: object
|
||
type: array
|
||
x-kubernetes-list-map-keys:
|
||
- name
|
||
x-kubernetes-list-type: map
|
||
configMapInfo:
|
||
description: the reference for cn configMap.
|
||
properties:
|
||
configMapName:
|
||
type: string
|
||
configMaps:
|
||
items:
|
||
properties:
|
||
configMapName:
|
||
description: name of configmap that needs to mount.
|
||
type: string
|
||
mountPath:
|
||
type: string
|
||
type: object
|
||
type: array
|
||
resolveKey:
|
||
type: string
|
||
type: object
|
||
containerSecurityContext:
|
||
description: Security context for all containers running in the
|
||
pod (unless they override it).
|
||
properties:
|
||
allowPrivilegeEscalation:
|
||
type: boolean
|
||
capabilities:
|
||
properties:
|
||
add:
|
||
description: Added capabilities
|
||
items:
|
||
description: Capability represent POSIX capabilities
|
||
type
|
||
type: string
|
||
type: array
|
||
drop:
|
||
description: Removed capabilities
|
||
items:
|
||
description: Capability represent POSIX capabilities
|
||
type
|
||
type: string
|
||
type: array
|
||
type: object
|
||
privileged:
|
||
type: boolean
|
||
procMount:
|
||
type: string
|
||
readOnlyRootFilesystem:
|
||
type: boolean
|
||
runAsGroup:
|
||
format: int64
|
||
type: integer
|
||
runAsNonRoot:
|
||
type: boolean
|
||
runAsUser:
|
||
format: int64
|
||
type: integer
|
||
seLinuxOptions:
|
||
properties:
|
||
level:
|
||
description: Level is SELinux level label that applies
|
||
to the container.
|
||
type: string
|
||
role:
|
||
description: Role is a SELinux role label that applies
|
||
to the container.
|
||
type: string
|
||
type:
|
||
description: Type is a SELinux type label that applies
|
||
to the container.
|
||
type: string
|
||
user:
|
||
description: User is a SELinux user label that applies
|
||
to the container.
|
||
type: string
|
||
type: object
|
||
seccompProfile:
|
||
properties:
|
||
localhostProfile:
|
||
type: string
|
||
type:
|
||
type: string
|
||
required:
|
||
- type
|
||
type: object
|
||
windowsOptions:
|
||
properties:
|
||
gmsaCredentialSpec:
|
||
type: string
|
||
gmsaCredentialSpecName:
|
||
description: GMSACredentialSpecName is the name of the
|
||
GMSA credential spec to use.
|
||
type: string
|
||
hostProcess:
|
||
type: boolean
|
||
runAsUserName:
|
||
type: string
|
||
type: object
|
||
type: object
|
||
electionNumber:
|
||
description: the number of fe in election. electionNumber <= replicas,
|
||
left as observers. default value=3
|
||
format: int32
|
||
type: integer
|
||
envVars:
|
||
description: cnEnvVars is a slice of environment variables that
|
||
are added to the pods, the default is empty.
|
||
items:
|
||
description: EnvVar represents an environment variable present
|
||
in a Container.
|
||
properties:
|
||
name:
|
||
description: Name of the environment variable. Must be a
|
||
C_IDENTIFIER.
|
||
type: string
|
||
value:
|
||
type: string
|
||
valueFrom:
|
||
description: Source for the environment variable's value.
|
||
Cannot be used if value is not empty.
|
||
properties:
|
||
configMapKeyRef:
|
||
description: Selects a key of a ConfigMap.
|
||
properties:
|
||
key:
|
||
description: The key to select.
|
||
type: string
|
||
name:
|
||
type: string
|
||
optional:
|
||
description: Specify whether the ConfigMap or its
|
||
key must be defined
|
||
type: boolean
|
||
required:
|
||
- key
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
fieldRef:
|
||
properties:
|
||
apiVersion:
|
||
description: Version of the schema the FieldPath
|
||
is written in terms of, defaults to "v1".
|
||
type: string
|
||
fieldPath:
|
||
description: Path of the field to select in the
|
||
specified API version.
|
||
type: string
|
||
required:
|
||
- fieldPath
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
resourceFieldRef:
|
||
properties:
|
||
containerName:
|
||
description: 'Container name: required for volumes,
|
||
optional for env vars'
|
||
type: string
|
||
divisor:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
description: Specifies the output format of the
|
||
exposed resources, defaults to "1"
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
resource:
|
||
description: 'Required: resource to select'
|
||
type: string
|
||
required:
|
||
- resource
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
secretKeyRef:
|
||
description: Selects a key of a secret in the pod's
|
||
namespace
|
||
properties:
|
||
key:
|
||
description: The key of the secret to select from. Must
|
||
be a valid secret key.
|
||
type: string
|
||
name:
|
||
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
|
||
TODO: Add other useful fields. apiVersion, kind,
|
||
uid?'
|
||
type: string
|
||
optional:
|
||
description: Specify whether the Secret or its key
|
||
must be defined
|
||
type: boolean
|
||
required:
|
||
- key
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
type: object
|
||
required:
|
||
- name
|
||
type: object
|
||
type: array
|
||
feAddress:
|
||
description: specify register fe addresses
|
||
properties:
|
||
ServiceName:
|
||
description: the service name that proxy fe on k8s. the service
|
||
must in same namespace with fe.
|
||
type: string
|
||
endpoints:
|
||
description: the fe addresses if not deploy by crd, user can
|
||
use k8s deploy fe observer.
|
||
properties:
|
||
:address:
|
||
description: the ip or domain array.
|
||
items:
|
||
type: string
|
||
type: array
|
||
port:
|
||
description: the fe port that for query. the field `query_port`
|
||
defines in fe config.
|
||
type: integer
|
||
type: object
|
||
type: object
|
||
hostAliases:
|
||
items:
|
||
properties:
|
||
hostnames:
|
||
description: Hostnames for the above IP address.
|
||
items:
|
||
type: string
|
||
type: array
|
||
ip:
|
||
description: IP address of the host file entry.
|
||
type: string
|
||
type: object
|
||
type: array
|
||
image:
|
||
description: Image for a doris cn deployment.
|
||
type: string
|
||
imagePullSecrets:
|
||
items:
|
||
properties:
|
||
name:
|
||
type: string
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
type: array
|
||
limits:
|
||
additionalProperties:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
description: 'Limits describes the maximum amount of compute resources
|
||
allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
|
||
type: object
|
||
nodeSelector:
|
||
additionalProperties:
|
||
type: string
|
||
description: (Optional) If specified, the pod's nodeSelector,displayName="Map
|
||
of nodeSelectors to match when scheduling pods on nodes"
|
||
type: object
|
||
persistentVolumes:
|
||
items:
|
||
description: PersistentVolume defines volume information and
|
||
container mount information.
|
||
properties:
|
||
annotations:
|
||
additionalProperties:
|
||
type: string
|
||
type: object
|
||
mountPath:
|
||
description: the mount path for component service.
|
||
type: string
|
||
name:
|
||
description: the volume name associate with
|
||
type: string
|
||
persistentVolumeClaimSpec:
|
||
description: PersistentVolumeClaimSpec is a list of claim
|
||
spec about storage that pods are required.
|
||
properties:
|
||
accessModes:
|
||
items:
|
||
type: string
|
||
type: array
|
||
dataSource:
|
||
properties:
|
||
apiGroup:
|
||
type: string
|
||
kind:
|
||
description: Kind is the type of resource being
|
||
referenced
|
||
type: string
|
||
name:
|
||
description: Name is the name of resource being
|
||
referenced
|
||
type: string
|
||
required:
|
||
- kind
|
||
- name
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
dataSourceRef:
|
||
properties:
|
||
apiGroup:
|
||
type: string
|
||
kind:
|
||
description: Kind is the type of resource being
|
||
referenced
|
||
type: string
|
||
name:
|
||
description: Name is the name of resource being
|
||
referenced
|
||
type: string
|
||
namespace:
|
||
type: string
|
||
required:
|
||
- kind
|
||
- name
|
||
type: object
|
||
resources:
|
||
properties:
|
||
claims:
|
||
items:
|
||
description: ResourceClaim references one entry
|
||
in PodSpec.ResourceClaims.
|
||
properties:
|
||
name:
|
||
type: string
|
||
required:
|
||
- name
|
||
type: object
|
||
type: array
|
||
x-kubernetes-list-map-keys:
|
||
- name
|
||
x-kubernetes-list-type: map
|
||
limits:
|
||
additionalProperties:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
type: object
|
||
requests:
|
||
additionalProperties:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
type: object
|
||
type: object
|
||
selector:
|
||
description: selector is a label query over volumes
|
||
to consider for binding.
|
||
properties:
|
||
matchExpressions:
|
||
description: matchExpressions is a list of label
|
||
selector requirements. The requirements are ANDed.
|
||
items:
|
||
properties:
|
||
key:
|
||
description: key is the label key that the
|
||
selector applies to.
|
||
type: string
|
||
operator:
|
||
type: string
|
||
values:
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- key
|
||
- operator
|
||
type: object
|
||
type: array
|
||
matchLabels:
|
||
additionalProperties:
|
||
type: string
|
||
type: object
|
||
type: object
|
||
x-kubernetes-map-type: atomic
|
||
storageClassName:
|
||
description: 'storageClassName is the name of the StorageClass
|
||
required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1'
|
||
type: string
|
||
volumeMode:
|
||
description: volumeMode defines what type of volume
|
||
is required by the claim. Value of Filesystem is implied
|
||
when not included in claim spec.
|
||
type: string
|
||
volumeName:
|
||
description: volumeName is the binding reference to
|
||
the PersistentVolume backing this claim.
|
||
type: string
|
||
type: object
|
||
provisioner:
|
||
description: defines pvc provisioner
|
||
type: string
|
||
type: object
|
||
type: array
|
||
podLabels:
|
||
additionalProperties:
|
||
type: string
|
||
description: podLabels for user selector or classify pods
|
||
type: object
|
||
replicas:
|
||
description: Replicas is the number of desired cn Pod.
|
||
format: int32
|
||
minimum: 0
|
||
type: integer
|
||
requests:
|
||
additionalProperties:
|
||
anyOf:
|
||
- type: integer
|
||
- type: string
|
||
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
|
||
x-kubernetes-int-or-string: true
|
||
type: object
|
||
securityContext:
|
||
description: Security context for pod.
|
||
properties:
|
||
fsGroup:
|
||
format: int64
|
||
type: integer
|
||
fsGroupChangePolicy:
|
||
type: string
|
||
runAsGroup:
|
||
format: int64
|
||
type: integer
|
||
runAsNonRoot:
|
||
type: boolean
|
||
runAsUser:
|
||
format: int64
|
||
type: integer
|
||
seLinuxOptions:
|
||
properties:
|
||
level:
|
||
description: Level is SELinux level label that applies
|
||
to the container.
|
||
type: string
|
||
role:
|
||
description: Role is a SELinux role label that applies
|
||
to the container.
|
||
type: string
|
||
type:
|
||
description: Type is a SELinux type label that applies
|
||
to the container.
|
||
type: string
|
||
user:
|
||
description: User is a SELinux user label that applies
|
||
to the container.
|
||
type: string
|
||
type: object
|
||
seccompProfile:
|
||
description: The seccomp options to use by the containers
|
||
in this pod. Note that this field cannot be set when spec.os.name
|
||
is windows.
|
||
properties:
|
||
localhostProfile:
|
||
type: string
|
||
type:
|
||
type: string
|
||
required:
|
||
- type
|
||
type: object
|
||
supplementalGroups:
|
||
items:
|
||
format: int64
|
||
type: integer
|
||
type: array
|
||
sysctls:
|
||
description: Sysctls hold a list of namespaced sysctls used
|
||
for the pod. Pods with unsupported sysctls (by the container
|
||
runtime) might fail to launch. Note that this field cannot
|
||
be set when spec.os.name is windows.
|
||
items:
|
||
description: Sysctl defines a kernel parameter to be set
|
||
properties:
|
||
name:
|
||
description: Name of a property to set
|
||
type: string
|
||
value:
|
||
description: Value of a property to set
|
||
type: string
|
||
required:
|
||
- name
|
||
- value
|
||
type: object
|
||
type: array
|
||
windowsOptions:
|
||
properties:
|
||
gmsaCredentialSpec:
|
||
type: string
|
||
gmsaCredentialSpecName:
|
||
description: GMSACredentialSpecName is the name of the
|
||
GMSA credential spec to use.
|
||
type: string
|
||
hostProcess:
|
||
type: boolean
|
||
runAsUserName:
|
||
type: string
|
||
type: object
|
||
type: object
|
||
service:
|
||
properties:
|
||
annotations:
|
||
additionalProperties:
|
||
type: string
|
||
description: Annotations for using function on different cloud
|
||
platform.
|
||
type: object
|
||
loadBalancerIP:
|
||
type: string
|
||
servicePorts:
|
||
description: ServicePort config service for NodePort access
|
||
mode.
|
||
items:
|
||
description: DorisServicePort for ServiceType=NodePort situation.
|
||
properties:
|
||
nodePort:
|
||
format: int32
|
||
type: integer
|
||
targetPort:
|
||
format: int32
|
||
type: integer
|
||
type: object
|
||
type: array
|
||
type:
|
||
type: string
|
||
type: object
|
||
serviceAccount:
|
||
description: serviceAccount for cn access cloud service.
|
||
type: string
|
||
systemInitialization:
|
||
description: SystemInitialization for fe, be and cn setting system
|
||
parameters.
|
||
properties:
|
||
args:
|
||
description: Arguments to the entrypoint.
|
||
items:
|
||
type: string
|
||
type: array
|
||
command:
|
||
description: Entrypoint array. Not executed within a shell.
|
||
items:
|
||
type: string
|
||
type: array
|
||
initImage:
|
||
description: Image for doris initialization, default is selectdb/alpine:latest.
|
||
type: string
|
||
type: object
|
||
tolerations:
|
||
description: (Optional) Tolerations for scheduling pods onto some
|
||
dedicated nodes
|
||
items:
|
||
description: The pod this Toleration is attached to tolerates
|
||
any taint that matches the triple <key,value,effect> using
|
||
the matching operator <operator>.
|
||
properties:
|
||
effect:
|
||
description: Effect indicates the taint effect to match.
|
||
Empty means match all taint effects. When specified, allowed
|
||
values are NoSchedule, PreferNoSchedule and NoExecute.
|
||
type: string
|
||
key:
|
||
description: 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.
|
||
type: string
|
||
operator:
|
||
description: 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.
|
||
type: string
|
||
tolerationSeconds:
|
||
description: 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.
|
||
format: int64
|
||
type: integer
|
||
value:
|
||
description: Value is the taint value the toleration matches
|
||
to. If the operator is Exists, the value should be empty,
|
||
otherwise just a regular string.
|
||
type: string
|
||
type: object
|
||
type: array
|
||
required:
|
||
- image
|
||
type: object
|
||
type: object
|
||
status:
|
||
description: DorisClusterStatus defines the observed state of DorisCluster
|
||
properties:
|
||
beStatus:
|
||
description: describe be cluster status, recode running, creating
|
||
and failed pods.
|
||
properties:
|
||
accessService:
|
||
description: DorisComponentStatus represents the status of a doris
|
||
component. the name of fe service exposed for user.
|
||
type: string
|
||
componentCondition:
|
||
properties:
|
||
lastTransitionTime:
|
||
description: The last time this condition was updated.
|
||
format: date-time
|
||
type: string
|
||
message:
|
||
description: A human readable message indicating details about
|
||
the transition.
|
||
type: string
|
||
phase:
|
||
description: Phase of statefulset condition.
|
||
type: string
|
||
reason:
|
||
description: The reason for the condition's last transition.
|
||
type: string
|
||
subResourceName:
|
||
type: string
|
||
required:
|
||
- lastTransitionTime
|
||
- message
|
||
- phase
|
||
- reason
|
||
type: object
|
||
creatingInstances:
|
||
description: CreatingInstances in creating pod names.
|
||
items:
|
||
type: string
|
||
type: array
|
||
failedInstances:
|
||
description: FailedInstances failed pod names.
|
||
items:
|
||
type: string
|
||
type: array
|
||
runningInstances:
|
||
description: RunningInstances in running status pod names.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- componentCondition
|
||
type: object
|
||
brokerStatus:
|
||
description: describe broker cluster status, record running, creating
|
||
and failed pods.
|
||
properties:
|
||
accessService:
|
||
description: DorisComponentStatus represents the status of a doris
|
||
component. the name of fe service exposed for user.
|
||
type: string
|
||
componentCondition:
|
||
properties:
|
||
lastTransitionTime:
|
||
description: The last time this condition was updated.
|
||
format: date-time
|
||
type: string
|
||
message:
|
||
description: A human readable message indicating details about
|
||
the transition.
|
||
type: string
|
||
phase:
|
||
description: Phase of statefulset condition.
|
||
type: string
|
||
reason:
|
||
description: The reason for the condition's last transition.
|
||
type: string
|
||
subResourceName:
|
||
type: string
|
||
required:
|
||
- lastTransitionTime
|
||
- message
|
||
- phase
|
||
- reason
|
||
type: object
|
||
creatingInstances:
|
||
description: CreatingInstances in creating pod names.
|
||
items:
|
||
type: string
|
||
type: array
|
||
failedInstances:
|
||
description: FailedInstances failed pod names.
|
||
items:
|
||
type: string
|
||
type: array
|
||
runningInstances:
|
||
description: RunningInstances in running status pod names.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- componentCondition
|
||
type: object
|
||
cnStatus:
|
||
description: describe cn cluster status, record running, creating
|
||
and failed pods.
|
||
properties:
|
||
accessService:
|
||
description: DorisComponentStatus represents the status of a doris
|
||
component. the name of fe service exposed for user.
|
||
type: string
|
||
componentCondition:
|
||
properties:
|
||
lastTransitionTime:
|
||
description: The last time this condition was updated.
|
||
format: date-time
|
||
type: string
|
||
message:
|
||
description: A human readable message indicating details about
|
||
the transition.
|
||
type: string
|
||
phase:
|
||
description: Phase of statefulset condition.
|
||
type: string
|
||
reason:
|
||
description: The reason for the condition's last transition.
|
||
type: string
|
||
subResourceName:
|
||
type: string
|
||
required:
|
||
- lastTransitionTime
|
||
- message
|
||
- phase
|
||
- reason
|
||
type: object
|
||
creatingInstances:
|
||
description: CreatingInstances in creating pod names.
|
||
items:
|
||
type: string
|
||
type: array
|
||
failedInstances:
|
||
description: FailedInstances failed pod names.
|
||
items:
|
||
type: string
|
||
type: array
|
||
horizontalScaler:
|
||
description: HorizontalAutoscaler have the autoscaler information.
|
||
properties:
|
||
name:
|
||
description: the deploy horizontal scaler name
|
||
type: string
|
||
version:
|
||
description: the deploy horizontal version.
|
||
type: string
|
||
type: object
|
||
runningInstances:
|
||
description: RunningInstances in running status pod names.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- componentCondition
|
||
type: object
|
||
feStatus:
|
||
description: describe fe cluster status, record running, creating
|
||
and failed pods.
|
||
properties:
|
||
accessService:
|
||
description: DorisComponentStatus represents the status of a doris
|
||
component. the name of fe service exposed for user.
|
||
type: string
|
||
componentCondition:
|
||
properties:
|
||
lastTransitionTime:
|
||
description: The last time this condition was updated.
|
||
format: date-time
|
||
type: string
|
||
message:
|
||
description: A human readable message indicating details about
|
||
the transition.
|
||
type: string
|
||
phase:
|
||
description: Phase of statefulset condition.
|
||
type: string
|
||
reason:
|
||
description: The reason for the condition's last transition.
|
||
type: string
|
||
subResourceName:
|
||
type: string
|
||
required:
|
||
- lastTransitionTime
|
||
- message
|
||
- phase
|
||
- reason
|
||
type: object
|
||
creatingInstances:
|
||
description: CreatingInstances in creating pod names.
|
||
items:
|
||
type: string
|
||
type: array
|
||
failedInstances:
|
||
description: FailedInstances failed pod names.
|
||
items:
|
||
type: string
|
||
type: array
|
||
runningInstances:
|
||
description: RunningInstances in running status pod names.
|
||
items:
|
||
type: string
|
||
type: array
|
||
required:
|
||
- componentCondition
|
||
type: object
|
||
type: object
|
||
type: object
|
||
served: true
|
||
storage: true
|
||
subresources:
|
||
status: {}
|