|
| 1 | +# Source: llm-uservice/charts/tgi/templates/service.yaml |
| 2 | +# Copyright (C) 2024 Intel Corporation |
| 3 | +# SPDX-License-Identifier: Apache-2.0 |
| 4 | + |
| 5 | +apiVersion: v1 |
| 6 | +kind: Service |
| 7 | +metadata: |
| 8 | + name: docsum-llm-uservice |
| 9 | + labels: |
| 10 | + helm.sh/chart: llm-uservice-0.1.0 |
| 11 | + app.kubernetes.io/name: llm-uservice |
| 12 | + app.kubernetes.io/instance: docsum |
| 13 | + app.kubernetes.io/version: "1.0.0" |
| 14 | + app.kubernetes.io/managed-by: Helm |
| 15 | +spec: |
| 16 | + type: ClusterIP |
| 17 | + ports: |
| 18 | + - port: 9000 |
| 19 | + targetPort: 9000 |
| 20 | + protocol: TCP |
| 21 | + name: llm-uservice |
| 22 | + selector: |
| 23 | + app.kubernetes.io/name: llm-uservice |
| 24 | + app.kubernetes.io/instance: docsum |
| 25 | +--- |
| 26 | +# Source: llm-uservice/templates/deployment.yaml |
| 27 | +# Copyright (C) 2024 Intel Corporation |
| 28 | +# SPDX-License-Identifier: Apache-2.0 |
| 29 | + |
| 30 | +apiVersion: apps/v1 |
| 31 | +kind: Deployment |
| 32 | +metadata: |
| 33 | + name: docsum-llm-uservice |
| 34 | + labels: |
| 35 | + helm.sh/chart: llm-uservice-0.1.0 |
| 36 | + app.kubernetes.io/name: llm-uservice |
| 37 | + app.kubernetes.io/instance: docsum |
| 38 | + app.kubernetes.io/version: "1.0.0" |
| 39 | + app.kubernetes.io/managed-by: Helm |
| 40 | +spec: |
| 41 | + replicas: 1 |
| 42 | + selector: |
| 43 | + matchLabels: |
| 44 | + app.kubernetes.io/name: llm-uservice |
| 45 | + app.kubernetes.io/instance: docsum |
| 46 | + template: |
| 47 | + metadata: |
| 48 | + labels: |
| 49 | + app.kubernetes.io/name: llm-uservice |
| 50 | + app.kubernetes.io/instance: docsum |
| 51 | + spec: |
| 52 | + securityContext: {} |
| 53 | + containers: |
| 54 | + - name: docsum |
| 55 | + envFrom: |
| 56 | + - configMapRef: |
| 57 | + name: qna-config |
| 58 | + env: |
| 59 | + - name: HUGGING_FACE_HUB_TOKEN |
| 60 | + value: $(HUGGINGFACEHUB_API_TOKEN) |
| 61 | + - name: HF_TOKEN |
| 62 | + value: $(HUGGINGFACEHUB_API_TOKEN) |
| 63 | + - name: LANGCHAIN_TRACING_V2 |
| 64 | + value: "false" |
| 65 | + - name: LANGCHAIN_PROJECT |
| 66 | + value: "opea-llm-service" |
| 67 | + securityContext: {} |
| 68 | + image: "opea/llm-docsum-tgi:latest" |
| 69 | + imagePullPolicy: IfNotPresent |
| 70 | + ports: |
| 71 | + - name: llm-uservice |
| 72 | + containerPort: 9000 |
| 73 | + protocol: TCP |
| 74 | + resources: {} |
0 commit comments