package
1.6.0-alpha.2
Repository: https://github.com/brahmaroutu/kubernetes.git
Documentation: pkg.go.dev
# Functions
GetLoadBalancerSourceRanges first try to parse and verify LoadBalancerSourceRanges field from a service.
GetServiceHealthCheckNodePort Return health check node port annotation for service, if one exists.
GetServiceHealthCheckPathPort Return the path and nodePort programmed into the Cloud LB Health Check.
IsAllowAll checks whether the netsets.IPNet allows traffic from 0.0.0.0/0.
NeedsHealthCheck Check service for health check annotations.
# Constants
AlphaAnnotationExternalTraffic An annotation that denotes if this Service desires to route external traffic to local endpoints only.
AlphaAnnotationHealthCheckNodePort Annotation specifying the healthcheck nodePort for the service If not specified, annotation is created by the service api backend with the allocated nodePort Will use user-specified nodePort value if specified by the client.
AnnotationLoadBalancerSourceRangesKey is the key of the annotation on a service to set allowed ingress ranges on their LoadBalancers
It should be a comma-separated list of CIDRs, e.g.
AnnotationValueExternalTrafficGlobal Value of annotation to specify global (legacy) behaviour.
AnnotationValueExternalTrafficLocal Value of annotation to specify local endpoints behaviour.
BetaAnnotationExternalTraffic is the beta version of AlphaAnnotationExternalTraffic.
BetaAnnotationHealthCheckNodePort is the beta version of AlphaAnnotationHealthCheckNodePort.