apiVersion: v1
kind: Service
metadata:name: deploy-servicelabels:app: deploy-service
spec: ports: - port: 80targetPort: 80name: deploy-service-podselector: app: deploy-podtype: NodePort
service 的 endPoint (ep)
主机端口分配方式
两个 name
port 和 targetPort
type 类型