[ 
https://issues.apache.org/jira/browse/YUNIKORN-910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17437317#comment-17437317
 ] 

Ryan Lo commented on YUNIKORN-910:
----------------------------------

I ran the "pod-anti-affinity-example.yaml" on a single node K8s cluster 
(v.1.21.5), 1 pod was running correctly and the other was pending.
{code:bash}
ryan@ryan-minikube:~$ k get events -n yunikorn | grep -i with-pod-affinity-01

2m11s       Normal    Scheduling          pod/with-pod-affinity-01   
yunikorn/with-pod-affinity-01 is queued and waiting for allocation
2m11s       Normal    Scheduled           pod/with-pod-affinity-01   
Successfully assigned yunikorn/with-pod-affinity-01 to node minikube
2m10s       Normal    PodBindSuccessful   pod/with-pod-affinity-01   Pod 
yunikorn/with-pod-affinity-01 is successfully bound to node minikube
2m9s        Normal    Pulling             pod/with-pod-affinity-01   Pulling 
image "k8s.gcr.io/pause:2.0"
2m8s        Normal    Pulled              pod/with-pod-affinity-01   
Successfully pulled image "k8s.gcr.io/pause:2.0" in 1.388213695s
2m8s        Normal    Created             pod/with-pod-affinity-01   Created 
container with-pod-affinity
2m7s        Normal    Started             pod/with-pod-affinity-01   Started 
container with-pod-affinity
{code}
{code:bash}
ryan@ryan-minikube:~$ k get events -n yunikorn | grep -i with-pod-affinity-02

2m4s        Normal    Scheduling          pod/with-pod-affinity-02   
yunikorn/with-pod-affinity-02 is queued and waiting for allocation
101s        Warning   FailedScheduling    pod/with-pod-affinity-02   [Predicate 
MatchInterPodAffinity failed Predicate ExistingPodsAntiAffinityRulesNotMatch 
failed]
2m2s        Normal    PodUnschedulable    pod/with-pod-affinity-02   Task 
yunikorn/with-pod-affinity-02 is pending for the requested resources become 
available
{code}
Then, I ran the same example on my K8s cluster (v1.21.5) with two worker nodes, 
and two pods were assigned to different nodes as we expected.
{code:bash}
ryan@ryan-k8s-0:~$ kubectl get events -n yunikorn  | grep -i 
with-pod-affinity-01
5m24s       Normal    Scheduling          pod/with-pod-affinity-01   
yunikorn/with-pod-affinity-01 is queued and waiting for allocation
5m24s       Normal    Scheduled           pod/with-pod-affinity-01   
Successfully assigned yunikorn/with-pod-affinity-01 to node ryan-k8s-2
5m24s       Normal    PodBindSuccessful   pod/with-pod-affinity-01   Pod 
yunikorn/with-pod-affinity-01 is successfully bound to node ryan-k8s-2
5m23s       Normal    Pulling             pod/with-pod-affinity-01   Pulling 
image "k8s.gcr.io/pause:2.0"
5m21s       Normal    Pulled              pod/with-pod-affinity-01   
Successfully pulled image "k8s.gcr.io/pause:2.0" in 1.775907975s
5m20s       Normal    Created             pod/with-pod-affinity-01   Created 
container with-pod-affinity
5m20s       Normal    Started             pod/with-pod-affinity-01   Started 
container with-pod-affinity
{code}
{code:bash}
ryan@ryan-k8s-0:~$ kubectl get events -n yunikorn  | grep -i 
with-pod-affinity-02
6m13s       Normal    Scheduling          pod/with-pod-affinity-02   
yunikorn/with-pod-affinity-02 is queued and waiting for allocation
6m13s       Warning   FailedScheduling    pod/with-pod-affinity-02   [Predicate 
MatchInterPodAffinity failed Predicate ExistingPodsAntiAffinityRulesNotMatch 
failed]
6m13s       Normal    Scheduled           pod/with-pod-affinity-02   
Successfully assigned yunikorn/with-pod-affinity-02 to node ryan-k8s-1
6m13s       Normal    PodBindSuccessful   pod/with-pod-affinity-02   Pod 
yunikorn/with-pod-affinity-02 is successfully bound to node ryan-k8s-1
6m12s       Normal    Pulling             pod/with-pod-affinity-02   Pulling 
image "k8s.gcr.io/pause:2.0"
6m10s       Normal    Pulled              pod/with-pod-affinity-02   
Successfully pulled image "k8s.gcr.io/pause:2.0" in 1.497600772s
6m9s        Normal    Created             pod/with-pod-affinity-02   Created 
container with-pod-affinity
6m9s        Normal    Started             pod/with-pod-affinity-02   Started 
container with-pod-affinity
{code}

> Verify predicates functions for K8s 1.21
> ----------------------------------------
>
>                 Key: YUNIKORN-910
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-910
>             Project: Apache YuniKorn
>          Issue Type: Sub-task
>          Components: shim - kubernetes
>            Reporter: Chaoran Yu
>            Assignee: Ryan Lo
>            Priority: Major
>             Fix For: 1.0.0
>
>
> _emphasized text_Similar to YUNIKORN-672



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to