01 创建 EndPoints

  1. apiVersion: v1
  2. kind: Endpoints
  3. metadata:
  4. name: my-service
  5. subsets:
  6. - addresses:
  7. # Pod IP,不能是集群 Ip
  8. - ip: 192.0.2.42
  9. ports:
  10. - port: 9376