Skip to content

Commit ea05ed9

Browse files
authored
Update DinD image to make it possible to configure HTTP proxies (#485)
1 parent 22e9e63 commit ea05ed9

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

docs/local-dind-tutorial.md

+9
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@ $ manifests/local-dind/dind-cluster-v1.12.sh up
4343
$ KUBE_REPO_PREFIX=uhub.ucloud.cn/pingcap manifests/local-dind/dind-cluster-v1.12.sh up
4444
```
4545

46+
> **Note:** An alternative solution is to configure HTTP proxies in DinD.
47+
48+
```
49+
$ export DIND_HTTP_PROXY=http://<ip>:<port>
50+
$ export DIND_HTTPS_PROXY=http://<ip>:<port>
51+
$ export DIND_NO_PROXY=.svc,.local,127.0.0.1,0,1,2,3,4,5,6,7,8,9 # whitelist internal domains and IP addresses
52+
$ manifests/local-dind/dind-cluster-v1.12.sh up
53+
```
54+
4655
## Step 2: Install TiDB Operator in the DinD Kubernetes cluster
4756

4857
```sh

manifests/local-dind/dind-cluster-v1.10.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if [[ $(uname) == Linux && -z ${DOCKER_HOST:-} ]]; then
5252
using_local_linuxdocker=1
5353
fi
5454

55-
EMBEDDED_CONFIG=y;DIND_IMAGE=mirantis/kubeadm-dind-cluster@sha256:ba1b61973fb4761f209580c599c17eab7c2e1bead5dfe496aab47c5ff672b05f
55+
EMBEDDED_CONFIG=y;DIND_IMAGE=mirantis/kubeadm-dind-cluster@sha256:0a68bdc682af3e102bafb9efa304a1b50aec0b2c64c086c34004d4d289e5b173
5656

5757
KUBE_REPO_PREFIX="${KUBE_REPO_PREFIX:-}"
5858
if [[ -n ${KUBE_REPO_PREFIX} ]];then

manifests/local-dind/dind-cluster-v1.12.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if [[ $(uname) == Linux && -z ${DOCKER_HOST:-} ]]; then
5252
using_local_linuxdocker=1
5353
fi
5454

55-
EMBEDDED_CONFIG=y;DIND_IMAGE=mirantis/kubeadm-dind-cluster@sha256:8e679951101f3f2030e77a1146cc514631f21f424027fcc003fc78a0337eb730
55+
EMBEDDED_CONFIG=y;DIND_IMAGE=mirantis/kubeadm-dind-cluster@sha256:48782c23bedd3f9c3d42af0ab0417eeff7d7884eac20a67adcb0c8534a97fce1
5656

5757
KUBE_REPO_PREFIX="${KUBE_REPO_PREFIX:-}"
5858
if [[ -n ${KUBE_REPO_PREFIX} ]];then

0 commit comments

Comments
 (0)