Skip to content

Commit

Permalink
kserve: Update the Models web app (kubeflow#2158)
Browse files Browse the repository at this point in the history
Update the app's manifests to:
1. Work under the /kserve-endpoints prefix
2. Use the correct gatway in the manifests
3. Use the correct namespace in for the app's ConfigMap

Signed-off-by: Kimonas Sotirchos <[email protected]>
  • Loading branch information
kimwnasptd authored and kevin85421 committed Feb 28, 2023
1 parent 8c8d585 commit 5576416
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/kserve/models-web-app/base/istio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: kserve
spec:
gateways:
- $(ingressGateway)
- knative-serving/knative-ingress-gateway
hosts:
- '*'
http:
Expand Down
1 change: 1 addition & 0 deletions contrib/kserve/models-web-app/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ images:
newTag: v0.7.0
configMapGenerator:
- name: kserve-models-web-app-config
namespace: kserve
literals:
- APP_DISABLE_AUTH="True"
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ generatorOptions:
# kserve namespace in webhook configurations
configMapGenerator:
- name: kserve-models-web-app-config
namespace: kserve
behavior: replace
literals:
- USERID_HEADER=kubeflow-userid
- APP_PREFIX=/kserve-endpoints

configurations:
- params.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
- op: replace
path: /spec/gateways
value:
- kubeflow/kubeflow-gateway
- op: replace
path: /spec/http/0/route/0/destination
value:
Expand Down

0 comments on commit 5576416

Please sign in to comment.