Skip to content

Commit

Permalink
Append ${KIND_REGISTRY_NAME} to no_proxy
Browse files Browse the repository at this point in the history
Kind propagates all http_proxy, https_proxy, and no_proxy environment variables
to all kind nodes. To ensure that ${KIND_REGISTRY_NAME} is accessed without a
proxy, append it to the no_proxy variable.
  • Loading branch information
linericyang committed May 17, 2024
1 parent c4b5f62 commit 7a8d691
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions providers/kind/kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ _prepare_config() {

_setup_kind() {
info "Starting kind with cluster name \"${KIND_CLUSTER_NAME}\""

# Append ${KIND_REGISTRY_NAME} to the no_proxy variable to ensure the local
# kind registry was resolved correctly when behind a corporate proxy
export no_proxy="${no_proxy},${KIND_REGISTRY_NAME}"

run kind create cluster --name="${KIND_CLUSTER_NAME}" -v6 --config="$KIND_CONFIG_YAML"

info "Generating kubeconfig"
Expand Down

0 comments on commit 7a8d691

Please sign in to comment.