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