Last active
January 20, 2019 19:49
-
-
Save masroorhasan/8e3a837f5eea8af64712b43e80fc9a84 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
APP=$1 | |
ENV=$2 | |
NS=$3 | |
# Ref: https://github.com/SeldonIO/seldon-core/blob/master/docs/install.md | |
# create a ksonnet app | |
ks init ${APP} --api-spec=version:v1.8.6 | |
# install seldon-core | |
cd ${APP} && \ | |
ks registry add seldon-core github.com/SeldonIO/seldon-core/tree/master/seldon-core && \ | |
ks pkg install seldon-core/seldon-core@master && \ | |
ks env add ${ENV} --namespace=${NS} && \ | |
ks generate seldon-core seldon-core \ | |
--withApife=false \ | |
--withAmbassador=true \ | |
--withRbac=true \ | |
--singleNamespace=true | |
# add more environment (clusters) | |
# first switch kubernetes context with kubectl config use-context <context> | |
# ks env add ${ENV} --namespace=${NS} | |
# launch components to env (cluster) | |
ks apply ${ENV} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment