19e5c6f2c39bab3c532a8728b3fc87384bd1baf3
[oom.git] / kubernetes / so / components / so-sdnc-adapter / values.yaml
1 # Copyright © 2018 AT&T USA
2 # Copyright © 2020 Huawei
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 # Global configuration defaults.
16 #################################################################
17 global:
18   nodePortPrefix: 302
19   nodePortPrefixExt: 304
20   persistence:
21     mountPath: /dockerdata-nfs
22   #This configuration specifies Service and port for SDNC OAM interface
23   sdncOamService: sdnc-oam
24   sdncOamPort: 8282
25   mariadbGalera:
26     serviceName: mariadb-galera
27     servicePort: '3306'
28
29 #################################################################
30 # Secrets metaconfig
31 #################################################################
32 secrets:
33   - uid: db-user-creds
34     type: basicAuth
35     externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
36     login: '{{ .Values.db.userName }}'
37     password: '{{ .Values.db.userPassword }}'
38     passwordPolicy: required
39   - uid: db-admin-creds
40     type: basicAuth
41     externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}'
42     login: '{{ .Values.db.adminName }}'
43     password: '{{ .Values.db.adminPassword }}'
44     passwordPolicy: required
45   - uid: sdnc-adapter-mso-key
46     name: '{{ include "common.release" . }}-so-sdnc-mso-key'
47     type: password
48     externalSecret: '{{ tpl (default "" .Values.mso.msoKeySecret) . }}'
49     password: '{{ .Values.mso.msoKey }}'
50   - uid: sdnc-adapter-mso-auth
51     name: '{{ include "common.release" . }}-so-sdnc-mso-auth'
52     type: password
53     externalSecret: '{{ tpl (default "" .Values.mso.authSecret) . }}'
54     password: '{{ .Values.mso.auth }}'
55 #secretsFilePaths: |
56 #  - 'my file 1'
57 #  - '{{ include "templateThatGeneratesFileName" . }}'
58
59 #################################################################
60 # Application configuration defaults.
61 #################################################################
62 image: onap/so/sdnc-adapter:1.11.0
63 pullPolicy: Always
64
65 org:
66   onap:
67     so:
68       adapters:
69         sdnc:
70           bpelauth: 4C18603C5AE7E3A42A6CED95CDF9C0BA9B2109B3725747662E5D34E5FDF63DA9ADEBB08185098F14699195FDE9475100
71           sdncauth: ED07A7EE5F099FA53369C3DF2240AD68A00154676EEDBC6F8C16BAA83B1912941B8941ABD48683D2C1072DA7040659692DE936A59BBF42A038CF71DE67B4A375190071EC76EA657801B033C135
72           network:
73             encryptionKey: 07a7159d3bf51a0e53be7a8f89699be7
74 mso:
75   msoKey: 07a7159d3bf51a0e53be7a8f89699be7
76   #msoKeySecret: some secret
77   auth: BEA8637716A7EB617DF472BA6552D22F68C1CB17B0D094D77DDA562F4ADAAC4457CAB848E1A4
78   #authSecret: some secret
79   adapters:
80     requestDb:
81       auth: Basic YnBlbDpwYXNzd29yZDEk
82
83 db:
84   userName: so_user
85   userPassword: so_User123
86   # userCredsExternalSecret: some secret
87   adminName: so_admin
88   adminPassword: so_Admin123
89   # adminCredsExternalSecret: some secret
90
91 replicaCount: 1
92 minReadySeconds: 10
93 containerPort: &containerPort 8086
94 logPath: ./logs/sdnc/
95 app: sdnc-adapter
96 service:
97   type: ClusterIP
98   ports:
99     - name: http
100       port: *containerPort
101 updateStrategy:
102   type: RollingUpdate
103   maxUnavailable: 1
104   maxSurge: 1
105
106 #################################################################
107 # soHelpers part
108 #################################################################
109 soHelpers:
110   containerPort: *containerPort
111
112 # Resource Limit flavor -By Default using small
113 flavor: small
114 # Segregation for Different environment (Small and Large)
115 resources:
116   small:
117     limits:
118       memory: 4Gi
119       cpu: 2000m
120     requests:
121       memory: 1Gi
122       cpu: 500m
123   large:
124     limits:
125       memory: 8Gi
126       cpu: 4000m
127     requests:
128       memory: 2Gi
129       cpu: 1000m
130   unlimited: {}
131 livenessProbe:
132   path: /manage/health
133   port: 8086
134   scheme: HTTP
135   initialDelaySeconds: 600
136   periodSeconds: 60
137   timeoutSeconds: 10
138   successThreshold: 1
139   failureThreshold: 3
140 ingress:
141   enabled: false
142 serviceMesh:
143   authorizationPolicy:
144     authorizedPrincipals:
145       - serviceAccount: robot-read
146       - serviceAccount: so-bpmn-infra-read
147       - serviceAccount: so-read
148 nodeSelector: {}
149 tolerations: []
150 affinity: {}
151
152 #Pods Service Account
153 serviceAccount:
154   nameOverride: so-sdnc-adapter
155   roles:
156     - read
157
158 #Logs configuration
159 log:
160   path: /var/log/onap
161 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'