This repository was archived by the owner on Apr 25, 2023. It is now read-only.
File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -173,8 +173,10 @@ cd -
173
173
deploy-with-helm
174
174
175
175
# Join the host cluster
176
- CONTEXT=" $( kubectl config current-context) "
177
- ./bin/kubefedctl join " ${CONTEXT} " --host-cluster-context " ${CONTEXT} " --v=2 " ${KF_NS_ARGS} " --error-on-existing=false
176
+ if [ -z " ${NO_JOIN_HOST_CLUSTER:- } " ] ; then
177
+ CONTEXT=" $( kubectl config current-context) "
178
+ ./bin/kubefedctl join " ${CONTEXT} " --host-cluster-context " ${CONTEXT} " --v=2 " ${KF_NS_ARGS} " --error-on-existing=false
179
+ fi
178
180
179
181
for c in ${JOIN_CLUSTERS} ; do
180
182
./bin/kubefedctl join " ${c} " --host-cluster-context " ${CONTEXT} " --v=2 " ${KF_NS_ARGS} " --error-on-existing=false
Original file line number Diff line number Diff line change @@ -78,11 +78,11 @@ users: []
78
78
EOF
79
79
80
80
# Start kube-apiserver to generate CRDs
81
- ${ROOT_DIR} /bin/etcd --data-dir ${WORKDIR} &
82
- util::wait-for-condition ' ok ' " curl http://127.0.0.1:2379/version &> /dev/null" 30
81
+ ${ROOT_DIR} /bin/etcd --data-dir ${WORKDIR} --log-output stdout > ${WORKDIR} /etcd.log 2>&1 &
82
+ util::wait-for-condition ' etcd ' " curl http://127.0.0.1:2379/version &> /dev/null" 30
83
83
84
- ${ROOT_DIR} /bin/kube-apiserver --etcd-servers=http://127.0.0.1:2379 --service-cluster-ip-range=10.0.0.0/16 --cert-dir ${WORKDIR} &
85
- util::wait-for-condition ' ok ' " kubectl --kubeconfig ${WORKDIR} /kubeconfig --context kubefed get --raw=/healthz &> /dev/null" 60
84
+ ${ROOT_DIR} /bin/kube-apiserver --etcd-servers=http://127.0.0.1:2379 --service-cluster-ip-range=10.0.0.0/16 --cert-dir= ${WORKDIR} --log-file= ${WORKDIR} /kube-apiserver.log --logtostderr=false 2> /dev/null &
85
+ util::wait-for-condition ' kube-apiserver ' " kubectl --kubeconfig ${WORKDIR} /kubeconfig --context kubefed get --raw=/healthz &> /dev/null" 60
86
86
87
87
# Generate YAML templates to enable resource propagation for helm chart.
88
88
echo -n > ${CHART_FEDERATED_PROPAGATION_DIR} /templates/federatedtypeconfig.yaml
104
104
kill %1 # etcd
105
105
kill %2 # kube-apiserver
106
106
rm -fr ${WORKDIR}
107
+ echo " Helm chart synced successfully"
You can’t perform that action at this time.
0 commit comments