Skip to content

Commit

Permalink
replace hardcoded kfctl.yaml with variable
Browse files Browse the repository at this point in the history
  • Loading branch information
moficodes committed Mar 23, 2021
1 parent d00e8cd commit e3a8b91
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@ export CONFIG_URI="https://raw.githubusercontent.com/kubeflow/manifests/master/d
mkdir -p ${KF_DIR}
cd ${KF_DIR}

wget ${CONFIG_URI} -O kfctl.yaml
wget ${CONFIG_URI} -O ${CONFIG_URI}

# On MacOS
sed -i '' -e 's#https://github.com/kubeflow/manifests/archive/master.tar.gz#https://github.com/kubeflow/manifests/archive/552a4ba84567ed8c0f9abca12f15b8eed000426c.tar.gz#g' kfctl.yaml
sed -i '' -e 's#https://github.com/kubeflow/manifests/archive/master.tar.gz#https://github.com/kubeflow/manifests/archive/552a4ba84567ed8c0f9abca12f15b8eed000426c.tar.gz#g' ${CONFIG_URI}

# On Linux
sed -i -e 's#https://github.com/kubeflow/manifests/archive/master.tar.gz#https://github.com/kubeflow/manifests/archive/552a4ba84567ed8c0f9abca12f15b8eed000426c.tar.gz#g' kfctl.yaml
sed -i -e 's#https://github.com/kubeflow/manifests/archive/master.tar.gz#https://github.com/kubeflow/manifests/archive/552a4ba84567ed8c0f9abca12f15b8eed000426c.tar.gz#g' ${CONFIG_URI}

# Deploy Kubeflow. You can customize the CONFIG_FILE if needed.
kfctl apply -V -f kfctl.yaml
kfctl apply -V -f ${CONFIG_URI}
```

* **${KF_NAME}** - The name of your Kubeflow deployment.
Expand Down

0 comments on commit e3a8b91

Please sign in to comment.