Skip to content

Instantly share code, notes, and snippets.

@jtfogarty
Created April 1, 2020 20:41
Show Gist options
  • Save jtfogarty/d5745a773f41ba3e747fc93bf98f9f6d to your computer and use it in GitHub Desktop.
Save jtfogarty/d5745a773f41ba3e747fc93bf98f9f6d to your computer and use it in GitHub Desktop.
kfctl version
gcloud config list
gcloud config set compute/zone us-central1-a
gcloud config list
PROJECT_ID=$(gcloud config list project --format='value(core.project)')
echo ""
read -p "Enter the name of this cluster: " KF_NAME
echo "$KF_NAME!"
export CONFIG_URI="https://raw.githubusercontent.com/kubeflow/manifests/v1.0-branch/kfdef/kfctl_gcp_iap.v1.0.1.yaml"
export CLIENT_ID=
export CLIENT_SECRET=
export BASE_DIR=/home/j_007ba7
export KF_DIR=${BASE_DIR}/${KF_NAME}
mkdir -p ${KF_DIR}
cd ${KF_DIR}
kfctl apply -V -f ${CONFIG_URI}
gcloud config list
echo "https://${KF_NAME}.endpoints.${PROJECT_ID}.cloud.goog/"
echo "kfctl delete -f https://raw.githubusercontent.com/kubeflow/manifests/v1.0-branch/kfdef/kfctl_gcp_iap.v1.0.1.yaml --delete_storage"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment