service-spec.yaml 1.8 KB

12345678910111213141516171819202122232425262728293031
  1. suite: service/spec
  2. description: Base suite for services
  3. behaviors:
  4. - id: service/basic-create/selector
  5. description: When a Service resource is created with type "ClusterIP", "NodePort", or "LoadBalancer",
  6. and a selector is specified, an Endpoints object is generated based with the IPs of pods with
  7. label keys and values matching the selector.
  8. - id: service/basic-create/no-selector
  9. description: When a Service resource is created and a no selector is specified, no changes are made
  10. to any corresponding Endpoints object.
  11. - id: service/type/ClusterIP/empty
  12. description: When the Service type is specified as "ClusterIP" and the clusterIP
  13. field is empty, a cluster-internal IP address for load-balancing to endpoints is
  14. allocated.
  15. - id: service/type/ClusterIP/static
  16. description: When the Service type is specified as "ClusterIP" and the clusterIP
  17. field is specified as an IP address in the cluster service range, and that IP is
  18. not already assigned to another service, that IP is be allocated as a cluster-internal
  19. IP address for load-balancing to endpoints.
  20. - id: service/type/ClusterIP/None
  21. description: When the Service type is specified as "ClusterIP" and the clusterIP
  22. field is "None", no virtual IP is allocated and the endpoints are published as a
  23. set of endpoints rather than a stable IP.
  24. - id: service/type/NodePort
  25. description: When the Service type is specified as "NodePort" , a cluster-internal
  26. IP address for load-balancing to endpoints is allocated as for type "ClusterIP".
  27. Additionally, a cluster-wide port is allocated on every node, routing to the clusterIP.
  28. - id: service/type/ExternalName
  29. description: When the Service type is specified as "ExternalName", the cluster DNS provider
  30. publishes a CNAME pointing from the service to the specified external name.