[root@m1 8-ingress]# kubectl label node s2 app=ingress
node/s2 labeled
[root@m1 8-ingress]# kubectl get nodes --show-labels | grep ingress
s1 Ready <none> 15d v1.14.0 app=ingress,beta.kubernetes.io/arch=amd64,beta.kubernetes.io/os=linux,kubernetes.io/arch=amd64,kubernetes.io/hostname=s1,kubernetes.io/os=linux
s2 Ready <none> 15d v1.14.0 app=ingress,beta.kubernetes.io/arch=amd64,beta.kubernetes.io/os=linux,disktype=ssd,kubernetes.io/arch=amd64,kubernetes.io/hostname=s2,kubernetes.io/os=linux
[root@m1 8-ingress]# kubectl get pods -n ingress-nginx -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
default-http-backend-986cbbff7-wdgjp 1/1 Running 0 6d17h 172.22.2.25 s2 <none> <none>
nginx-ingress-controller-mgnlk 1/1 Running 0 76m 192.168.8.241 s1 <none> <none>
给s2 打了标签,但查看pod时候 没有s2的, 跟视频好像对不上? 什么原因呢? (工作节点没有端口占用情况)