Difference between revisions of "Spec.NodeSelector"

From wikieduonline
Jump to navigation Jump to search
Line 17: Line 17:
 
* [[CKA v1.18]]: Use [[label]] selectors to [[schedule Pods]]
 
* [[CKA v1.18]]: Use [[label]] selectors to [[schedule Pods]]
 
* [[CKA v1.15: Understand how to use Labels, Selector and Annotations]]
 
* [[CKA v1.15: Understand how to use Labels, Selector and Annotations]]
* Use NodeSelectoro assign [[pod]] to specific [[node]]
+
* Use <code>NodeSelector</code> assign [[pod]] to specific [[node]]
  
 
== Related terms ==
 
== Related terms ==

Revision as of 21:28, 13 July 2021

apiVersion: v1
kind: Pod
metadata:
  name: nginx
  labels:
    env: test
spec:
  containers:
  - name: nginx
    image: nginx
    imagePullPolicy: IfNotPresent
  nodeSelector:
    disktype: ssd

Activities

Related terms

See also

Advertising: