constants

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProxyUserID = 1359

	ProxyMetricsHealthPort = 5441
	ProxyApiserverPort     = 5443
	ProxyWebhookPort       = 5445
	ProxyGRPCPort          = 5447
	ProxyMetricsPort       = 5449
	ProxyManagerHealthPort = 5451
	ProxyGRPCServerPort    = 5453

	ProxyIptablesPort = 15002
	PprofListenPort   = 5050

	DefaultShardingSize = 32

	ProxyIptablesPortFlag           = "proxy-metrics"
	ProxyMetricsHealthPortFlag      = "metrics-health-port"
	ProxyApiserverPortFlag          = "proxy-apiserver-port"
	ProxyWebhookPortFlag            = "proxy-webhook-port"
	ProxyGRPCPortFlag               = "grpc-port"
	ProxyIptablesFlag               = "tport"
	ProxyIptablesRuleConfigPathFlag = "rulecfgpath"
	ProxyIptablesRuleConfigFileFlag = "rulecfgfile"

	ProxyLeaderElectionNameFlag = "leader-election-name"
	ProxyWebhookServePortFlag   = "webhook-serve-port"
	ProxyWebhookCertDirFlag     = "webhook-cert-dir"

	EnablePProfFlag     = "enable-pprof"
	PprofListenPortFlag = "pprof-listen-port"

	InitContainerName               = "ctrlmesh-init"
	ProxyContainerName              = "ctrlmesh-proxy"
	ProxyIptablesRuleConfigPathName = "/rule_cfg"
	ProxyIptablesRuleConfigFileName = "whitelist.yaml"

	EnvInboundWebhookPort = "INBOUND_WEBHOOK_PORT"
	EnvPodName            = "POD_NAME"
	EnvPodNamespace       = "POD_NAMESPACE"
	EnvPodIP              = "POD_IP"
	EnvIPTable            = "ENABLE_IPTABLE_PROXY"
	EnvEnableWebHookProxy = "ENABLE_WEBHOOK_PROXY"

	EnvEnableSim = "ENABLE_SIM"

	EnvDisableCircuitBreaker         = "DISABLE_CIRCUIT_BREAKER"
	EnvEnableFaultInjection          = "ENABLE_FAULT_INJECTION"
	EnvEnableApiServerCircuitBreaker = "ENABLE_API_SERVER_BREAKER"
	EnvEnableRestCircuitBreaker      = "ENABLE_REST_BREAKER"
	EnvEnableRestFaultInjection      = "ENABLE_REST_FAULT_INJECTION"

	EnvProxyGRPCServerPort = "PROXY_GRPC_SERVER_PORT"
)

Variables

This section is empty.

Functions

func AllProxySyncEnvKey

func AllProxySyncEnvKey() []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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