NodePorts范围:30000 - 32767
service-definition.yml
apiVersion: V1
kind: Service
metadata:
name: myapp-service
spec:
type: NodePort
ports:
- targetPort: 80 ##pod端口 不填则默认和port相同
port: 80 ##Servoce端口 必填
nodePort: 30008 ##对外端口 不填自动分配30000-32767
标签:Kubernetes,service,##,Service,端口,笔记,80,port
From: https://www.cnblogs.com/Bota5ky/p/16582789.html