linkerd2/cli/cmd
Oliver Gould 4d85b6cd65
inject: Set LINKERD2_PROXY_CORES from the cpu limit (#5170)
Per #5165, Kubernetes does not necessarily limit the proxy's access to
cores via `cgroups` when a CPU limit is set. As of #5168, the proxy now
supports a `LINKERD2_PROXY_CORES` environment configuration that
augments CPU detection from the host operating system.

This change modifies the proxy injector to ensure that this environment
is configured from the `Values.proxy.cores` Helm value, the
`config.linkerd.io/proxy-cpu-limit` annotation, and the `--proxy-cpu-limit`
install flag.
2020-11-03 10:02:31 -08:00
..
testdata inject: Set LINKERD2_PROXY_CORES from the cpu limit (#5170) 2020-11-03 10:02:31 -08:00
alpha.go Remove SMI-Metrics charts and commands (#4843) 2020-08-24 14:35:33 -07:00
check.go Upgrade using config overrides (#5005) 2020-10-12 14:23:14 -07:00
check_test.go Output check result as json (#2666) 2019-05-20 09:04:28 -07:00
completion.go add fish shell completion (#4751) 2020-07-20 15:46:30 -07:00
completion_test.go Bump proxy-init to 1.2.0 (#3397) 2019-09-09 09:06:14 -07:00
dashboard.go Bump k8s client-go to v0.19.2 (#5002) 2020-09-28 12:45:18 -05:00
diagnostics.go Bump k8s client-go to v0.19.2 (#5002) 2020-09-28 12:45:18 -05:00
doc.go feat: add log format annotation and helm value (#4620) 2020-07-02 10:08:52 -05:00
edges.go Upgrade generated protobuf files to v1.4.2 (#4673) 2020-06-26 09:36:48 -05:00
edges_test.go Upgrade generated protobuf files to v1.4.2 (#4673) 2020-06-26 09:36:48 -05:00
endpoints.go Have `linkerd endpoints` use `Destination.Get` (#2990) 2019-07-03 09:11:03 -05:00
endpoints_test.go Have `linkerd endpoints` use `Destination.Get` (#2990) 2019-07-03 09:11:03 -05:00
get.go Add namespace global flag to hold default namespace name (#4469) (#4512) 2020-06-04 10:45:07 -07:00
get_test.go Fix spelling mistakes using codespell (#4700) 2020-07-07 17:07:22 -05:00
inject.go cli: add `--ingress` flag to inject cmd (#5154) 2020-11-02 14:47:16 +05:30
inject_test.go Upgrade using config overrides (#5005) 2020-10-12 14:23:14 -07:00
inject_util.go Update `inject` to throw an error while injecting non-compliant pods (#4346) 2020-06-24 14:07:05 -05:00
install-cni-plugin.go Upgrade using config overrides (#5005) 2020-10-12 14:23:14 -07:00
install-cni-plugin_test.go CNI: Use skip ports configuration in CNI (#4974) 2020-09-23 13:00:22 +05:30
install-sp.go Update check to use new linkerd-config.values (#5023) 2020-10-01 11:19:25 -07:00
install-sp_test.go Add cluster domain cli flag (#3360) 2019-09-19 16:08:50 -07:00
install.go Stop rendering addon config (#5078) 2020-10-16 11:07:51 -07:00
install_addon_test.go Upgrade using config overrides (#5005) 2020-10-12 14:23:14 -07:00
install_cni_helm_test.go Push docker images to ghcr.io instead of gcr.io (#4953) 2020-09-10 15:16:24 -05:00
install_helm_test.go Expose namespaceSelector for admission webhooks in helm chart (#5074) 2020-10-13 16:08:56 -07:00
install_test.go charts: Do not store .component in linkerd-config (#5144) 2020-11-02 20:41:37 +05:30
logs.go Bump k8s client-go to v0.19.2 (#5002) 2020-09-28 12:45:18 -05:00
logs_test.go Introduce inject integration tests (#2616) 2019-04-05 11:42:49 -07:00
main_test.go add flag for dumping rejected results to folder for use with external diff (#4509) 2020-06-04 10:49:41 -04:00
metrics.go Bump k8s client-go to v0.19.2 (#5002) 2020-09-28 12:45:18 -05:00
metrics_diagnostics_util.go Linkerd CLI command to get control plane diagnostics (#4050) 2020-02-24 09:09:54 -08:00
metrics_diagnostics_util_test.go Bump k8s client-go to v0.19.2 (#5002) 2020-09-28 12:45:18 -05:00
multicluster.go Remove `--registry` flag from `linkerd mc install` (#5164) 2020-11-02 17:23:32 -05:00
options.go inject: Set LINKERD2_PROXY_CORES from the cpu limit (#5170) 2020-11-03 10:02:31 -08:00
profile.go cli: fix and update timeout warnings in profile cmd (#5122) 2020-10-27 22:08:21 +05:30
profile_test.go Allow setting custom cluster domain in service profiles (#3148) 2019-08-07 09:49:54 -07:00
public_api.go Bump k8s client-go to v0.19.2 (#5002) 2020-09-28 12:45:18 -05:00
range_slice.go Enable mixed configuration of skip-[inbound|outbound]-ports (#3766) 2019-12-20 09:32:13 -05:00
range_slice_test.go Enable mixed configuration of skip-[inbound|outbound]-ports (#3766) 2019-12-20 09:32:13 -05:00
root.go Upgrade using config overrides (#5005) 2020-10-12 14:23:14 -07:00
routes.go Fix routes wide output formatting for empty values (#4239) 2020-04-07 14:35:55 -05:00
routes_test.go Upgrade generated protobuf files to v1.4.2 (#4673) 2020-06-26 09:36:48 -05:00
stat.go Fixes unit tests when default kubeconfig namespace is not "default" (#4825) 2020-08-03 11:27:02 -07:00
stat_test.go Upgrade generated protobuf files to v1.4.2 (#4673) 2020-06-26 09:36:48 -05:00
tap.go cli: fix and update timeout warnings in profile cmd (#5122) 2020-10-27 22:08:21 +05:30
tap_test.go cli: fix and update timeout warnings in profile cmd (#5122) 2020-10-27 22:08:21 +05:30
test_helper.go Refactor upgrade tests to remove use of golden files (#4860) 2020-08-11 09:22:29 -07:00
top.go Use errors.Is instead of checking underlying err messages (#5140) 2020-10-28 21:33:17 +05:30
uninject.go Update Injection to use new linkerd-config.values (#5036) 2020-10-07 09:54:34 -07:00
uninject_test.go Upgrade using config overrides (#5005) 2020-10-12 14:23:14 -07:00
uninstall.go Bump k8s client-go to v0.19.2 (#5002) 2020-09-28 12:45:18 -05:00
uninstall_test.go Bump k8s client-go to v0.19.2 (#5002) 2020-09-28 12:45:18 -05:00
upgrade.go Rename --addon-config flag to --config (#5075) 2020-10-13 14:07:18 -07:00
upgrade_legacy.go upgrade: do not use external certs with upgrades (#5166) 2020-11-02 17:06:44 -05:00
upgrade_test.go Allow tracing ServiceAccounts to use the PSP (#5072) 2020-10-20 20:04:37 +05:30
version.go Bump k8s client-go to v0.19.2 (#5002) 2020-09-28 12:45:18 -05:00
version_test.go Bump k8s client-go to v0.19.2 (#5002) 2020-09-28 12:45:18 -05:00