Port-forward to that ingress on localhost:8003 in a separate terminal either with:
- Ambassador:
kubectl port-forward $(kubectl get pods -n seldon -l app.kubernetes.io/name=ambassador -o jsonpath='{.items[0].metadata.name}') -n seldon 8003:8080 - Istio:
kubectl port-forward $(kubectl get pods -l istio=ingressgateway -n istio-system -o jsonpath='{.items[0].metadata.name}') -n istio-system 8003:8080
!kubectl create namespace seldon!kubectl config set-context $(kubectl config current-context) --namespace=seldon!cat tin-model-tout.yaml!kubectl create -f tin-model-tout.yaml!kubectl wait --for condition=ready --timeout=300s sdep --all -n seldon!curl -s -d '{"data": {"ndarray":[[1.0, 2.0, 5.0]]}}' \
-X POST http://localhost:8003/seldon/seldon/test/api/v1.0/predictions \
-H "Content-Type: application/json"!kubectl delete -f tin-model-tout.yaml!cat tin-model-tout-sep-pods.yaml!kubectl create -f tin-model-tout-sep-pods.yaml!kubectl wait --for condition=ready --timeout=300s sdep --all -n seldon!curl -s -d '{"data": {"ndarray":[[1.0, 2.0, 5.0]]}}' \
-X POST http://localhost:8003/seldon/seldon/test/api/v1.0/predictions \
-H "Content-Type: application/json"!kubectl delete -f tin-model-tout-sep-pods.yaml!cat tin-model-tout-sep-svcorch.yaml!kubectl create -f tin-model-tout-sep-svcorch.yaml!kubectl wait --for condition=ready --timeout=300s sdep --all -n seldon!curl -s -d '{"data": {"ndarray":[[1.0, 2.0, 5.0]]}}' \
-X POST http://localhost:8003/seldon/seldon/test/api/v1.0/predictions \
-H "Content-Type: application/json"!kubectl delete -f tin-model-tout-sep-svcorch.yaml!cat combiner-sep-pods.yaml!kubectl create -f combiner-sep-pods.yaml!kubectl wait --for condition=ready --timeout=300s sdep --all -n seldon!curl -s -d '{"data": {"ndarray":[[1.0, 2.0, 5.0]]}}' \
-X POST http://localhost:8003/seldon/seldon/test/api/v1.0/predictions \
-H "Content-Type: application/json"!kubectl delete -f combiner-sep-pods.yaml!cat combiner.yaml!kubectl create -f combiner.yaml!kubectl wait --for condition=ready --timeout=300s sdep --all -n seldon!curl -s -d '{"data": {"ndarray":[[1.0, 2.0, 5.0]]}}' \
-X POST http://localhost:8003/seldon/seldon/test/api/v1.0/predictions \
-H "Content-Type: application/json"!kubectl delete -f combiner.yaml!cat combiner-prepack-sep-pods.yaml!kubectl create -f combiner-prepack-sep-pods.yaml!kubectl wait --for condition=ready --timeout=300s sdep --all -n seldon!curl -s -d '{"data": {"ndarray":[[1.0, 2.0, 5.0, 1.0]]}}' \
-X POST http://localhost:8003/seldon/seldon/test/api/v1.0/predictions \
-H "Content-Type: application/json"!kubectl delete -f combiner-sep-pods.yaml!cat combiner-prepack.yaml!kubectl create -f combiner-prepack.yaml!kubectl wait --for condition=ready --timeout=300s sdep --all -n seldon!curl -s -d '{"data": {"ndarray":[[1.0, 2.0, 5.0, 1.0]]}}' \
-X POST http://localhost:8003/seldon/seldon/test/api/v1.0/predictions \
-H "Content-Type: application/json"!kubectl delete -f combiner-sep-pods.yaml