Difference between revisions of "Spec.NodeSelector"

From wikieduonline
Jump to navigation Jump to search
Line 44: Line 44:
 
   [[karpenter.sh/capacity-type]]: spot
 
   [[karpenter.sh/capacity-type]]: spot
  
 
+
nodeSelector:
 +
  [[karpenter.sh/provisioner-name:]] XXXXX
  
 
== Activities ==
 
== Activities ==

Revision as of 15:49, 16 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

Karpenter

nodeSelector:
  topology.kubernetes.io/zone: us-west-2a
  karpenter.sh/capacity-type: spot
nodeSelector:
  karpenter.sh/provisioner-name: XXXXX

Activities

Related terms

selector:

See also

Advertising: