{
"registry-mirrors":["http://18817714.m.daocloud.io"]
}
s2i build /home/muller/Documents/pyrepo/seldon-core/wrappers/s2i/python/test/model-template-app/ --context-dir= /home/muller/Documents/pyrepo/seldon-core/wrappers/s2i/python/test/model-template-app seldonio/seldon-core-s2i-python2:0.1 seldon-core-template-model
s2i build ./ seldonio/seldon-core-s2i-python3:0.1 seldon-core-template-router
s2i build model_path_directory seldonio/seldon-core-s2i-python3:0.1 model_imange_name
sudo docker run -v /home/muller/Documents/pyrepo/seldon-core/wrappers/python:/my_model seldonio/core-python-wrapper:0.7 /my_model MnistClassifier 0.1 mullerhelen
docker run -v /path:
docker run -v /home/muller/Documents/pyrepo/seldon-core/examples/models/sklearn_iris/:/tmp seldonio/core-python-wrapper:0.7 /tmp IrisClassifier 0.1 mullerhelen
model_microservice.py
helm init --tiller-image=daocloud.io/liukuan73/tiller-lk:v2.10.0 --tiller-namespace=kube-system
ks init my-ml-deployment --api-spec=version:v1.8.0
cd my-ml-deployment
ks registry add seldon-core github.com/SeldonIO/seldon-core/tree/master/seldon-core
ks pkg install seldon-core/seldon-core@master
ks generate seldon-core seldon-core --withApife=true --withAmbassador=false --withRbac=true
ks apply default
helm init --service-account tiller --upgrade -i registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.10.0 --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
创建TLS认证服务端,参考地址:https://github.com/gjmzj/kubeasz/blob/master/docs/guide/helm.md
helm init --service-account tiller --upgrade -i registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.10.0 --tiller-tls-cert /etc/kubernetes/ssl/tiller001.pem --tiller-tls-key /etc/kubernetes/ssl/tiller001-key.pem --tls-ca-cert /etc/kubernetes/ssl/ca.pem --tiller-namespace kube-system --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
kubectl get services -n kube-system
kubectl delete service tiller-deploy -n kube-system
kubectl get pods -n kube-system
kubectl delete pod tiller-deploy-76d9f467fd-hfxpz -n kube-system
kubectl get replicasets -n kube-system
kubectl delete replicaset tiller-deploy-84fbfc8fcc -n kube-system
kubectl get ServiceAccounts -n kube-system
kubectl delete ServiceAccount tiller -n kube-system
kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'