Documentation ¶
Overview ¶
Package annotations contains all annotations that supported by cilium ingress controller along with some sensible defaults.
Index ¶
- Constants
- func GetAnnotationTCPKeepAliveEnabled(ingress *slim_networkingv1.Ingress) int64
- func GetAnnotationTCPKeepAliveIdle(ingress *slim_networkingv1.Ingress) int64
- func GetAnnotationTCPKeepAliveProbeInterval(ingress *slim_networkingv1.Ingress) int64
- func GetAnnotationTCPKeepAliveProbeMaxFailures(ingress *slim_networkingv1.Ingress) int64
- func GetAnnotationWebsocketEnabled(ingress *slim_networkingv1.Ingress) int64
Constants ¶
const ( TCPKeepAliveEnabledAnnotation = annotation.Prefix + "/tcp-keep-alive" TCPKeepAliveIdleAnnotation = annotation.Prefix + "/tcp-keep-alive-idle" TCPKeepAliveProbeIntervalAnnotation = annotation.Prefix + "/tcp-keep-alive-probe-interval" TCPKeepAliveProbeMaxFailuresAnnotation = annotation.Prefix + "/tcp-keep-alive-probe-max-failures" WebsocketEnabledAnnotation = annotation.Prefix + "/websocket" )
Variables ¶
This section is empty.
Functions ¶
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.