清风老师你好,我在学习ingress-controller.yaml文件中看到ingress-controller其实是一个service,其中有对IP地址进行设置,固定为10.1.211.240:
spec:
clusterIP: 10.1.211.240
externalTrafficPolicy: Cluster
ports:
- name: http
nodePort: 31686
port: 80
protocol: TCP
targetPort: http
- name: https
nodePort: 30036
port: 443
protocol: TCP
targetPort: https
selector:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
sessionAffinity: None
type: NodePort
这里有三个疑惑: