Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save josephrodriguez/44e11cebfdc40f2a999895ce87d20d23 to your computer and use it in GitHub Desktop.
Save josephrodriguez/44e11cebfdc40f2a999895ce87d20d23 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: pod-affinity-2
namespace: default
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/os
operator: In
values:
- linux
- key: kubernetes.io/disktype
operator: In
values:
- ssd
containers:
- image: josephrodriguez/springboot-starterkit
imagePullPolicy: Always
...
status:
conditions:
- lastProbeTime: null
lastTransitionTime: "2022-09-16T14:29:00Z"
message: 0/4 nodes are available: 1 node(s) had untolerated taint node-role.kubernetes.io/control-plane:}, 4 node(s) didn't match Pod's node affinity/selector. preemption: 0/4 nodes are available: 4 Preemption is not helpful for scheduling.
reason: Unschedulable
status: "False"
type: PodScheduled
phase: Pending
qosClass: BestEffort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment