You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1.2 KiB

  1. # Setting up Environment Proxy
  2. If you set http and https proxy, all nodes and loadbalancer will be excluded from proxy with generating no_proxy variable in `roles/kubespray-defaults/tasks/no_proxy.yml`, if you have additional resources for exclude add them to `additional_no_proxy` variable. If you want fully override your `no_proxy` setting, then fill in just `no_proxy` and no nodes or loadbalancer addresses will be added to no_proxy.
  3. ## Set proxy for http and https
  4. `http_proxy:"http://example.proxy.tld:port"`
  5. `https_proxy:"http://example.proxy.tld:port"`
  6. ## Set default no_proxy (this will override default no_proxy generation)
  7. `no_proxy: "node1,node1_ip,node2,node2_ip...additional_host"`
  8. ## Set additional addresses to default no_proxy (all cluster nodes and loadbalancer)
  9. `additional_no_proxy: "additional_host1,additional_host2"`
  10. ## Exclude workers from no_proxy
  11. Since workers are included in the no_proxy variable, by default, docker engine will be restarted on all nodes (all
  12. pods will restart) when adding or removing workers. To override this behaviour by only including control plane nodes in the
  13. no_proxy variable, set:
  14. `no_proxy_exclude_workers: true`