puthuparambil.aditya | f71e365 | 2021-08-18 13:57:24 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # Copyright (c) 2021 Bell Canada. |
efiacor | 9f2a0a0 | 2023-02-20 17:05:30 +0000 | [diff] [blame] | 3 | # Modifications Copyright © 2022-2023 Nordix Foundation |
puthuparambil.aditya | f71e365 | 2021-08-18 13:57:24 +0100 | [diff] [blame] | 4 | # ================================================================================ |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | # |
| 17 | # SPDX-License-Identifier: Apache-2.0 |
| 18 | # ============LICENSE_END========================================================= |
| 19 | |
| 20 | ################################################################# |
| 21 | # Global configuration defaults. |
| 22 | ################################################################# |
| 23 | passwordStrengthOverride: basic |
| 24 | global: |
| 25 | ingress: |
| 26 | virtualhost: |
| 27 | baseurl: "simpledemo.temporal.onap.org" |
| 28 | |
| 29 | secrets: |
| 30 | - uid: pg-user-creds |
| 31 | name: &pgUserCredsSecretName '{{ include "common.release" . }}-cps-temporal-pg-user-creds' |
| 32 | type: basicAuth |
| 33 | externalSecret: '{{ ternary "" (tpl (default "" .Values.timescaledb.config.pgUserExternalSecret) .) (hasSuffix "cps-temporal-pg-user-creds" .Values.timescaledb.config.pgUserExternalSecret) }}' |
| 34 | login: '{{ .Values.timescaledb.config.pgUserName }}' |
| 35 | password: '{{ .Values.timescaledb.config.pgUserPassword }}' |
| 36 | passwordPolicy: generate |
| 37 | - uid: app-user-creds |
| 38 | type: basicAuth |
| 39 | externalSecret: '{{ tpl (default "" .Values.config.appUserExternalSecret) . }}' |
| 40 | login: '{{ .Values.config.appUserName }}' |
| 41 | password: '{{ .Values.config.appUserPassword }}' |
| 42 | passwordPolicy: generate |
| 43 | |
mpriyank | 2641137 | 2022-10-27 12:04:31 +0100 | [diff] [blame] | 44 | image: onap/cps-temporal:1.2.1 |
puthuparambil.aditya | f71e365 | 2021-08-18 13:57:24 +0100 | [diff] [blame] | 45 | containerPort: &svc_port 8080 |
| 46 | managementPort: &mgt_port 8081 |
| 47 | |
| 48 | prometheus: |
Bruno Sakoto | 45ee4f0 | 2021-11-19 19:07:00 -0500 | [diff] [blame] | 49 | enabled: false |
puthuparambil.aditya | f71e365 | 2021-08-18 13:57:24 +0100 | [diff] [blame] | 50 | |
| 51 | service: |
| 52 | type: ClusterIP |
| 53 | name: cps-temporal |
| 54 | ports: |
| 55 | - name: http |
| 56 | port: *svc_port |
| 57 | targetPort: *svc_port |
AndrewLamb | ede4d88 | 2021-09-16 10:22:29 +0100 | [diff] [blame] | 58 | - name: http-management |
puthuparambil.aditya | f71e365 | 2021-08-18 13:57:24 +0100 | [diff] [blame] | 59 | port: *mgt_port |
| 60 | targetPort: *mgt_port |
| 61 | |
| 62 | metrics: |
| 63 | serviceMonitor: |
AndrewLamb | ede4d88 | 2021-09-16 10:22:29 +0100 | [diff] [blame] | 64 | port: http-management |
puthuparambil.aditya | f71e365 | 2021-08-18 13:57:24 +0100 | [diff] [blame] | 65 | ## specify target port if name is not given to the port in the service definition |
| 66 | ## |
| 67 | # targetPort: 8080 |
| 68 | path: /manage/prometheus |
| 69 | interval: 60s |
| 70 | basicAuth: |
| 71 | enabled: false |
| 72 | |
| 73 | pullPolicy: IfNotPresent |
| 74 | # flag to enable debugging - application support required |
| 75 | debugEnabled: false |
| 76 | nodeSelector: {} |
| 77 | affinity: {} |
| 78 | # Resource Limit flavor -By Default using small |
| 79 | flavor: small |
| 80 | # default number of instances |
| 81 | replicaCount: 1 |
| 82 | # Segregation for Different environment (Small and Large) |
| 83 | resources: |
| 84 | small: |
| 85 | limits: |
| 86 | cpu: 2 |
| 87 | memory: 2Gi |
| 88 | requests: |
| 89 | cpu: 1 |
| 90 | memory: 1Gi |
| 91 | large: |
| 92 | limits: |
| 93 | cpu: 4 |
| 94 | memory: 4Gi |
| 95 | requests: |
| 96 | cpu: 2 |
| 97 | memory: 2Gi |
| 98 | unlimited: {} |
| 99 | # probe configuration parameters |
| 100 | liveness: |
| 101 | initialDelaySeconds: 20 |
| 102 | periodSeconds: 20 |
| 103 | # necessary to disable liveness probe when setting breakpoints |
| 104 | # in debugger so K8s doesn't restart unresponsive container |
| 105 | enabled: true |
| 106 | path: /manage/health |
| 107 | port: *mgt_port |
| 108 | |
| 109 | readiness: |
| 110 | initialDelaySeconds: 15 |
| 111 | periodSeconds: 15 |
| 112 | path: /manage/health |
| 113 | port: *mgt_port |
| 114 | |
| 115 | ingress: |
| 116 | enabled: true |
| 117 | service: |
Andreas Geissler | 51900a9 | 2022-08-03 13:10:35 +0200 | [diff] [blame] | 118 | - baseaddr: "cps-temporal-api" |
puthuparambil.aditya | f71e365 | 2021-08-18 13:57:24 +0100 | [diff] [blame] | 119 | path: "/" |
| 120 | name: "cps-temporal" |
| 121 | port: *svc_port |
| 122 | |
| 123 | serviceAccount: |
| 124 | nameOverride: cps-temporal |
| 125 | roles: |
| 126 | - read |
| 127 | |
| 128 | securityContext: |
| 129 | user_id: 100 |
| 130 | group_id: 655533 |
| 131 | |
| 132 | ################################################################# |
| 133 | # Application configuration defaults. |
| 134 | ################################################################# |
| 135 | |
| 136 | config: |
| 137 | # REST API basic authentication credentials (passsword is generated if not provided) |
| 138 | appUserName: cpstemporal |
| 139 | spring: |
| 140 | profile: helm |
| 141 | #appUserPassword: |
efiacor | 23361a3 | 2022-03-14 13:44:02 +0000 | [diff] [blame] | 142 | app: |
| 143 | listener: |
efiacor | 9f2a0a0 | 2023-02-20 17:05:30 +0000 | [diff] [blame] | 144 | dataUpdatedTopic: &dataUpdatedTopic cps.data-updated-events |
Bruno Sakoto | 0673de9 | 2021-09-13 17:25:39 -0400 | [diff] [blame] | 145 | |
puthuparambil.aditya | f71e365 | 2021-08-18 13:57:24 +0100 | [diff] [blame] | 146 | # Any new property can be added in the env by setting in overrides in the format mentioned below |
| 147 | # All the added properties must be in "key: value" format instead of yaml. |
| 148 | # additional: |
| 149 | # spring.config.max-size: 200 |
| 150 | # spring.config.min-size: 10 |
| 151 | |
efiacor | 9f2a0a0 | 2023-02-20 17:05:30 +0000 | [diff] [blame] | 152 | # Strimzi Kafka config |
| 153 | kafkaUser: |
| 154 | authenticationType: scram-sha-512 |
| 155 | acls: |
| 156 | - name: cps-temporal-group |
| 157 | type: group |
| 158 | operations: [Read] |
| 159 | - name: *dataUpdatedTopic |
| 160 | type: topic |
| 161 | operations: [Read] |
| 162 | |
| 163 | kafkaTopic: |
| 164 | - name: *dataUpdatedTopic |
| 165 | # default values below can be overridden |
| 166 | retentionMs: 7200000 |
| 167 | segmentBytes: 1073741824 |
| 168 | |
puthuparambil.aditya | f71e365 | 2021-08-18 13:57:24 +0100 | [diff] [blame] | 169 | logging: |
| 170 | level: INFO |
| 171 | path: /tmp |
| 172 | |
| 173 | timescaledb: |
| 174 | nameOverride: cps-temporal-db |
| 175 | container: |
| 176 | name: cps-temporal-db |
| 177 | name: cpstemporaldb |
| 178 | service: |
| 179 | name: cps-temporal-db |
| 180 | persistence: |
| 181 | mountSubPath: cps-temporal/data |
| 182 | mountInitPath: cps-temporal |
| 183 | config: |
| 184 | pgUserName: cpstemporaldb |
| 185 | pgDatabase: cpstemporaldb |
| 186 | pgUserExternalSecret: *pgUserCredsSecretName |
| 187 | serviceAccount: |
| 188 | nameOverride: cps-temporal-db |
| 189 | |
| 190 | readinessCheck: |
| 191 | wait_for: |
| 192 | - cps-temporal-db |
| 193 | |
| 194 | minReadySeconds: 10 |
| 195 | updateStrategy: |
| 196 | type: RollingUpdate |
| 197 | maxUnavailable: 0 |
| 198 | maxSurge: 1 |