Difference between revisions of "Spec.NodeSelector"
Jump to navigation
Jump to search
Line 52: | Line 52: | ||
== See also == | == See also == | ||
− | * {{ | + | * {{Node}} |
* {{Pods}} | * {{Pods}} | ||
[[Category:Kubernetes]] | [[Category:Kubernetes]] |
Revision as of 10:43, 15 December 2022
apiVersion: v1 kind: Pod metadata: name: nginx labels: env: test spec: containers: - name: nginx image: nginx imagePullPolicy: IfNotPresent nodeSelector: disktype: ssd
apiVersion: v1 kind: Pod metadata: name: nginx spec: nodeName: foo-node # schedule pod to specific node containers: - name: nginx image: nginx imagePullPolicy: IfNotPresent
Activities
- CKA v1.21: Understand how to use Labels, Selector and Annotations
- CKA v1.18: Use label selectors to schedule Pods
- CKA v1.15: Understand how to use Labels, Selector and Annotations
- Use
NodeSelector
assign pod to specific node
Related terms
See also
Advertising: