package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev
# Functions
MakeService helps construct Service objects (which pass API validation) more legibly and tersely than a Go struct definition.
MakeServicePort helps construct ServicePort objects which pass API validation.
SetAllocateLoadBalancerNodePorts sets the allocate LB node port field.
SetClusterIP sets the service ClusterIP fields.
SetClusterIPs sets the service ClusterIP and ClusterIPs fields.
SetExternalName sets the ExternalName field.
SetExternalTrafficPolicy sets the externalTrafficPolicy field for a Service.
SetHeadless sets the service as headless and clears other fields.
SetHealthCheckNodePort sets the healthCheckNodePort field for a Service.
SetInternalTrafficPolicy sets the internalTrafficPolicy field for a Service.
SetIPFamilies sets the service IPFamilies field.
SetIPFamilyPolicy sets the service IPFamilyPolicy field.
SetNodePorts sets the values for each node port, in order.
SetPorts sets the service ports list.
SetSelector sets the service selector.
SetSessionAffinity sets the SessionAffinity field.
SetTypeClusterIP sets the service type to ClusterIP and clears other fields.
SetTypeExternalName sets the service type to ExternalName and clears other fields.
SetTypeLoadBalancer sets the service type to LoadBalancer and clears other fields.
SetTypeNodePort sets the service type to NodePort and clears other fields.
SetUniqueNodePorts sets all nodeports to unique values.
# Type aliases
Tweak is a function that modifies a Service.