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