Thursday, January 16, 2020

Tip: Download Kubebuilder and Kustomize Behind Proxy

Kustomize:

curl -x http://<proxy host>:80/ -s https://api.github.com/repos/kubernetes-sigs/kustomize/releases/latest |  grep browser_download |  grep linux |  cut -d '"' -f 4 |  xargs curl -O -L -x http://<proxy host>:80/

Kubebuilder:

os=$(go env GOOS)
arch=$(go env GOARCH)
curl -x http://<proxy host>:80/ -sL https://go.kubebuilder.io/dl/2.0.0-beta.0/${os}/${arch} | tar -xz -C /tmp/

No comments:

Post a Comment