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 = os.Getenv("PILOT_CERT_DIR") // MaxConcurrentStreams indicates pilot max grpc concurrent streams. // Default is 100k. MaxConcurrentStreams = os.Getenv("ISTIO_GPRC_MAXSTREAMS") // 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 = os.Getenv("PILOT_TRACE_SAMPLING") // 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 = os.Getenv("PILOT_PUSH_THROTTLE") // PushBurst limits the burst of the actual push. Default is 100. PushBurst = os.Getenv("PILOT_PUSH_BURST") // 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 = os.Getenv("PILOT_DEBUG_ADSZ_CONFIG") == "1" // RefreshDuration is the duration of periodic refresh, in case events or cache invalidation fail. // Example: "300ms", "10s" or "2h45m". // Default is 0 (disabled). RefreshDuration = os.Getenv("V2_REFRESH") // 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 = os.Getenv("PILOT_DEBOUNCE_AFTER") // 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 = os.Getenv("PILOT_DEBOUNCE_MAX") // 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 = os.Getenv("PILOT_DISABLE_EDS_ISOLATION") // AzDebug indicates whether to log service registry az info. AzDebug = os.Getenv("VERBOSE_AZ_DEBUG") == "1" // NetworkScopes isolates namespaces, limiting configuration for // egress and other mesh services to only hosts defined in same namespace or // 'admin' namespaces. Using services from any other namespaces will require the new NetworkScope // config. In most cases 'istio-system' should be included. Comma separated (ns1,ns2,istio-system) NetworkScopes = os.Getenv("DEFAULT_NAMESPACE_DEPENDENCIES") // 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 = os.Getenv("PILOT_HTTP10") == "1" // TerminationDrainDuration is the amount of time allowed for connections to complete on pilot-agent shutdown. // On receiving SIGTERM or SIGINT, pilot-agent tells the active Envoy to start draining, // preventing any new connections and allowing existing connections to complete. It then // sleeps for the TerminationDrainDuration and then kills any remaining active Envoy processes. TerminationDrainDuration = func() time.Duration { defaultDuration := time.Second * 5 if os.Getenv("TERMINATION_DRAIN_DURATION_SECONDS") == "" { return defaultDuration } duration, err := strconv.Atoi(os.Getenv("TERMINATION_DRAIN_DURATION_SECONDS")) if err != nil { log.Warnf("unable to parse env var %v, using default of %v.", os.Getenv("TERMINATION_DRAIN_DURATION_SECONDS"), defaultDuration) return defaultDuration } return time.Second * time.Duration(duration) } // EnableCDSPrecomputation provides an option to enable precomputation // of CDS output for all namespaces at the start of a push cycle. // While it reduces CPU, it comes at the cost of increased memory usage EnableCDSPrecomputation = func() bool { return len(os.Getenv("PILOT_ENABLE_CDS_PRECOMPUTATION")) != 0 } // EnableLocalityLoadBalancing provides an option to enable the LocalityLoadBalancerSetting feature // as well as prioritizing the sending of traffic to a local locality. Set the environment variable to any value to enable. // This is an experimental feature. EnableLocalityLoadBalancing = func() bool { return len(os.Getenv("PILOT_ENABLE_LOCALITY_LOAD_BALANCING")) != 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 = os.Getenv("PILOT_ENABLE_WAIT_CACHE_SYNC") != "0" // EnableFallthroughRoute provides an option to add a final wildcard match for routes. // When ALLOW_ANY traffic policy is used, a Passthrough cluster is used. // When REGISTRY_ONLY traffic policy is used, a 502 error is returned. EnableFallthroughRoute = func() bool { val, set := os.LookupEnv("PILOT_ENABLE_FALLTHROUGH_ROUTE") return val == "1" || !set } // DisableXDSMarshalingToAny provides an option to disable the "xDS marshaling to Any" feature ("on" by default). DisableXDSMarshalingToAny = func() bool { return os.Getenv("PILOT_DISABLE_XDS_MARSHALING_TO_ANY") == "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.