-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scripts for making kind work behind a proxy.
- Loading branch information
Showing
5 changed files
with
52 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
echo "Setting up docker proxy settings..." | ||
mkdir -p ~/.docker | ||
cp docker-config.json ~/.docker/config.json | ||
|
||
echo "Fetching kubernetes source..." | ||
mkdir -p ~/.go/src/k8s.io/kubernetes | ||
export GOPATH=$HOME/.go | ||
git clone https://github.com/kubernetes/kubernetes.git ~/.go/src/k8s.io/kubernetes | ||
|
||
echo "Creating kind cluster..." | ||
# kind delete cluster | ||
kind build node-image | ||
kind create cluster --config kind-config.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"proxies": | ||
{ | ||
"default": | ||
{ | ||
"httpProxy": "http://10.19.16.165:8080", | ||
"httpsProxy": "http://10.19.16.165:8080", | ||
"noProxy": "localhost,127.0.0.0/8,::1" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Setup kind cluster | ||
kind create cluster --config kind-config.yml | ||
export KUBECONFIG="$(kind get kubeconfig-path)" | ||
kubectl cluster-info | ||
|
||
# Add kubernetes dashboard | ||
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml | ||
|
||
# Watch | ||
watch -n 1 kubectl get pods -n kube-system |