Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // CertDir is the default location for mTLS certificates used by pilot. // Defaults to /etc/certs, matching k8s template. Can be used if you run pilot // as a regular user on a VM or test environment. CertDir = env.RegisterStringVar("PILOT_CERT_DIR", "", "").Get() // MaxConcurrentStreams indicates pilot max grpc concurrent streams. // Default is 100000. MaxConcurrentStreams = env.RegisterIntVar("ISTIO_GPRC_MAXSTREAMS", 100000, "").Get() // TraceSampling sets mesh-wide trace sampling // percentage, should be 0.0 - 100.0 Precision to 0.01 // Default is 100%, not recommended for production use. TraceSampling = env.RegisterFloatVar("PILOT_TRACE_SAMPLING", 100.0, "").Get() // PushThrottle limits the qps of the actual push. Default is 10 pushes per second. // On larger machines you can increase this to get faster push. PushThrottle = env.RegisterIntVar("PILOT_PUSH_THROTTLE", 10, "").Get() // PushBurst limits the burst of the actual push. Default is 100. PushBurst = env.RegisterIntVar("PILOT_PUSH_BURST", 100, "").Get() // DebugConfigs controls saving snapshots of configs for /debug/adsz. // Defaults to false, can be enabled with PILOT_DEBUG_ADSZ_CONFIG=1 // For larger clusters it can increase memory use and GC - useful for small tests. DebugConfigs = env.RegisterBoolVar("PILOT_DEBUG_ADSZ_CONFIG", false, "").Get() // RefreshDuration is the duration of periodic refresh, in case events or cache invalidation fail. // Example: "300ms", "10s" or "2h45m". // Default is 0 (disabled). RefreshDuration = env.RegisterDurationVar("V2_REFRESH", 0, "").Get() // DebounceAfter is the delay added to events to wait // after a registry/config event for debouncing. // This will delay the push by at least this interval, plus // the time getting subsequent events. If no change is // detected the push will happen, otherwise we'll keep // delaying until things settle. // Default is 100ms, Example: "300ms", "10s" or "2h45m". DebounceAfter = env.RegisterDurationVar("PILOT_DEBOUNCE_AFTER", 100*time.Millisecond, "").Get() // DebounceMax is the maximum time to wait for events // while debouncing. Defaults to 10 seconds. If events keep // showing up with no break for this time, we'll trigger a push. // Default is 10s, Example: "300ms", "10s" or "2h45m". DebounceMax = env.RegisterDurationVar("PILOT_DEBOUNCE_MAX", 10*time.Second, "").Get() // DisableEDSIsolation provides an option to disable the feature // of EDS isolation which is enabled by default from Istio 1.1 and // go back to the legacy behavior of previous releases. // If not set, Pilot will return the endpoints for a proxy in an isolated namespace. // Set the environment variable to any value to disable. DisableEDSIsolation = env.RegisterStringVar("PILOT_DISABLE_EDS_ISOLATION", "", "").Get() // BaseDir is the base directory for locating configs. // File based certificates are located under $BaseDir/etc/certs/. If not set, the original 1.0 locations will // be used, "/" BaseDir = "BASE" // HTTP10 enables the use of HTTP10 in the outbound HTTP listeners, to support legacy applications. // Will add "accept_http_10" to http outbound listeners. Can also be set only for specific sidecars via meta. // // Alpha in 1.1, may become the default or be turned into a Sidecar API or mesh setting. Only applies to namespaces // where Sidecar is enabled. HTTP10 = env.RegisterBoolVar("PILOT_HTTP10", false, "").Get() TerminationDrainDuration = func() time.Duration { defaultDuration := time.Second * 5 if terminationDrainDurationVar.Get() == "" { return defaultDuration } duration, err := strconv.Atoi(terminationDrainDurationVar.Get()) if err != nil { log.Warnf("unable to parse env var %v, using default of %v.", terminationDrainDurationVar.Get(), defaultDuration) return defaultDuration } return time.Second * time.Duration(duration) } EnableCDSPrecomputation = func() bool { return len(enableCDSPrecomputationVar.Get()) != 0 } EnableLocalityLoadBalancing = func() bool { return len(enableLocalityLoadBalancingVar.Get()) != 0 } // EnableWaitCacheSync provides an option to specify whether it should wait // for cache sync before Pilot bootstrap. Set env PILOT_ENABLE_WAIT_CACHE_SYNC = 0 to disable it. EnableWaitCacheSync = env.RegisterStringVar("PILOT_ENABLE_WAIT_CACHE_SYNC", "", "").Get() != "0" EnableFallthroughRoute = enableFallthroughRouteVar.Get DisableXDSMarshalingToAny = func() bool { return disableXDSMarshalingToAnyVar.Get() == "1" } )
View Source
var (
// DefaultPortHTTPProxy is used as for HTTP PROXY mode. Can be overridden by ProxyHttpPort in mesh config.
DefaultPortHTTPProxy = 15002
)
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.