Closed stdnt-xiao closed 8 months ago
kubernetes默认端口号范围是30000-32767 ,如果期望值不是这个区间则需要更改。
修改方法:
vim /etc/kubernetes/manifests/kube-apiserver.yaml spec: containers: command: kube-apiserver --service-node-port-range=1-65535 systemctl daemon-reload systemctl restart kubelet
vim /etc/kubernetes/manifests/kube-apiserver.yaml
spec: containers:
systemctl daemon-reload systemctl restart kubelet
kubernetes默认端口号范围是30000-32767 ,如果期望值不是这个区间则需要更改。
修改方法: