...
To ensure that your workload runs on Exostellar nodes scheduled by the Exostellar Karpenter and block Karpenter from voluntarily disrupting your workload, you need to set affinity settings and annotations in your workload YAML file. Below is an example of how to modify your YAML file to include these settings:
Code Block | ||
---|---|---|
| ||
apiVersion: apps/v1 kind: PodDeployment metadata: name: my-nginx annotations:: nginx spec: selector: matchLabels: app: nginx replicas: 1 template: metadata: labels: app: nginx spec: tolerations: - karpenterkey: "exokarpenter.sh/do-not-disruptx-compute" operator: "trueExists" spec: effect: "NoSchedule" affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: karpenterexokarpenter.sh/nodepool operator: In values: - pool-a containers: - name: nginx image: nginx:1.14.2 ports: - containerPort: 80 resources: requests: cpu: 1 |
Step 2: Adding Node Labels in Exostellar Karpenter NodePool (optional)
...