blob: 9010bca0c11d412fbd27da1c248c777b768f1bf0 [file] [log] [blame]
kaixiliu099643c2024-07-23 14:52:04 +08001# Copyright © 2022 Huawei Technologies Co., Ltd. All rights reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# Default values for uui llm adaptation.
16# This is a YAML-formatted file.
17# Declare variables to be passed into your templates.
18
19global:
20 passwordStrength: long
21
22#Pods Service Account
23serviceAccount:
24 nameOverride: uui-llm-adaptation
25 roles:
26 - read
27
28secrets:
29 - uid: pg-root-pass
30 name: &pgRootPassSecretName '{{ include "common.release" . }}-uui-adaptation-pg-root-pass'
31 type: password
32 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "uui-adaptation-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}'
33 password: '{{ .Values.postgres.config.pgRootpassword }}'
34 policy: generate
35 - uid: pg-user-creds
36 name: &pgUserCredsSecretName '{{ include "common.release" . }}-uui-adaptation-pg-user-creds'
37 type: basicAuth
38 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "uui-adaptation-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
39 login: '{{ .Values.postgres.config.pgUserName }}'
40 password: '{{ .Values.postgres.config.pgUserPassword }}'
41 passwordPolicy: generate
42
43image: onap/usecase-ui-llm-adaptation:14.0.0
44pullPolicy: Always
45
46# flag to enable debugging - application support required
47debugEnabled: false
48flavor: small
49replicaCount: 1
50nodeSelector: {}
51affinity: {}
52
53service:
54 type: ClusterIP
55 name: uui-llm-adaptation
56 ports:
57 - name: http-rest
58 port: &svc_port 8083
59
60liveness:
61 initialDelaySeconds: 120
62 port: *svc_port
63 periodSeconds: 10
64 enabled: true
65
66readiness:
67 initialDelaySeconds: 60
68 port: *svc_port
69 periodSeconds: 10
70
71# application configuration override for postgres
72postgres:
73 nameOverride: &postgresName uui-adaptation-postgres
74 service:
75 name: *postgresName
76 name2: uui-adaptation-pg-primary
77 name3: uui-adaptation-pg-replica
78 container:
79 name:
80 primary: uui-adaptation-pg-primary
81 replica: uui-adaptation-pg-replica
82 config:
83 pgUserName: uui
84 pgDatabase: uuiadaptation
85 pgUserExternalSecret: *pgUserCredsSecretName
86 pgRootPasswordExternalSecret: *pgRootPassSecretName
87 persistence:
88 mountSubPath: uui/uuiadaptation/data
89 mountInitPath: uui
90
91readinessCheck:
92 wait_for:
93 services:
94 - '{{ .Values.postgres.service.name2 }}'
95
96wait_for_job_container:
97 containers:
98 - '{{ include "common.name" . }}-job'
99
100# We usually recommend not to specify default resources and to leave this as a conscious
101# choice for the user. This also increases chances charts run on environments with little
102# resources, such as Minikube. If you do want to specify resources, uncomment the following
103# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
104#
105# Example:
106# Configure resource requests and limits
107# ref: http://kubernetes.io/docs/user-guide/compute-resources/
108# Minimum memory for development is 2 CPU cores and 4GB memory
109# Minimum memory for production is 4 CPU cores and 8GB memory
110resources:
111 small:
112 limits:
113 cpu: "2"
114 memory: "1Gi"
115 requests:
116 cpu: "1"
117 memory: "200Mi"
118 large:
119 limits:
120 cpu: "4"
121 memory: "2Gi"
122 requests:
123 cpu: "2"
124 memory: "1Gi"
125 unlimited: {}
126