Skip to content

Commit

Permalink
Errors when running imagenet sample (kubeflow#761)
Browse files Browse the repository at this point in the history
* Typo in README.txt INGRESS_GATEWAY is a variable

* Namespace for samples cannot be default namespace

When I apply the imagenet.yaml (kubectl create -f imagenet.yaml), I get the error 
Error from server: error when creating "imagenet.yaml": admission webhook "inferenceservice.kfserving-webhook-server.validator" denied the request: Cannot create the Inferenceservice "imagenet" in namespace "default": the namespace lacks label "serving.kubeflow.org/inferenceservice: enabled"


I guess that the inferenceservice must be applied in the <user_namespace> (as the other samples)
  • Loading branch information
jal06 authored Apr 4, 2020
1 parent ef98fb8 commit 82519b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion docs/samples/explanation/alibi/imagenet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Set up some environment variables for the model name and cluster entrypoint. Use

```
INGRESS_GATEWAY=istio-ingressgateway
export CLUSTER_IP=$(kubectl -n istio-system get service INGRESS_GATEWAY -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
export CLUSTER_IP=$(kubectl -n istio-system get service $INGRESS_GATEWAY -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
```

Test the predictor on an example image:
Expand Down
1 change: 0 additions & 1 deletion docs/samples/explanation/alibi/imagenet/imagenet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: "serving.kubeflow.org/v1alpha2"
kind: "InferenceService"
metadata:
name: "imagenet"
namespace: default
spec:
default:
predictor:
Expand Down

0 comments on commit 82519b1

Please sign in to comment.