Difference between revisions of "Kubernetes Node Affinity"

From wikieduonline
Jump to navigation Jump to search
m (Newworld3 moved page Node Affinity to Kubernetes Node Affinity)
Tags: Mobile web edit, Mobile edit
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
* https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/
 +
<code>[[kubectl describe pv]]</code>
  
  
 +
apiVersion: v1
 +
kind: Pod
 +
metadata:
 +
  name: nginx
 +
spec:
 +
  [[affinity]]:
 +
    [[nodeAffinity]]:
 +
      [[requiredDuringSchedulingIgnoredDuringExecution]]:
 +
        nodeSelectorTerms:
 +
        - matchExpressions:
 +
          - key: disktype
 +
            operator: In
 +
            values:
 +
            - ssd           
 +
  containers:
 +
  - name: nginx
 +
    image: nginx
 +
    imagePullPolicy: IfNotPresent
  
[[kubectl describe pv]]
+
 
 +
== Activities ==
 +
* [[Assign Pods to Nodes using Node Affinity]]
  
 
== Related ==
 
== Related ==
* [[Kubernetes taints and tolerations]]
+
* [[Kubernetes taints and tolerations]]: <code>[[kubectl taint]]</code>
 
* [[Kubernetes pod affinity and anti affinity]]
 
* [[Kubernetes pod affinity and anti affinity]]
 
* [[NodeRestriction admission plugin]]
 
* [[NodeRestriction admission plugin]]
 +
* [[eks.amazonaws.com]]
  
 
== See also ==
 
== See also ==
 
* {{kubectl taint}}
 
* {{kubectl taint}}
 +
* {{Kubernetes Node Affinity}}
 +
* {{K8s nodes}}
  
 
[[Category:Kubernetes]]
 
[[Category:Kubernetes]]

Latest revision as of 14:50, 22 May 2024

Advertising: