xudan16 | c7f36a6 | 2022-07-21 17:27:14 +0800 | [diff] [blame] | 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 | |
kaixiliu | 55743b4 | 2023-06-28 18:59:01 +0800 | [diff] [blame] | 43 | image: onap/usecase-ui-intent-analysis:5.2.4 |
xudan16 | c7f36a6 | 2022-07-21 17:27:14 +0800 | [diff] [blame] | 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 | |
Andreas Geissler | 22f3b16 | 2023-02-07 13:10:01 +0100 | [diff] [blame] | 96 | wait_for_job_container: |
| 97 | containers: |
| 98 | - '{{ include "common.name" . }}-job' |
| 99 | |
xudan16 | c7f36a6 | 2022-07-21 17:27:14 +0800 | [diff] [blame] | 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 |
| 110 | resources: |
| 111 | small: |
| 112 | limits: |
| 113 | cpu: 200m |
Andreas Geissler | 531941e | 2023-06-15 16:44:51 +0200 | [diff] [blame] | 114 | memory: 1Gi |
xudan16 | c7f36a6 | 2022-07-21 17:27:14 +0800 | [diff] [blame] | 115 | requests: |
| 116 | cpu: 100m |
| 117 | memory: 250Mi |
| 118 | large: |
| 119 | limits: |
| 120 | cpu: 400m |
Andreas Geissler | 531941e | 2023-06-15 16:44:51 +0200 | [diff] [blame] | 121 | memory: 1Gi |
xudan16 | c7f36a6 | 2022-07-21 17:27:14 +0800 | [diff] [blame] | 122 | requests: |
| 123 | cpu: 200m |
| 124 | memory: 500Mi |
| 125 | unlimited: {} |