config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (

	//AppMeshCNIAnnotation specifies that CNI will be used to configure traffic interception
	AppMeshCNIAnnotation = "appmesh.k8s.aws/appmeshCNI"
	//AppMeshCpuRequestAnnotation specifies the CPU requests for proxy
	AppMeshCpuRequestAnnotation = "appmesh.k8s.aws/cpuRequest"
	//AppMeshEgressIgnoredPortsAnnotation specifies the IPs that need to be ignored when intercepting traffic
	AppMeshEgressIgnoredIPsAnnotation = "appmesh.k8s.aws/egressIgnoredIPs"
	//AppMeshEgressIgnoredPortsAnnotation specifies the ports that need to ingored when intercepting traffic
	AppMeshEgressIgnoredPortsAnnotation = "appmesh.k8s.aws/egressIgnoredPorts"
	//AppMeshIgnoredGIDAnnotation specifies the GID used by proxy
	AppMeshIgnoredGIDAnnotation = "appmesh.k8s.aws/ignoredGID"
	//AppMeshIgnoredUIDAnnotation specifies the UID used by proxy
	AppMeshIgnoredUIDAnnotation = "appmesh.k8s.aws/ignoredUID"
	//AppMeshMemoryRequestAnnotation specifies the memory requests for proxy
	AppMeshMemoryRequestAnnotation = "appmesh.k8s.aws/memoryRequest"
	//AppMeshMeshNameAnnotation specifies the mesh that proxy should use
	AppMeshMeshNameAnnotation = "appmesh.k8s.aws/mesh"
	//AppMeshPortsAnnotation specifies the ports that proxy will forward traffic to. By default this is detected using the Pod ports.
	AppMeshPortsAnnotation = "appmesh.k8s.aws/ports"
	//AppMeshPreviewAnnotation specifies that proxy should use App Mesh preview endpoint
	AppMeshPreviewAnnotation = "appmesh.k8s.aws/preview"
	//AppMeshProxyEgressPortAnnotation specifies the port used by proxy for egress traffic (traffic originating from app container to external services). This is fixed to AppMeshProxyEgressPort
	AppMeshProxyEgressPortAnnotation = "appmesh.k8s.aws/proxyEgressPort"
	//AppMeshProxyIngressPortAnnotation specifies the port used by proxy for incoming traffic. This is fixed to AppMeshProxyIngressPort
	AppMeshProxyIngressPortAnnotation = "appmesh.k8s.aws/proxyIngressPort"
	//AppMeshSidecarInjectAnnotation specifies proxy should be injected for pod. Other systems can use this annotation on pod to determine if proxy is injected or not
	AppMeshSidecarInjectAnnotation = "appmesh.k8s.aws/sidecarInjectorWebhook"
	//AppMeshVirtualNodeNameAnnotation specifies the App Mesh VirtualNode used by proxy
	AppMeshVirtualNodeNameAnnotation = "appmesh.k8s.aws/virtualNode"

	//FargateProfileLabel is added by fargate-scheduler when pod is running on AWS Fargate
	FargateProfileLabel = "eks.amazonaws.com/fargate-profile"

	AppMeshProxyEgressPort  = "15001"
	AppMeshProxyIngressPort = "15000"
	AppMeshProxyUID         = "1337"
)

Variables

This section is empty.

Functions

func MultipleTracer added in v0.2.0

func MultipleTracer(config Config) bool

MultipleTracer checks if more than one tracer is configured.

Types

type Config

type Config struct {
	// HTTP Server settings
	Port    int
	TlsCert string
	TlsKey  string

	// Injetion Settings
	InjectDefault bool

	// If enabled, an fsGroup: 1337 will be injected in the absence of it within pod securityContext
	// see https://github.com/aws/amazon-eks-pod-identity-webhook/issues/8 for more details
	EnableIAMForServiceAccounts bool

	// Sidecar settings
	SidecarImage  string
	SidecarCpu    string
	SidecarMemory string
	MeshName      string
	Region        string
	Preview       bool
	LogLevel      string
	EcrSecret     bool

	// Init container settings
	InitImage  string
	IgnoredIPs string

	// Observability settings
	InjectXraySidecar           bool
	EnableStatsTags             bool
	EnableStatsD                bool
	InjectStatsDExporterSidecar bool
	EnableJaegerTracing         bool
	JaegerAddress               string
	JaegerPort                  string
	EnableDatadogTracing        bool
	DatadogAddress              string
	DatadogPort                 string
}

Jump to

Keyboard shortcuts

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