Created
September 18, 2022 12:20
-
-
Save josephrodriguez/44e11cebfdc40f2a999895ce87d20d23 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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