From 7add16b378794ff8f9c49f833bd55cbb31ca86b0 Mon Sep 17 00:00:00 2001 From: Kirill Roskolii Date: Wed, 23 Mar 2022 10:13:58 +1300 Subject: [PATCH] Add proxy-url example to kubectl documentation (#32245) * Add proxy-url example * Fix typo Co-authored-by: Jihoon Seo <46767780+jihoon-seo@users.noreply.github.com> Co-authored-by: Jihoon Seo <46767780+jihoon-seo@users.noreply.github.com> --- .../organize-cluster-access-kubeconfig.md | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/content/en/docs/concepts/configuration/organize-cluster-access-kubeconfig.md b/content/en/docs/concepts/configuration/organize-cluster-access-kubeconfig.md index b27fcdee61..713592cf98 100644 --- a/content/en/docs/concepts/configuration/organize-cluster-access-kubeconfig.md +++ b/content/en/docs/concepts/configuration/organize-cluster-access-kubeconfig.md @@ -148,7 +148,28 @@ File references on the command line are relative to the current working director In `$HOME/.kube/config`, relative paths are stored relatively, and absolute paths are stored absolutely. +## Proxy +You can configure `kubectl` to use proxy by setting `proxy-url` in the kubeconfig file, like: + +```yaml +apiVersion: v1 +kind: Config + +proxy-url: https://proxy.host:3128 + +clusters: +- cluster: + name: development + +users: +- name: developer + +contexts: +- context: + name: development + +``` ## {{% heading "whatsnext" %}}