Mandeep Khinda | 51a8b1b | 2018-04-24 20:05:32 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
toshrajbhardwaj | f4fc1c6 | 2018-08-06 07:35:14 +0000 | [diff] [blame] | 2 | # Modifications Copyright © 2018 AT&T, ZTE |
Mandeep Khinda | 51a8b1b | 2018-04-24 20:05:32 +0000 | [diff] [blame] | 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 | ################################################################# |
| 17 | # Global configuration defaults. |
| 18 | ################################################################# |
| 19 | global: |
| 20 | nodePortPrefix: 302 |
ChrisC | 742a7b2 | 2020-09-04 11:29:57 +0200 | [diff] [blame] | 21 | aafEnabled: true |
| 22 | persistence: {} |
Andreas Geissler | fd450c4 | 2021-12-10 08:36:45 +0000 | [diff] [blame] | 23 | sdc_cassandra: |
ChrisC | 742a7b2 | 2020-09-04 11:29:57 +0200 | [diff] [blame] | 24 | #This flag allows SDC to instantiate its own cluster, serviceName |
| 25 | #should be sdc-cs if this flag is enabled |
| 26 | localCluster: false |
| 27 | #The cassandra service name to connect to (default: shared cassandra service) |
| 28 | serviceName: cassandra |
| 29 | #Shared cassandra cluster replicaCount, should be changed if localCluster is enabled |
| 30 | #to match with its own cluster replica |
| 31 | replicaCount: 3 |
| 32 | clusterName: cassandra |
| 33 | dataCenter: Pod |
| 34 | |
| 35 | ################################################################# |
| 36 | # AAF Part |
| 37 | ################################################################# |
| 38 | certInitializer: |
| 39 | nameOverride: sdc-onboarding-be-cert-init |
| 40 | aafDeployFqi: deployer@people.osaaf.org |
| 41 | aafDeployPass: demo123456! |
| 42 | fqdn: sdc |
| 43 | fqi: sdc@sdc.onap.org |
| 44 | public_fqdn: sdc.onap.org |
| 45 | cadi_longitude: "0.0" |
| 46 | cadi_latitude: "0.0" |
| 47 | app_ns: org.osaaf.aaf |
| 48 | credsPath: /opt/app/osaaf/local |
| 49 | addconfig: true |
| 50 | keystoreFile: "org.onap.sdc.p12" |
| 51 | truststoreFile: "org.onap.sdc.trust.jks" |
| 52 | permission_user: 352070 |
| 53 | permission_group: 35953 |
Sylvain Desbureaux | 575743d | 2021-02-23 16:38:07 +0100 | [diff] [blame] | 54 | aaf_add_config: | |
| 55 | echo "cadi_keystore_password_p12=$cadi_keystore_password_p12" > {{ .Values.credsPath }}/mycreds.prop |
| 56 | echo "cadi_truststore_password=$cadi_truststore_password" >> {{ .Values.credsPath }}/mycreds.prop |
Mandeep Khinda | 51a8b1b | 2018-04-24 20:05:32 +0000 | [diff] [blame] | 57 | |
| 58 | ################################################################# |
| 59 | # Application configuration defaults. |
| 60 | ################################################################# |
| 61 | # application image |
MichaelMorris | 687f528 | 2022-08-10 16:13:25 +0100 | [diff] [blame] | 62 | image: onap/sdc-onboard-backend:1.11.6 |
| 63 | onboardingInitImage: onap/sdc-onboard-cassandra-init:1.11.6 |
Mandeep Khinda | 51a8b1b | 2018-04-24 20:05:32 +0000 | [diff] [blame] | 64 | pullPolicy: Always |
| 65 | |
| 66 | # flag to enable debugging - application support required |
| 67 | debugEnabled: false |
| 68 | |
| 69 | config: |
r.bogacki | b17ce79 | 2019-09-03 10:23:24 +0200 | [diff] [blame] | 70 | javaOptions: "-Xmx1g -Xms1g" |
Mandeep Khinda | 51a8b1b | 2018-04-24 20:05:32 +0000 | [diff] [blame] | 71 | cassandraSslEnabled: "false" |
| 72 | |
ChrisC | 742a7b2 | 2020-09-04 11:29:57 +0200 | [diff] [blame] | 73 | #environment file |
| 74 | env: |
| 75 | name: AUTO |
| 76 | |
Mandeep Khinda | 51a8b1b | 2018-04-24 20:05:32 +0000 | [diff] [blame] | 77 | # default number of instances |
| 78 | replicaCount: 1 |
| 79 | |
| 80 | nodeSelector: {} |
| 81 | |
| 82 | affinity: {} |
| 83 | |
| 84 | # probe configuration parameters |
| 85 | liveness: |
Sylvain Desbureaux | 8c9416b | 2021-05-05 11:12:48 +0200 | [diff] [blame] | 86 | initialDelaySeconds: 1 |
| 87 | periodSeconds: 10 |
Brian Freeman | 6142d94 | 2019-10-02 09:50:19 -0500 | [diff] [blame] | 88 | timeoutSeconds: 15 |
Sylvain Desbureaux | 8c9416b | 2021-05-05 11:12:48 +0200 | [diff] [blame] | 89 | successThreshold: 1 |
| 90 | failureThreshold: 3 |
Mandeep Khinda | 51a8b1b | 2018-04-24 20:05:32 +0000 | [diff] [blame] | 91 | # necessary to disable liveness probe when setting breakpoints |
| 92 | # in debugger so K8s doesn't restart unresponsive container |
| 93 | enabled: true |
| 94 | |
| 95 | readiness: |
Sylvain Desbureaux | 8c9416b | 2021-05-05 11:12:48 +0200 | [diff] [blame] | 96 | initialDelaySeconds: 1 |
| 97 | periodSeconds: 10 |
Brian Freeman | 6142d94 | 2019-10-02 09:50:19 -0500 | [diff] [blame] | 98 | timeoutSeconds: 15 |
Sylvain Desbureaux | 8c9416b | 2021-05-05 11:12:48 +0200 | [diff] [blame] | 99 | successThreshold: 1 |
| 100 | failureThreshold: 3 |
| 101 | |
| 102 | startup: |
| 103 | initialDelaySeconds: 10 |
| 104 | periodSeconds: 10 |
| 105 | timeoutSeconds: 15 |
| 106 | successThreshold: 1 |
| 107 | failureThreshold: 60 |
Mandeep Khinda | 51a8b1b | 2018-04-24 20:05:32 +0000 | [diff] [blame] | 108 | |
| 109 | service: |
| 110 | type: ClusterIP |
| 111 | name: sdc-onboarding-be |
othman touijer | 2b764d0 | 2022-01-05 14:40:37 +0100 | [diff] [blame] | 112 | portName: http |
Mandeep Khinda | 51a8b1b | 2018-04-24 20:05:32 +0000 | [diff] [blame] | 113 | internalPort: 8445 |
| 114 | externalPort: 8445 |
othman touijer | 2b764d0 | 2022-01-05 14:40:37 +0100 | [diff] [blame] | 115 | |
Mandeep Khinda | 51a8b1b | 2018-04-24 20:05:32 +0000 | [diff] [blame] | 116 | internalPort2: 8081 |
| 117 | externalPort2: 8081 |
| 118 | |
| 119 | ## Persist data to a persitent volume |
| 120 | persistence: |
| 121 | enabled: true |
| 122 | |
| 123 | ## A manually managed Persistent Volume and Claim |
| 124 | ## Requires persistence.enabled: true |
| 125 | ## If defined, PVC must be created manually before volume will be bound |
| 126 | # existingClaim: |
| 127 | volumeReclaimPolicy: Retain |
| 128 | |
| 129 | ## database data Persistent Volume Storage Class |
| 130 | ## If defined, storageClassName: <storageClass> |
| 131 | ## If set to "-", storageClassName: "", which disables dynamic provisioning |
| 132 | ## If undefined (the default) or set to null, no storageClassName spec is |
| 133 | ## set, choosing the default provisioner. (gp2 on AWS, standard on |
| 134 | ## GKE, AWS & OpenStack) |
| 135 | ## |
| 136 | # storageClass: "-" |
Sylvain Desbureaux | 71a9fb3 | 2019-09-02 15:50:28 +0200 | [diff] [blame] | 137 | accessMode: ReadWriteOnce |
Mandeep Khinda | 51a8b1b | 2018-04-24 20:05:32 +0000 | [diff] [blame] | 138 | size: 2Gi |
| 139 | mountPath: /dockerdata-nfs |
| 140 | mountSubPath: /sdc/sdc-cs/CS |
| 141 | |
kooper | 543d3aa | 2019-05-02 10:27:15 +0000 | [diff] [blame] | 142 | ##Certificate storage persistence |
| 143 | ##This is temporary solution for SDC-1980 |
| 144 | cert: |
Joanna Jeremicz | fe52bf5 | 2021-04-21 14:31:29 +0200 | [diff] [blame] | 145 | certDir: /app/jetty/cert |
kooper | 543d3aa | 2019-05-02 10:27:15 +0000 | [diff] [blame] | 146 | persistence: |
| 147 | enabled: true |
| 148 | size: 10Mi |
Sylvain Desbureaux | c8f45bb | 2020-01-23 11:55:37 +0100 | [diff] [blame] | 149 | accessMode: ReadWriteOnce |
kooper | 543d3aa | 2019-05-02 10:27:15 +0000 | [diff] [blame] | 150 | volumeReclaimPolicy: Retain |
| 151 | mountSubPath: /sdc/onbaording/cert |
| 152 | |
MichaelMorris | 276812c | 2020-04-28 09:34:17 +0100 | [diff] [blame] | 153 | securityContext: |
| 154 | fsGroup: 35953 |
| 155 | runAsUser: 352070 |
kooper | 543d3aa | 2019-05-02 10:27:15 +0000 | [diff] [blame] | 156 | |
Mandeep Khinda | 51a8b1b | 2018-04-24 20:05:32 +0000 | [diff] [blame] | 157 | ingress: |
| 158 | enabled: false |
| 159 | |
Mukul | a93baa8 | 2018-09-19 15:56:58 +0000 | [diff] [blame] | 160 | # Resource Limit flavor -By Default using small |
| 161 | flavor: small |
| 162 | # Segregation for Different environment (Small and Large) |
| 163 | resources: |
| 164 | small: |
| 165 | limits: |
ChrisC | 3217234 | 2020-10-02 16:39:13 +0200 | [diff] [blame] | 166 | cpu: 500m |
| 167 | memory: 2Gi |
Mukul | a93baa8 | 2018-09-19 15:56:58 +0000 | [diff] [blame] | 168 | requests: |
ChrisC | 3217234 | 2020-10-02 16:39:13 +0200 | [diff] [blame] | 169 | cpu: 40m |
Mukul | a93baa8 | 2018-09-19 15:56:58 +0000 | [diff] [blame] | 170 | memory: 1Gi |
| 171 | large: |
| 172 | limits: |
ChrisC | 3217234 | 2020-10-02 16:39:13 +0200 | [diff] [blame] | 173 | cpu: 1 |
| 174 | memory: 4Gi |
Mukul | a93baa8 | 2018-09-19 15:56:58 +0000 | [diff] [blame] | 175 | requests: |
ChrisC | 3217234 | 2020-10-02 16:39:13 +0200 | [diff] [blame] | 176 | cpu: 80m |
Mukul | a93baa8 | 2018-09-19 15:56:58 +0000 | [diff] [blame] | 177 | memory: 2Gi |
Mahendra Raghuwanshi | 35f83f5 | 2019-03-20 10:42:49 +0000 | [diff] [blame] | 178 | unlimited: {} |
farida azmy | 1383b4c | 2021-04-06 12:33:31 +0200 | [diff] [blame] | 179 | |
| 180 | #Pods Service Account |
| 181 | serviceAccount: |
| 182 | nameOverride: sdc-onboarding-be |
| 183 | roles: |
| 184 | - read |
Maciej Wereski | 771ec2a | 2021-10-14 13:59:12 +0000 | [diff] [blame] | 185 | |
othman touijer | 2b764d0 | 2022-01-05 14:40:37 +0100 | [diff] [blame] | 186 | wait_for_job_container: |
| 187 | containers: |
| 188 | - '{{ include "common.name" . }}-job' |
| 189 | |
Maciej Wereski | 771ec2a | 2021-10-14 13:59:12 +0000 | [diff] [blame] | 190 | #Log configuration |
| 191 | log: |
| 192 | path: /var/log/onap |
| 193 | logConfigMapNamePrefix: '{{ include "common.fullname" . }}' |