Bruno Sakoto | c27240b | 2021-03-08 17:59:44 -0500 | [diff] [blame] | 1 | # Copyright (C) 2021 Pantheon.tech, Orange, Bell Canada. |
puthuparambil.aditya | 7625e52 | 2021-01-22 22:01:50 +0100 | [diff] [blame] | 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 | ################################################################# |
| 16 | # Secrets. |
| 17 | ################################################################# |
| 18 | secrets: |
| 19 | - uid: pg-root-pass |
| 20 | name: &pgRootPassSecretName '{{ include "common.release" . }}-cps-pg-root-pass' |
| 21 | type: password |
| 22 | externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "cps-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}' |
| 23 | password: '{{ .Values.postgres.config.pgRootpassword }}' |
| 24 | policy: generate |
| 25 | - uid: pg-user-creds |
| 26 | name: &pgUserCredsSecretName '{{ include "common.release" . }}-cps-pg-user-creds' |
| 27 | type: basicAuth |
| 28 | externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "cps-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}' |
| 29 | login: '{{ .Values.postgres.config.pgUserName }}' |
| 30 | password: '{{ .Values.postgres.config.pgUserPassword }}' |
| 31 | passwordPolicy: generate |
Bruno Sakoto | c27240b | 2021-03-08 17:59:44 -0500 | [diff] [blame] | 32 | - uid: app-user-creds |
| 33 | type: basicAuth |
| 34 | externalSecret: '{{ tpl (default "" .Values.config.appUserExternalSecret) . }}' |
| 35 | login: '{{ .Values.config.appUserName }}' |
| 36 | password: '{{ .Values.config.appUserPassword }}' |
| 37 | passwordPolicy: generate |
puthuparambil.aditya | 7625e52 | 2021-01-22 22:01:50 +0100 | [diff] [blame] | 38 | |
| 39 | ################################################################# |
| 40 | # Global configuration defaults. |
| 41 | ################################################################# |
| 42 | |
| 43 | # bitnami image doesn't support well single quote in password |
| 44 | passwordStrengthOverride: basic |
| 45 | global: |
| 46 | ingress: |
| 47 | virtualhost: |
| 48 | baseurl: "simpledemo.onap.org" |
| 49 | |
puthuparambil.aditya | f9908a4 | 2021-04-12 15:29:38 +0100 | [diff] [blame] | 50 | image: onap/cps-and-nf-proxy:1.0.1 |
puthuparambil.aditya | 7625e52 | 2021-01-22 22:01:50 +0100 | [diff] [blame] | 51 | containerPort: &svc_port 8080 |
| 52 | |
| 53 | service: |
| 54 | type: ClusterIP |
| 55 | name: cps |
| 56 | ports: |
| 57 | - name: &port http |
| 58 | port: *svc_port |
| 59 | |
| 60 | pullPolicy: Always |
| 61 | # flag to enable debugging - application support required |
| 62 | debugEnabled: false |
| 63 | nodeSelector: {} |
| 64 | affinity: {} |
| 65 | # Resource Limit flavor -By Default using small |
| 66 | flavor: small |
| 67 | # default number of instances |
| 68 | replicaCount: 1 |
| 69 | # Segregation for Different environment (Small and Large) |
| 70 | resources: |
| 71 | small: |
| 72 | limits: |
| 73 | cpu: 2 |
| 74 | memory: 2Gi |
| 75 | requests: |
| 76 | cpu: 1 |
| 77 | memory: 1Gi |
| 78 | large: |
| 79 | limits: |
| 80 | cpu: 4 |
| 81 | memory: 4Gi |
| 82 | requests: |
| 83 | cpu: 2 |
| 84 | memory: 2Gi |
| 85 | unlimited: {} |
| 86 | # probe configuration parameters |
| 87 | liveness: |
| 88 | initialDelaySeconds: 20 |
| 89 | periodSeconds: 20 |
| 90 | # necessary to disable liveness probe when setting breakpoints |
| 91 | # in debugger so K8s doesn't restart unresponsive container |
| 92 | enabled: true |
| 93 | path: /manage/health |
| 94 | port: *port |
| 95 | |
| 96 | readiness: |
| 97 | initialDelaySeconds: 15 |
| 98 | periodSeconds: 15 |
| 99 | path: /manage/health |
| 100 | port: *port |
| 101 | |
| 102 | ingress: |
| 103 | enabled: true |
| 104 | service: |
| 105 | - baseaddr: "cps" |
| 106 | path: "/" |
| 107 | name: "cps" |
| 108 | port: *svc_port |
| 109 | |
| 110 | serviceAccount: |
| 111 | nameOverride: cps |
| 112 | roles: |
| 113 | - read |
| 114 | |
| 115 | securityContext: |
| 116 | user_id: 100 |
| 117 | group_id: 655533 |
| 118 | |
| 119 | ################################################################# |
| 120 | # Application configuration defaults. |
| 121 | ################################################################# |
Bruno Sakoto | c27240b | 2021-03-08 17:59:44 -0500 | [diff] [blame] | 122 | |
| 123 | config: |
| 124 | |
| 125 | # Set it for pre loading xnfdata, else set to null |
| 126 | liquibaseLabels: xnf-data-preload |
| 127 | |
| 128 | # REST API basic authentication credentials (passsword is generated if not provided) |
| 129 | appUserName: cpsuser |
Renu Kumari | 5a47eaf | 2021-04-12 08:36:27 -0400 | [diff] [blame] | 130 | spring: |
| 131 | profile: helm |
Bruno Sakoto | c27240b | 2021-03-08 17:59:44 -0500 | [diff] [blame] | 132 | #appUserPassword: |
| 133 | |
Renu Kumari | 5a47eaf | 2021-04-12 08:36:27 -0400 | [diff] [blame] | 134 | # Any new property can be added in the env by setting in overrides in the format mentioned below |
| 135 | # All the added properties must be in "key: value" format insead of yaml. |
| 136 | # additional: |
| 137 | # spring.config.max-size: 200 |
| 138 | # spring.config.min-size: 10 |
| 139 | |
puthuparambil.aditya | 7625e52 | 2021-01-22 22:01:50 +0100 | [diff] [blame] | 140 | logging: |
| 141 | level: INFO |
| 142 | path: /tmp |
Bruno Sakoto | c27240b | 2021-03-08 17:59:44 -0500 | [diff] [blame] | 143 | |
puthuparambil.aditya | 7625e52 | 2021-01-22 22:01:50 +0100 | [diff] [blame] | 144 | ################################################################# |
| 145 | # Postgres overriding defaults in the postgres |
| 146 | ################################################################# |
| 147 | postgres: |
| 148 | nameOverride: &postgresName cps-postgres |
| 149 | service: |
| 150 | name: *postgresName |
| 151 | name2: cps-pg-primary |
| 152 | name3: cps-pg-replica |
| 153 | container: |
| 154 | name: |
| 155 | primary: cps-pg-primary |
| 156 | replica: cps-pg-replica |
| 157 | persistence: |
| 158 | mountSubPath: cps/data |
| 159 | mountInitPath: cps |
| 160 | config: |
| 161 | pgUserName: cps |
| 162 | pgDatabase: cpsdb |
| 163 | pgUserExternalSecret: *pgUserCredsSecretName |
| 164 | pgRootPasswordExternalSecret: *pgRootPassSecretName |
| 165 | |
| 166 | readinessCheck: |
| 167 | wait_for: |
Rishi.Chail | 7b30745 | 2021-03-05 12:11:01 +0000 | [diff] [blame] | 168 | - cps-postgres |