Difference between revisions of "Spec.affinity"

From wikieduonline
Jump to navigation Jump to search
(Redirected page to Affinity:)
Tag: New redirect
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
#redirect [[affinity:]]
+
{{lc}}
 +
 
 +
[[spec.affinity]]
 +
[[spec.affinity.nodeAffinity]]
 +
[[spec.affinity.podAntiAffinity]]
 +
 
 +
{{affinity example}}
 +
 
 +
 
 +
 
 +
  affinity:
 +
    [[podAntiAffinity]]:
 +
      [[requiredDuringSchedulingIgnoredDuringExecution]]:
 +
        - [[labelSelector]]:
 +
            [[matchExpressions]]:
 +
              - key: app
 +
                [[operator:]] In
 +
                [[values]]:
 +
                  - YOURAPPNAME
 +
          [[topologyKey]]: "[[kubernetes.io/hostname]]"
 +
 
 +
 
 +
 
 +
*  [[Kubernetes pod affinity and anti affinity]]
 +
* <code>0/2 nodes are available: 1 Too many pods, 1 nodes(s) [[didn't match Pod's node affinity/selector]]</code>
 +
 
 +
== See also ==
 +
* {{affinity}}
 +
 
 +
[[Category:K8s]]

Latest revision as of 07:18, 25 July 2024

Advertising: