Skip to content

Commit

Permalink
fix local dind env (#440)
Browse files Browse the repository at this point in the history
* add --skip-refresh to helm init
* fix dind document
* rm manifests/local-dind/pv-create.sh manifests/local-dind/pv-hosts.sh
and hack/dind-run-operators.sh
  • Loading branch information
weekface authored and tennix committed May 5, 2019
1 parent 712002e commit 6598b4d
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 38 deletions.
3 changes: 1 addition & 2 deletions docs/local-dind-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ NAME AGE
tidbclusters.pingcap.com 1m

$ # Install TiDB Operator into Kubernetes
$ helm install charts/tidb-operator --name=tidb-operator --namespace=tidb-admin

$ helm install charts/tidb-operator --name=tidb-operator --namespace=tidb-admin --set scheduler.kubeSchedulerImageName=mirantis/hypokube --set scheduler.kubeSchedulerImageTag=final
$ # wait operator running
$ kubectl get pods --namespace tidb-admin -l app.kubernetes.io/instance=tidb-operator
NAME READY STATUS RESTARTS AGE
Expand Down
4 changes: 2 additions & 2 deletions hack/dind-run-operators.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash

set -euo pipefail

helm init --upgrade
./manifests/local-dind/setup.sh
manifests/local-dind/dind-cluster-v1.12.sh up
kubectl apply -f ./manifests/crd.yaml
helm install charts/tidb-operator --name tidb-operator --namespace=tidb-admin --set "imagePullPolicy=Always"
helm install charts/tidb-cluster --name tidb-cluster --namespace=tidb
2 changes: 1 addition & 1 deletion manifests/local-dind/dind-cluster-v1.10.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2401,7 +2401,7 @@ function dind::run_tiller {
if [[ $? -eq 0 ]];then
helm_version=$(helm version -c --template '{{.Client.SemVer}}')
if [[ -n ${KUBE_REPO_PREFIX} ]];then
helm init --tiller-image ${KUBE_REPO_PREFIX}/tiller:${helm_version}
helm init --tiller-image ${KUBE_REPO_PREFIX}/tiller:${helm_version} --skip-refresh
else
helm init
fi
Expand Down
2 changes: 1 addition & 1 deletion manifests/local-dind/dind-cluster-v1.12.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2416,7 +2416,7 @@ function dind::run_tiller {
if [[ $? -eq 0 ]];then
helm_version=$(helm version -c --template '{{.Client.SemVer}}')
if [[ -n ${KUBE_REPO_PREFIX} ]];then
helm init --tiller-image ${KUBE_REPO_PREFIX}/tiller:${helm_version}
helm init --tiller-image ${KUBE_REPO_PREFIX}/tiller:${helm_version} --skip-refresh
else
helm init
fi
Expand Down
19 changes: 0 additions & 19 deletions manifests/local-dind/pv-create.sh

This file was deleted.

8 changes: 0 additions & 8 deletions manifests/local-dind/pv-hosts.sh

This file was deleted.

5 changes: 0 additions & 5 deletions manifests/local-dind/setup.sh

This file was deleted.

0 comments on commit 6598b4d

Please sign in to comment.