apiVersion: v1 kind: Service metadata: name: external-service spec: ports: - protocol: TCP port: 80 # 必须与 Endpoints 端口一致 targetPort: 8188