public static interface V1.PodAffinityTermOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
Meta.LabelSelector |
getLabelSelector()
A label query over a set of resources, in this case pods.
|
Meta.LabelSelectorOrBuilder |
getLabelSelectorOrBuilder()
A label query over a set of resources, in this case pods.
|
String |
getNamespaces(int index)
namespaces specifies which namespaces the labelSelector applies to (matches against);
null or empty list means "this pod's namespace"
|
com.google.protobuf.ByteString |
getNamespacesBytes(int index)
namespaces specifies which namespaces the labelSelector applies to (matches against);
null or empty list means "this pod's namespace"
|
int |
getNamespacesCount()
namespaces specifies which namespaces the labelSelector applies to (matches against);
null or empty list means "this pod's namespace"
|
List<String> |
getNamespacesList()
namespaces specifies which namespaces the labelSelector applies to (matches against);
null or empty list means "this pod's namespace"
|
String |
getTopologyKey()
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.
|
com.google.protobuf.ByteString |
getTopologyKeyBytes()
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.
|
boolean |
hasLabelSelector()
A label query over a set of resources, in this case pods.
|
boolean |
hasTopologyKey()
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.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean hasLabelSelector()
A label query over a set of resources, in this case pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;Meta.LabelSelector getLabelSelector()
A label query over a set of resources, in this case pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;Meta.LabelSelectorOrBuilder getLabelSelectorOrBuilder()
A label query over a set of resources, in this case pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;List<String> getNamespacesList()
namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace"
repeated string namespaces = 2;int getNamespacesCount()
namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace"
repeated string namespaces = 2;String getNamespaces(int index)
namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace"
repeated string namespaces = 2;com.google.protobuf.ByteString getNamespacesBytes(int index)
namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means "this pod's namespace"
repeated string namespaces = 2;boolean hasTopologyKey()
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.
For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as "all topologies"
("all topologies" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains);
for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed.
+optional
optional string topologyKey = 3;String getTopologyKey()
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.
For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as "all topologies"
("all topologies" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains);
for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed.
+optional
optional string topologyKey = 3;com.google.protobuf.ByteString getTopologyKeyBytes()
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.
For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as "all topologies"
("all topologies" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains);
for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed.
+optional
optional string topologyKey = 3;Copyright © 2018. All rights reserved.