[root@k8s-master pv]# kubectl get pods -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
affinity-hard-soft 1/1 Running 0 13h 10.244.1.26 k8s-node1 <none> <none>
affinity-in 1/1 Running 0 17h 10.244.1.25 k8s-node1 <none> <none>
affinity-notin 1/1 Running 0 17h 10.244.2.159 k8s-node3 <none> <none>
affinity-soft-strategy-in 1/1 Running 0 13h 10.244.3.2 k8s-node2 <none> <none>
dapi-test-pod 0/1 Completed 0 6d19h 10.244.3.236 k8s-node2 <none> <none>
dapi-test-pod1 0/1 Completed 0 6d18h 10.244.3.237 k8s-node2 <none> <none>
dapi-test-pod2 0/1 Completed 0 6d17h 10.244.3.239 k8s-node2 <none> <none>
emptydir-test-pod 2/2 Running 69 4d19h 10.244.3.247 k8s-node2 <none> <none>
frontend-454dm 1/1 Running 0 10d 10.244.1.16 k8s-node1 <none> <none>
frontend-8h79l 1/1 Running 0 10d 10.244.1.20 k8s-node1 <none> <none>
frontend-bsbbc 1/1 Running 1 10d 10.244.2.137 k8s-node3 <none> <none>
frontend-n8tb4 1/1 Running 0 10d 10.244.3.225 k8s-node2 <none> <none>
frontend-pg595 1/1 Running 1 10d 10.244.2.131 k8s-node3 <none> <none>
frontend-q66ql 1/1 Running 0 10d 10.244.1.15 k8s-node1 <none> <none>
my-nginx-7c6668789d-7hjjd 1/1 Running 0 6d17h 10.244.3.240 k8s-node2 <none> <none>
pod-1 1/1 Running 0 12h 10.244.2.161 k8s-node3 <none> <none>
pod-2 1/1 Running 0 12h 10.244.3.3 k8s-node2 <none> <none>
pod-deployment-58b58949b9-2s8b8 1/1 Running 1 5d19h 10.244.2.138 k8s-node3 <none> <none>
pod-deployment-58b58949b9-rrhqk 1/1 Running 0 5d19h 10.244.3.242 k8s-node2 <none> <none>
secret-pod 1/1 Running 0 5d22h 10.244.3.241 k8s-node2 <none> <none>
test-hostpath-pod 1/1 Running 0 4d18h 10.244.2.145 k8s-node3 <none> <none>
yz-pod 1/1 Running 0 5d15h 10.244.2.144 k8s-node3 <none> <none>
[root@k8s-master pv]# kubectl taint nodes k8s-node2 check=yuanzhang:NoExecute
node/k8s-node2 tainted
[root@k8s-master ~]# kubectl get pods -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
affinity-hard-soft 1/1 Running 0 13h 10.244.1.26 k8s-node1 <none> <none>
affinity-in 1/1 Running 0 17h 10.244.1.25 k8s-node1 <none> <none>
affinity-notin 1/1 Running 0 17h 10.244.2.159 k8s-node3 <none> <none>
frontend-454dm 1/1 Running 0 10d 10.244.1.16 k8s-node1 <none> <none>
frontend-8h79l 1/1 Running 0 10d 10.244.1.20 k8s-node1 <none> <none>
frontend-bsbbc 1/1 Running 1 10d 10.244.2.137 k8s-node3 <none> <none>
frontend-pg595 1/1 Running 1 10d 10.244.2.131 k8s-node3 <none> <none>
frontend-q66ql 1/1 Running 0 10d 10.244.1.15 k8s-node1 <none> <none>
frontend-sk684 1/1 Running 0 2m2s 10.244.2.164 k8s-node3 <none> <none>
my-nginx-7c6668789d-f9zqh 1/1 Running 0 2m2s 10.244.2.165 k8s-node3 <none> <none>
pod-1 1/1 Running 0 12h 10.244.2.161 k8s-node3 <none> <none>
pod-deployment-58b58949b9-2s8b8 1/1 Running 1 5d20h 10.244.2.138 k8s-node3 <none> <none>
pod-deployment-58b58949b9-xnlsv 1/1 Running 0 2m2s 10.244.2.168 k8s-node3 <none> <none>
test-hostpath-pod 1/1 Running 0 4d18h 10.244.2.145 k8s-node3 <none> <none>
yz-pod 1/1 Running 0 5d15h 10.244.2.144 k8s-node3 <none> <none>