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 | persistence: {} |
Andreas Geissler | fd450c4 | 2021-12-10 08:36:45 +0000 | [diff] [blame] | 22 | sdc_cassandra: |
ChrisC | 742a7b2 | 2020-09-04 11:29:57 +0200 | [diff] [blame] | 23 | #This flag allows SDC to instantiate its own cluster, serviceName |
| 24 | #should be sdc-cs if this flag is enabled |
| 25 | localCluster: false |
| 26 | #The cassandra service name to connect to (default: shared cassandra service) |
| 27 | serviceName: cassandra |
| 28 | #Shared cassandra cluster replicaCount, should be changed if localCluster is enabled |
| 29 | #to match with its own cluster replica |
| 30 | replicaCount: 3 |
| 31 | clusterName: cassandra |
| 32 | dataCenter: Pod |
| 33 | |
| 34 | ################################################################# |
Mandeep Khinda | 51a8b1b | 2018-04-24 20:05:32 +0000 | [diff] [blame] | 35 | # Application configuration defaults. |
| 36 | ################################################################# |
| 37 | # application image |
MichaelMorris | 54ba66a | 2023-04-26 11:04:33 +0100 | [diff] [blame] | 38 | image: onap/sdc-onboard-backend:1.12.4 |
| 39 | onboardingInitImage: onap/sdc-onboard-cassandra-init:1.12.4 |
Mandeep Khinda | 51a8b1b | 2018-04-24 20:05:32 +0000 | [diff] [blame] | 40 | pullPolicy: Always |
| 41 | |
| 42 | # flag to enable debugging - application support required |
| 43 | debugEnabled: false |
| 44 | |
| 45 | config: |
r.bogacki | b17ce79 | 2019-09-03 10:23:24 +0200 | [diff] [blame] | 46 | javaOptions: "-Xmx1g -Xms1g" |
Mandeep Khinda | 51a8b1b | 2018-04-24 20:05:32 +0000 | [diff] [blame] | 47 | cassandraSslEnabled: "false" |
| 48 | |
ChrisC | 742a7b2 | 2020-09-04 11:29:57 +0200 | [diff] [blame] | 49 | #environment file |
| 50 | env: |
| 51 | name: AUTO |
| 52 | |
Mandeep Khinda | 51a8b1b | 2018-04-24 20:05:32 +0000 | [diff] [blame] | 53 | # default number of instances |
| 54 | replicaCount: 1 |
| 55 | |
| 56 | nodeSelector: {} |
| 57 | |
| 58 | affinity: {} |
| 59 | |
| 60 | # probe configuration parameters |
| 61 | liveness: |
Sylvain Desbureaux | 8c9416b | 2021-05-05 11:12:48 +0200 | [diff] [blame] | 62 | initialDelaySeconds: 1 |
| 63 | periodSeconds: 10 |
Brian Freeman | 6142d94 | 2019-10-02 09:50:19 -0500 | [diff] [blame] | 64 | timeoutSeconds: 15 |
Sylvain Desbureaux | 8c9416b | 2021-05-05 11:12:48 +0200 | [diff] [blame] | 65 | successThreshold: 1 |
| 66 | failureThreshold: 3 |
Mandeep Khinda | 51a8b1b | 2018-04-24 20:05:32 +0000 | [diff] [blame] | 67 | # necessary to disable liveness probe when setting breakpoints |
| 68 | # in debugger so K8s doesn't restart unresponsive container |
| 69 | enabled: true |
| 70 | |
| 71 | readiness: |
Sylvain Desbureaux | 8c9416b | 2021-05-05 11:12:48 +0200 | [diff] [blame] | 72 | initialDelaySeconds: 1 |
| 73 | periodSeconds: 10 |
Brian Freeman | 6142d94 | 2019-10-02 09:50:19 -0500 | [diff] [blame] | 74 | timeoutSeconds: 15 |
Sylvain Desbureaux | 8c9416b | 2021-05-05 11:12:48 +0200 | [diff] [blame] | 75 | successThreshold: 1 |
| 76 | failureThreshold: 3 |
| 77 | |
| 78 | startup: |
| 79 | initialDelaySeconds: 10 |
| 80 | periodSeconds: 10 |
| 81 | timeoutSeconds: 15 |
| 82 | successThreshold: 1 |
| 83 | failureThreshold: 60 |
Mandeep Khinda | 51a8b1b | 2018-04-24 20:05:32 +0000 | [diff] [blame] | 84 | |
| 85 | service: |
| 86 | type: ClusterIP |
| 87 | name: sdc-onboarding-be |
Andreas Geissler | dd34ead | 2023-03-20 17:16:45 +0100 | [diff] [blame] | 88 | internalPort: 8081 |
| 89 | ports: |
| 90 | - name: http |
| 91 | port: 8081 |
Mandeep Khinda | 51a8b1b | 2018-04-24 20:05:32 +0000 | [diff] [blame] | 92 | |
AndrewLamb | b304a32 | 2023-04-11 17:05:54 +0100 | [diff] [blame] | 93 | serviceMesh: |
| 94 | authorizationPolicy: |
| 95 | authorizedPrincipals: |
| 96 | - serviceAccount: sdc-be-read |
| 97 | |
Mandeep Khinda | 51a8b1b | 2018-04-24 20:05:32 +0000 | [diff] [blame] | 98 | ## Persist data to a persitent volume |
| 99 | persistence: |
| 100 | enabled: true |
| 101 | |
| 102 | ## A manually managed Persistent Volume and Claim |
| 103 | ## Requires persistence.enabled: true |
| 104 | ## If defined, PVC must be created manually before volume will be bound |
| 105 | # existingClaim: |
| 106 | volumeReclaimPolicy: Retain |
| 107 | |
| 108 | ## database data Persistent Volume Storage Class |
| 109 | ## If defined, storageClassName: <storageClass> |
| 110 | ## If set to "-", storageClassName: "", which disables dynamic provisioning |
| 111 | ## If undefined (the default) or set to null, no storageClassName spec is |
| 112 | ## set, choosing the default provisioner. (gp2 on AWS, standard on |
| 113 | ## GKE, AWS & OpenStack) |
| 114 | ## |
| 115 | # storageClass: "-" |
Sylvain Desbureaux | 71a9fb3 | 2019-09-02 15:50:28 +0200 | [diff] [blame] | 116 | accessMode: ReadWriteOnce |
Mandeep Khinda | 51a8b1b | 2018-04-24 20:05:32 +0000 | [diff] [blame] | 117 | size: 2Gi |
| 118 | mountPath: /dockerdata-nfs |
| 119 | mountSubPath: /sdc/sdc-cs/CS |
| 120 | |
MichaelMorris | 276812c | 2020-04-28 09:34:17 +0100 | [diff] [blame] | 121 | securityContext: |
| 122 | fsGroup: 35953 |
| 123 | runAsUser: 352070 |
kooper | 543d3aa | 2019-05-02 10:27:15 +0000 | [diff] [blame] | 124 | |
Mandeep Khinda | 51a8b1b | 2018-04-24 20:05:32 +0000 | [diff] [blame] | 125 | ingress: |
| 126 | enabled: false |
| 127 | |
Mukul | a93baa8 | 2018-09-19 15:56:58 +0000 | [diff] [blame] | 128 | # Resource Limit flavor -By Default using small |
| 129 | flavor: small |
| 130 | # Segregation for Different environment (Small and Large) |
| 131 | resources: |
| 132 | small: |
| 133 | limits: |
ChrisC | 3217234 | 2020-10-02 16:39:13 +0200 | [diff] [blame] | 134 | cpu: 500m |
| 135 | memory: 2Gi |
Mukul | a93baa8 | 2018-09-19 15:56:58 +0000 | [diff] [blame] | 136 | requests: |
ChrisC | 3217234 | 2020-10-02 16:39:13 +0200 | [diff] [blame] | 137 | cpu: 40m |
Mukul | a93baa8 | 2018-09-19 15:56:58 +0000 | [diff] [blame] | 138 | memory: 1Gi |
| 139 | large: |
| 140 | limits: |
ChrisC | 3217234 | 2020-10-02 16:39:13 +0200 | [diff] [blame] | 141 | cpu: 1 |
| 142 | memory: 4Gi |
Mukul | a93baa8 | 2018-09-19 15:56:58 +0000 | [diff] [blame] | 143 | requests: |
ChrisC | 3217234 | 2020-10-02 16:39:13 +0200 | [diff] [blame] | 144 | cpu: 80m |
Mukul | a93baa8 | 2018-09-19 15:56:58 +0000 | [diff] [blame] | 145 | memory: 2Gi |
Mahendra Raghuwanshi | 35f83f5 | 2019-03-20 10:42:49 +0000 | [diff] [blame] | 146 | unlimited: {} |
farida azmy | 1383b4c | 2021-04-06 12:33:31 +0200 | [diff] [blame] | 147 | |
| 148 | #Pods Service Account |
| 149 | serviceAccount: |
| 150 | nameOverride: sdc-onboarding-be |
| 151 | roles: |
| 152 | - read |
Maciej Wereski | 771ec2a | 2021-10-14 13:59:12 +0000 | [diff] [blame] | 153 | |
othman touijer | 2b764d0 | 2022-01-05 14:40:37 +0100 | [diff] [blame] | 154 | wait_for_job_container: |
| 155 | containers: |
| 156 | - '{{ include "common.name" . }}-job' |
| 157 | |
Maciej Wereski | 771ec2a | 2021-10-14 13:59:12 +0000 | [diff] [blame] | 158 | #Log configuration |
| 159 | log: |
| 160 | path: /var/log/onap |
| 161 | logConfigMapNamePrefix: '{{ include "common.fullname" . }}' |