kubernetes: k8s.io/kubernetes/pkg/api/v1/service Index | Files

package service

import "k8s.io/kubernetes/pkg/api/v1/service"

Index

Package Files

util.go

func GetLoadBalancerSourceRanges Uses

func GetLoadBalancerSourceRanges(service *v1.Service) (utilnet.IPNetSet, error)

GetLoadBalancerSourceRanges first try to parse and verify LoadBalancerSourceRanges field from a service. If the field is not specified, turn to parse and verify the AnnotationLoadBalancerSourceRangesKey annotation from a service, extracting the source ranges to allow, and if not present returns a default (allow-all) value.

func GetServiceHealthCheckPathPort Uses

func GetServiceHealthCheckPathPort(service *v1.Service) (string, int32)

GetServiceHealthCheckPathPort returns the path and nodePort programmed into the Cloud LB Health Check

func IsAllowAll Uses

func IsAllowAll(ipnets utilnet.IPNetSet) bool

IsAllowAll checks whether the utilnet.IPNet allows traffic from 0.0.0.0/0

func NeedsHealthCheck Uses

func NeedsHealthCheck(service *v1.Service) bool

NeedsHealthCheck checks if service needs health check.

func RequestsOnlyLocalTraffic Uses

func RequestsOnlyLocalTraffic(service *v1.Service) bool

RequestsOnlyLocalTraffic checks if service requests OnlyLocal traffic.

Package service imports 4 packages (graph) and is imported by 105 packages. Updated 2019-05-14. Refresh now. Tools for package owners.