spec.NodeSelector

From wikieduonline
Revision as of 11:37, 19 December 2022 by Ant (talk | contribs) (→‎Karpenter)
Jump to navigation Jump to search

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: