service

package
v1.23.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// EnvoyServiceHTTPPort is the HTTP port number of the Envoy service.
	EnvoyServiceHTTPPort = int32(80)
	// EnvoyServiceHTTPSPort is the HTTPS port number of the Envoy service.
	EnvoyServiceHTTPSPort = int32(443)
	// EnvoyNodePortHTTPPort is the NodePort port number for Envoy's HTTP service. For NodePort
	// details see: https://kubernetes.io/docs/concepts/services-networking/service/#nodeport
	EnvoyNodePortHTTPPort = int32(30080)
	// EnvoyNodePortHTTPSPort is the NodePort port number for Envoy's HTTPS service. For NodePort
	// details see: https://kubernetes.io/docs/concepts/services-networking/service/#nodeport
	EnvoyNodePortHTTPSPort = int32(30443)
)

Variables

View Source
var (
	// InternalLBAnnotations maps cloud providers to the provider's annotation
	// key/value pair used for managing an internal load balancer. For additional
	// details see:
	//  https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
	//
	InternalLBAnnotations = map[model.LoadBalancerProviderType]map[string]string{
		model.AWSLoadBalancerProvider: {
			// contains filtered or unexported fields
		},
		model.AzureLoadBalancerProvider: {
			// contains filtered or unexported fields
		},
		model.GCPLoadBalancerProvider: {
			// contains filtered or unexported fields
		},
	}
)

Functions

func DesiredContourService

func DesiredContourService(contour *model.Contour) *corev1.Service

DesiredContourService generates the desired Contour Service for the given contour.

func DesiredEnvoyService

func DesiredEnvoyService(contour *model.Contour) *corev1.Service

DesiredEnvoyService generates the desired Envoy Service for the given contour.

func EnsureContourService

func EnsureContourService(ctx context.Context, cli client.Client, contour *model.Contour) error

EnsureContourService ensures that a Contour Service exists for the given contour.

func EnsureContourServiceDeleted

func EnsureContourServiceDeleted(ctx context.Context, cli client.Client, contour *model.Contour) error

EnsureContourServiceDeleted ensures that a Contour Service for the provided contour is deleted if Contour owner labels exist.

func EnsureEnvoyService

func EnsureEnvoyService(ctx context.Context, cli client.Client, contour *model.Contour) error

EnsureEnvoyService ensures that an Envoy Service exists for the given contour.

func EnsureEnvoyServiceDeleted

func EnsureEnvoyServiceDeleted(ctx context.Context, cli client.Client, contour *model.Contour) error

EnsureEnvoyServiceDeleted ensures that an Envoy Service for the provided contour is deleted.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL