Merge "[UUI] Service Mesh Compliance for UUI"
[oom.git] / kubernetes / uui / components / uui-intent-analysis / values.yaml
1 # 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
19 global:
20   passwordStrength: long
21
22 #Pods Service Account
23 serviceAccount:
24   nameOverride: uui-intent-analysis
25   roles:
26     - read
27
28 secrets:
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
43 image: onap/usecase-ui-intent-analysis:5.1.1
44 pullPolicy: Always
45
46 # flag to enable debugging - application support required
47 debugEnabled: false
48 flavor: small
49 replicaCount: 1
50 nodeSelector: {}
51 affinity: {}
52
53 service:
54   type: ClusterIP
55   name: uui-intent-analysis
56   ports:
57   - name: http-rest
58     port: &svc_port 8083
59
60 liveness:
61   initialDelaySeconds: 120
62   port: *svc_port
63   periodSeconds: 10
64   enabled: true
65
66 readiness:
67   initialDelaySeconds: 60
68   port: *svc_port
69   periodSeconds: 10
70
71 # application configuration override for postgres
72 postgres:
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
91 readinessCheck:
92   wait_for:
93     containers:
94       - *postgresName
95
96 # We usually recommend not to specify default resources and to leave this as a conscious
97 # choice for the user. This also increases chances charts run on environments with little
98 # resources, such as Minikube. If you do want to specify resources, uncomment the following
99 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
100 #
101 # Example:
102 # Configure resource requests and limits
103 # ref: http://kubernetes.io/docs/user-guide/compute-resources/
104 # Minimum memory for development is 2 CPU cores and 4GB memory
105 # Minimum memory for production is 4 CPU cores and 8GB memory
106 resources:
107   small:
108     limits:
109       cpu: 200m
110       memory: 500Mi
111     requests:
112       cpu: 100m
113       memory: 250Mi
114   large:
115     limits:
116       cpu: 400m
117       memory: 1000Mi
118     requests:
119       cpu: 200m
120       memory: 500Mi
121   unlimited: {}