Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More automation in getting_started.md guide #385

Merged
merged 14 commits into from
Mar 2, 2022
Prev Previous commit
Next Next commit
comment from anusha
Signed-off-by: chen hui <huchen@vmware.com>
chen hui committed Feb 22, 2022
commit a45399614817a7aeab2bf11a4af40ffa2472056c
8 changes: 6 additions & 2 deletions hack/getting_started.sh
Original file line number Diff line number Diff line change
@@ -518,7 +518,7 @@ function createWorkCluster() {

# Find a available IP for control plane endpoint
calcControlPlaneIP

CONTROL_PLANE_ENDPOINT_IP=${controlPlaneEndPointIp} clusterctl generate cluster ${workerClusterName} --infrastructure byoh --kubernetes-version ${kubernetesVersion} --control-plane-machine-count ${controlPlaneNums} --worker-machine-count ${workerNums} --flavor docker > "${clusterYamlFile}"
if [ $? -ne 0 ]; then
echo "Generate ${clusterYamlFile} failed, exiting..."
@@ -578,4 +578,8 @@ if [ ${defaultCni} -eq 1 ]; then
installCNI
fi

checkNodeStatus
checkNodeStatus

if [ ${defaultCni} -eq 0 ]; then
echo "Byoh cluster \"${workerClusterName}\" is successfully created, next step is to apply a CNI of your choice."
fi