Skip to content

Instantly share code, notes, and snippets.

@masroorhasan
Last active January 20, 2019 19:49
Show Gist options
  • Save masroorhasan/8e3a837f5eea8af64712b43e80fc9a84 to your computer and use it in GitHub Desktop.
Save masroorhasan/8e3a837f5eea8af64712b43e80fc9a84 to your computer and use it in GitHub Desktop.
#!/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