You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
By clicking “Sign up for GitHub”, you agree to our
terms of service
and
privacy statement
. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Following #
#2155
, I can create notebooks, tensorbroads and volume over HTTP successfully. But when creating a model server over HTTP, I encountered the error.
[403] Could not find CSRF cookie XSRF-TOKEN in the request.
http://172.16.40.233:30828/kserve-endpoints/api/namespaces/kubeflow-user-example-com/inferenceservices
I added
APP_SECURE_COOKIES=false
in contrib/kserve/models-web-app/overlays/kubeflow/kustomization.yaml, then I can create model servers over HTTP successfully.
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
# Adds namespace to all resources.
namespace: kubeflow
# Labels to add to all resources and selectors.
commonLabels:
app: kserve
app.kubernetes.io/name: kserve
bases:
- ../../base
- web-app-authorization-policy.yaml
patchesStrategicMerge:
- patches/web-app-sidecar.yaml
patchesJson6902:
- target:
group: networking.istio.io
version: v1beta1
kind: VirtualService
name: kserve-models-web-app
namespace: kserve
path: patches/web-app-vsvc.yaml
generatorOptions:
disableNameSuffixHash: true
# To make namespace for standalone installation kustomizable,
# variabalize ingress gateway, webhook service name and
# 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
- APP_SECURE_COOKIES=false
configurations:
- params.yaml