blob: 457ba5a72dfe33898036328ae6716da97211553e [file] [log] [blame]
xudan16c7f36a62022-07-21 17:27:14 +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 intent analysis.
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-intent-analysis
25 roles:
26 - read
27
28secrets:
29 - uid: pg-root-pass
30 name: &pgRootPassSecretName '{{ include "common.release" . }}-uui-intent-pg-root-pass'
31 type: password
32 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "uui-intent-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-intent-pg-user-creds'
37 type: basicAuth
38 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "uui-intent-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
39 login: '{{ .Values.postgres.config.pgUserName }}'
40 password: '{{ .Values.postgres.config.pgUserPassword }}'
41 passwordPolicy: generate
42
kaixiliu3a837082023-06-15 15:54:40 +080043image: onap/usecase-ui-intent-analysis:5.2.2
xudan16c7f36a62022-07-21 17:27:14 +080044pullPolicy: 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-intent-analysis
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-intent-postgres
74 service:
75 name: *postgresName
76 name2: uui-intent-pg-primary
77 name3: uui-intent-pg-replica
78 container:
79 name:
80 primary: uui-intent-pg-primary
81 replica: uui-intent-pg-replica
82 config:
83 pgUserName: uui
84 pgDatabase: uuiintdb
85 pgUserExternalSecret: *pgUserCredsSecretName
86 pgRootPasswordExternalSecret: *pgRootPassSecretName
87 persistence:
88 mountSubPath: uui/uuiintent/data
89 mountInitPath: uui
90
91readinessCheck:
92 wait_for:
93 containers:
94 - *postgresName
95
Andreas Geissler22f3b162023-02-07 13:10:01 +010096wait_for_job_container:
97 containers:
98 - '{{ include "common.name" . }}-job'
99
xudan16c7f36a62022-07-21 17:27:14 +0800100# 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: 200m
114 memory: 500Mi
115 requests:
116 cpu: 100m
117 memory: 250Mi
118 large:
119 limits:
120 cpu: 400m
121 memory: 1000Mi
122 requests:
123 cpu: 200m
124 memory: 500Mi
125 unlimited: {}