From 6a35189e21bc70e0b012f6fafb084039f5fc0157 Mon Sep 17 00:00:00 2001 From: huzhifeng Date: Tue, 28 Feb 2017 17:29:55 +0800 Subject: [PATCH] Add example show how to configure proxy for kube --- docs/admin/kubeadm.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/admin/kubeadm.md b/docs/admin/kubeadm.md index 2145b75310..fe24c3e8a8 100644 --- a/docs/admin/kubeadm.md +++ b/docs/admin/kubeadm.md @@ -260,6 +260,22 @@ These environment variables are a short-term solution, eventually they will be i If you want to use kubeadm with an http proxy, you may need to configure it to support http_proxy, https_proxy, or no_proxy. +For example, your kube master node ip is 10.18.17.16, and you have a proxy support both http/https on 10.18.17.16 port 8080 + +You can using following command + +```bash +export PROXY_PORT=8080 +export PROXY_IP=10.18.17.16 +export http_proxy=http://$PROXY_IP:$PROXY_PORT +export HTTP_PROXY=$http_proxy +export https_proxy=$http_proxy +export HTTPS_PROXY=$http_proxy +export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com,example.com,10.18.17.16" +``` + +Remember change ```proxy_ip``` and add kube master node ip to ```no_proxy``` + ## Releases and release notes If you already have kubeadm installed and want to upgrade, run `apt-get update && apt-get upgrade` or `yum update` to get the latest version of kubeadm.