opea-project / GenAIExamples

Generative AI Examples is a collection of GenAI examples such as ChatQnA, Copilot, which illustrate the pipeline capabilities of the Open Platform for Enterprise AI (OPEA) project.
https://opea.dev
Apache License 2.0
274 stars 191 forks source link

[Bug]ChatQnA - K8s - UI port is incorrect in chatqna.yaml #883

Open pallavijaini0525 opened 1 month ago

pallavijaini0525 commented 1 month ago

Priority

P3-Medium

OS type

Ubuntu

Hardware type

Gaudi2

Installation method

Deploy method

Running nodes

Single Node

What's the version?

latest

Description

https://github.com/opea-project/GenAIExamples/blob/main/ChatQnA/kubernetes/intel/hpu/gaudi/manifest/chatqna.yaml#L286 - Traget Port number for chatqna-ui is given as ui, which is causing the nginx not to open the UI. After changing the port to 5173, it is working as expected. Same issue observed for xeon as well.

Reproduce steps

Execute /deploy the https://github.com/opea-project/GenAIExamples/blob/main/ChatQnA/kubernetes/intel/hpu/gaudi/manifest/chatqna.yaml and access the NGINX port in browser

Raw log

No response

devpramod commented 1 month ago

@kevinintel The issue can be reproduced The reason is that container port for UI is set to 80 but should be 5173

containers:
        - name: chatqna-ui
          securityContext:
            {}
          image: "opea/chatqna-ui:latest"
          imagePullPolicy: IfNotPresent
          ports:
            - name: ui
              containerPort: 80
              protocol: TCP
          resources:
            {}
          volumeMounts:
            - mountPath: /tmp
              name: tmp
      volumes:
        - name: tmp
          emptyDir: {}
letonghan commented 1 month ago

Thanks @preethivenkatesh and @devpramod, we will check it again and fix this issue these days. Any progress will be updated here. Thank you.

WenjiaoYue commented 1 month ago

Thanks @preethivenkatesh and @devpramod, we have updated the containerPort. The latest version relies on the backend's no-wrapper image, which will be uploaded in the next couple of days, and then it can be used normally. Thank you for the reminder. If you have any issues, please feel free to contact us anytime..

xiguiw commented 1 week ago

@pallavijaini0525 @devpramod

What's the status now. Could this be closed?