metadata

package
v0.0.0-...-7b34d14 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// KumaMeshAnnotation defines a Pod annotation that
	// associates a given Pod with a particular Mesh.
	// Annotation value must be the name of a Mesh resource.
	KumaMeshAnnotation = "kuma.io/mesh"

	// KumaSidecarInjectionAnnotation defines a Pod annotation that
	// gives users a chance to opt out of side-car injection
	// into a given Pod by setting its value to KumaSidecarInjectionDisabled.
	KumaSidecarInjectionAnnotation = "kuma.io/sidecar-injection"
	// KumaSidecarInjectionDisabled defines a value of KumaSidecarInjectionAnnotation
	// that will prevent Kuma from injecting a side-car into that Pod.
	KumaSidecarInjectionDisabled = "disabled"
)

Annotations that can be used by the end users.

View Source
const (
	KumaSidecarInjectedAnnotation = "kuma.io/sidecar-injected"
	KumaSidecarInjected           = "true"

	KumaTransparentProxyingAnnotation = "kuma.io/transparent-proxying"
	KumaTransparentProxyingEnabled    = "enabled"

	KumaTransparentProxyingPortAnnotation = "kuma.io/transparent-proxying-port"

	KumaGatewayAnnotation = "kuma.io/gateway"
	KumaGatewayEnabled    = "enabled"

	KumaIngressAnnotation = "kuma.io/ingress"
	KumaIngressEnabled    = "enabled"

	KumaDirectAccess    = "kuma.io/direct-access-services"
	KumaDirectAccessAll = "*"

	KumaMetricsPrometheusPort = "prometheus.metrics.kuma.io/port"
	KumaMetricsPrometheusPath = "prometheus.metrics.kuma.io/path"

	CNCFNetworkAnnotation = "k8s.v1.cni.cncf.io/networks"
	KumaCNI               = "kuma-cni"
)

Annotations that are being automatically set by the Kuma Sidecar Injector.

Variables

This section is empty.

Functions

func GetMesh

func GetMesh(pod *kube_core.Pod) string

func GetTransparentProxyingPort

func GetTransparentProxyingPort(pod *kube_core.Pod) uint32

func HasGatewayEnabled

func HasGatewayEnabled(pod *kube_core.Pod) bool

func HasKumaSidecar

func HasKumaSidecar(pod *kube_core.Pod) bool

func HasTransparentProxyingEnabled

func HasTransparentProxyingEnabled(pod *kube_core.Pod) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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