tencentmusic / cube-studio

cube studio开源云原生一站式机器学习/深度学习/大模型AI平台,支持sso登录,多租户,大数据平台对接,notebook在线开发,拖拉拽任务流pipeline编排,多机多卡分布式训练,超参搜索,推理服务VGPU,边缘计算,serverless,标注平台,自动化标注,数据集管理,大模型微调,vllm大模型推理,llmops,私有知识库,AI模型应用商店,支持模型一键开发/推理/微调,支持国产cpu/gpu/npu芯片,支持RDMA,支持pytorch/tf/mxnet/deepspeed/paddle/colossalai/horovod/spark/ray/volcano分布式
Other
3.45k stars 610 forks source link

4.1号版本 在线开发生成vs规则后导致整个访问都是404 #196

Closed lkad closed 1 year ago

lkad commented 1 year ago

生成jyputer后新增了一条vs的规则后,访问整个cube-studio都是404 下面是新增的规则.

apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: notebook-jupyter-admin-a2eb
  namespace: jupyter
spec:
  gateways:
    - kubeflow/kubeflow-gateway
  hosts:
    - xxx.xxx.xxx.xxx
  http:
    - match:
        - uri:
            prefix: /notebook/jupyter/admin-a2eb/
      rewrite:
        uri: /
      route:
        - destination:
            host: admin-a2eb.jupyter.svc.cluster.local
            port:
              number: 3000
      timeout: 300s

原始dashboard的规则。

apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: >
      {"apiVersion":"networking.istio.io/v1alpha3","kind":"VirtualService","metadata":{"annotations":{},"name":"infra-kubeflow-dashboard","namespace":"infra"},"spec":{"gateways":["kubeflow/kubeflow-gateway"],"hosts":["*"],"http":[{"route":[{"destination":{"host":"kubeflow-dashboard-frontend.infra.svc.cluster.local","port":{"number":80}}}]}]}}
  name: infra-kubeflow-dashboard
  namespace: infra
spec:
  gateways:
    - kubeflow/kubeflow-gateway
  hosts:
    - '*'
  http:
    - route:
        - destination:
            host: kubeflow-dashboard-frontend.infra.svc.cluster.local
            port:
              number: 80
lkad commented 1 year ago

将上面的 hosts: