Skip to content

Instantly share code, notes, and snippets.

@skylarbpayne
Last active July 23, 2021 01:14
Show Gist options
  • Save skylarbpayne/1d3b279e9019d6a022a09b3db5e551f4 to your computer and use it in GitHub Desktop.
Save skylarbpayne/1d3b279e9019d6a022a09b3db5e551f4 to your computer and use it in GitHub Desktop.
Install kfctl
# Taken from the book: "Kubeflow for Machine Learning: From Lab to Production"
# Provided as-is
PLATFORM=$(uname)
export PLATFORM
mkdir -p ~/bin
export KF_TAG=1.0.1
KF_BASE="https://api.github.com/repos/kubeflow/kfctl/releases"
KFCTL_URL=$(curl -s ${KF_BASE} |\
grep http |\
grep "${KF_TAG}" |\
grep -i "${PLATFORM}" |\
cut -d : -f 2,3 |\
tr -d '\" ' )
wget "${KFCTL_URL}"
KFCTL_FILE=${KFCTL_URL##*/}
tar -xvf "${KFCTL_FILE}"
mv ./kfctl ~/bin/
rm "${KFCTL_FILE}"
export PATH=$PATH:~/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment