annotations

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package annotations contains all annotations that supported by cilium ingress controller along with some sensible defaults.

Index

Constants

View Source
const (
	LBModeAnnotation           = annotation.IngressPrefix + "/loadbalancer-mode"
	ServiceTypeAnnotation      = annotation.IngressPrefix + "/service-type"
	InsecureNodePortAnnotation = annotation.IngressPrefix + "/insecure-node-port"
	SecureNodePortAnnotation   = annotation.IngressPrefix + "/secure-node-port"

	TCPKeepAliveEnabledAnnotation          = annotation.IngressPrefix + "/tcp-keep-alive"
	TCPKeepAliveIdleAnnotation             = annotation.IngressPrefix + "/tcp-keep-alive-idle"
	TCPKeepAliveProbeIntervalAnnotation    = annotation.IngressPrefix + "/tcp-keep-alive-probe-interval"
	TCPKeepAliveProbeMaxFailuresAnnotation = annotation.IngressPrefix + "/tcp-keep-alive-probe-max-failures"
	WebsocketEnabledAnnotation             = annotation.IngressPrefix + "/websocket"

	LBModeAnnotationAlias           = annotation.Prefix + ".ingress" + "/loadbalancer-mode"
	ServiceTypeAnnotationAlias      = annotation.Prefix + ".ingress" + "/service-type"
	InsecureNodePortAnnotationAlias = annotation.Prefix + ".ingress" + "/insecure-node-port"
	SecureNodePortAnnotationAlias   = annotation.Prefix + ".ingress" + "/secure-node-port"

	TCPKeepAliveEnabledAnnotationAlias          = annotation.Prefix + "/tcp-keep-alive"
	TCPKeepAliveIdleAnnotationAlias             = annotation.Prefix + "/tcp-keep-alive-idle"
	TCPKeepAliveProbeIntervalAnnotationAlias    = annotation.Prefix + "/tcp-keep-alive-probe-interval"
	TCPKeepAliveProbeMaxFailuresAnnotationAlias = annotation.Prefix + "/tcp-keep-alive-probe-max-failures"
	WebsocketEnabledAnnotationAlias             = annotation.Prefix + "/websocket"
)

Variables

This section is empty.

Functions

func GetAnnotationIngressLoadbalancerMode

func GetAnnotationIngressLoadbalancerMode(ingress *slim_networkingv1.Ingress) string

GetAnnotationIngressLoadbalancerMode returns the loadbalancer mode for the ingress if possible.

func GetAnnotationInsecureNodePort

func GetAnnotationInsecureNodePort(ingress *slim_networkingv1.Ingress) (*uint32, error)

GetAnnotationInsecureNodePort returns the insecure node port for the ingress if possible.

func GetAnnotationSecureNodePort

func GetAnnotationSecureNodePort(ingress *slim_networkingv1.Ingress) (*uint32, error)

GetAnnotationSecureNodePort returns the secure node port for the ingress if possible.

func GetAnnotationServiceType

func GetAnnotationServiceType(ingress *slim_networkingv1.Ingress) string

GetAnnotationServiceType returns the service type for the ingress if possible. Defaults to LoadBalancer

func GetAnnotationTCPKeepAliveEnabled

func GetAnnotationTCPKeepAliveEnabled(ingress *slim_networkingv1.Ingress) int64

GetAnnotationTCPKeepAliveEnabled returns 1 if enabled (default), 0 if disabled

func GetAnnotationTCPKeepAliveIdle

func GetAnnotationTCPKeepAliveIdle(ingress *slim_networkingv1.Ingress) int64

GetAnnotationTCPKeepAliveIdle returns the time (in seconds) the connection needs to remain idle before TCP starts sending keepalive probes. Defaults to 10s. Related references:

func GetAnnotationTCPKeepAliveProbeInterval

func GetAnnotationTCPKeepAliveProbeInterval(ingress *slim_networkingv1.Ingress) int64

GetAnnotationTCPKeepAliveProbeInterval returns the time (in seconds) between individual keepalive probes. Defaults to 5s. Related references:

func GetAnnotationTCPKeepAliveProbeMaxFailures

func GetAnnotationTCPKeepAliveProbeMaxFailures(ingress *slim_networkingv1.Ingress) int64

GetAnnotationTCPKeepAliveProbeMaxFailures returns the maximum number of keepalive probes TCP should send before dropping the connection. Defaults to 10. Related references:

func GetAnnotationWebsocketEnabled

func GetAnnotationWebsocketEnabled(ingress *slim_networkingv1.Ingress) int64

GetAnnotationWebsocketEnabled returns 1 if enabled (default), 0 if disabled

Types

This section is empty.

Jump to

Keyboard shortcuts

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