Skip to content

Commit

Permalink
Update provisioning [#344, #345]
Browse files Browse the repository at this point in the history
Use updated k8s-infra image with specific release_type that pulls newest kubespray release when run
  • Loading branch information
michaelspedersen committed May 12, 2020
1 parent 0dda343 commit 59da736
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ifeq (pktgen,$(firstword $(MAKECMDGOALS)))
include Makefile.pktgen
endif
#K8s
RELEASE_TYPE := stable
RELEASE_TYPE := kubespray
#vSwitch
ifeq (vswitch,$(firstword $(MAKECMDGOALS)))
include Makefile.vswitch
Expand Down
6 changes: 3 additions & 3 deletions tools/kubernetes_provisioning.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
DEPLOY_NAME=${DEPLOY_NAME:-cnftestbed}

# generate_config & provisioning defaults
RELEASE_TYPE=${RELEASE_TYPE:-stable}
RELEASE_TYPE=${RELEASE_TYPE:-kubespray}
HOSTS_FILE=${HOSTS_FILE:-$(pwd)/data/$DEPLOY_NAME/kubernetes.env}

# vswitch and gogtp_multi defaults
Expand Down Expand Up @@ -36,7 +36,7 @@ docker run \
--rm \
-v $(pwd)/data/$DEPLOY_NAME:/k8s-infra/data \
$HOSTS_VOLUME$HOSTS_TMP \
-ti crosscloudci/k8s-infra:v1.0.0 \
-ti crosscloudci/k8s-infra:dynamic-kubespray-update \
/k8s-infra/bin/k8sinfra generate_config ${HOSTS_CMD} --release-type=$RELEASE_TYPE -o /k8s-infra/data/cluster.yml
fi

Expand All @@ -51,7 +51,7 @@ docker run \
--rm \
-v $(pwd)/data/$DEPLOY_NAME:/k8s-infra/data \
-v ~/.ssh/id_rsa:/root/.ssh/id_rsa \
-ti crosscloudci/k8s-infra:multus \
-ti crosscloudci/k8s-infra:dynamic-kubespray-update \
/k8s-infra/bin/k8sinfra provision --config-file=/k8s-infra/data/cluster.yml

if [ "$?" == "1" ]; then
Expand Down

0 comments on commit 59da736

Please sign in to comment.