# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

---
apiVersion: v1
kind: Service
metadata:
  name: productivity-suite-react-ui
  labels:
    helm.sh/chart: productivity-suite-react-ui-0.1.0
    app.kubernetes.io/name: react-ui
    app.kubernetes.io/instance: productivity-suite
    app.kubernetes.io/version: "1.0.0"
    app.kubernetes.io/managed-by: Helm
spec:
  type: ClusterIP
  ports:
    - port: 80
      targetPort: 80
      protocol: TCP
      name: react-ui
  selector:
    app.kubernetes.io/name: react-ui
    app.kubernetes.io/instance: productivity-suite
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: productivity-suite-react-ui
  labels:
    helm.sh/chart: productivity-suite-react-ui-0.1.0
    app.kubernetes.io/name: react-ui
    app.kubernetes.io/instance: productivity-suite
    app.kubernetes.io/version: "1.0.0"
    app.kubernetes.io/managed-by: Helm
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: react-ui
      app.kubernetes.io/instance: productivity-suite
  template:
    metadata:
      labels:
        app.kubernetes.io/name: react-ui
        app.kubernetes.io/instance: productivity-suite
    spec:
      securityContext: null
      containers:
        - name: productivity-suite-react-ui
          env:
            - name: http_proxy
              value: ""
            - name: https_proxy
              value: ""
            - name: no_proxy
              value: ""
            - name: APP_BACKEND_SERVICE_ENDPOINT_CHATQNA
              value: ""
            - name: APP_BACKEND_SERVICE_ENDPOINT_CODEGEN
              value: ""
            - name: APP_BACKEND_SERVICE_ENDPOINT_DOCSUM
              value: ""
            - name: APP_BACKEND_SERVICE_ENDPOINT_FAQGEN
              value: ""
            - name: APP_DATAPREP_SERVICE_ENDPOINT
              value: ""
            - name: APP_DATAPREP_GET_FILE_ENDPOINT
              value: ""
            - name: APP_DATAPREP_DELETE_FILE_ENDPOINT
              value: ""
            - name: APP_CHAT_HISTORY_CREATE_ENDPOINT
              value: ""
            - name: APP_CHAT_HISTORY_DELETE_ENDPOINT
              value: ""
            - name: APP_CHAT_HISTORY_GET_ENDPOINT
              value: ""
            - name: APP_PROMPT_SERVICE_GET_ENDPOINT
              value: ""
            - name: APP_PROMPT_SERVICE_CREATE_ENDPOINT
              value: ""
            - name: APP_KEYCLOAK_SERVICE_ENDPOINT
              value: ""
          securityContext: null
          image: "opea/productivity-suite-react-ui-server:latest"
          imagePullPolicy: IfNotPresent
          ports:
            - name: react-ui
              containerPort: 80
              protocol: TCP
          resources: null
