Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / so / components / so-sdc-controller / 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   mariadbGalera:
23     # flag to enable the DB creation via mariadb-operator
24     useOperator: true
25     service: mariadb-galera
26     servicePort: '3306'
27   soSdcListenerKafkaUser: so-sdc-list-user
28
29 readinessCheck:
30   wait_for:
31     jobs:
32       - '{{ include "common.release" . }}-so-mariadb-config-job'
33
34 #################################################################
35 # Secrets metaconfig
36 #################################################################
37 secrets:
38   - uid: db-user-creds
39     type: basicAuth
40     externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
41     login: '{{ .Values.db.userName }}'
42     password: '{{ .Values.db.userPassword }}'
43     passwordPolicy: required
44   - uid: db-admin-creds
45     type: basicAuth
46     externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}'
47     login: '{{ .Values.db.adminName }}'
48     password: '{{ .Values.db.adminPassword }}'
49     passwordPolicy: required
50
51 #secretsFilePaths: |
52 #  - 'my file 1'
53 #  - '{{ include "templateThatGeneratesFileName" . }}'
54
55 #################################################################
56 # Application configuration defaults.
57 #################################################################
58 image: onap/so/sdc-controller:1.12.2
59 pullPolicy: Always
60
61 # Local mariadb galera instance default name
62 mariadb-galera:
63   nameOverride: so-mariadb-galera
64   service:
65     internalPort: 3306
66   mariadbOperator:
67     galera:
68       enabled: false
69
70 db:
71   userName: so_user
72   userPassword: so_User123
73   # userCredsExternalSecret: some secret
74   adminName: so_admin
75   adminPassword: so_Admin123
76   # adminCredsExternalSecret: some secret
77
78 aai:
79   auth: 2A11B07DB6214A839394AA1EC5844695F5114FC407FF5422625FB00175A3DCB8A1FF745F22867EFA72D5369D599BBD88DA8BED4233CF5586
80 mso:
81   msoKey: 07a7159d3bf51a0e53be7a8f89699be7
82   requestDb:
83     auth: Basic YnBlbDpwYXNzd29yZDEk
84   asdc:
85     config:
86       key: 566B754875657232314F5548556D3665
87   asdc-connections:
88     asdc-controller1:
89       password: 76966BDD3C7414A03F7037264FF2E6C8EEC6C28F2B67F2840A1ED857C0260FEE731D73F47F828E5527125D29FD25D3E0DE39EE44C058906BF1657DE77BF897EECA93BDC07FA64F
90
91 replicaCount: 1
92 minReadySeconds: 10
93 containerPort: &containerPort 8085
94 logPath: ./logs/sdc/
95 app: sdc-controller
96
97 service:
98   type: ClusterIP
99   ports:
100     - name: http
101       port: *containerPort
102
103 updateStrategy:
104   type: RollingUpdate
105   maxUnavailable: 1
106   maxSurge: 1
107
108 #################################################################
109 # soHelpers part
110 #################################################################
111 soHelpers:
112   containerPort: *containerPort
113
114 # Resource Limit flavor -By Default using small
115 flavor: small
116 # Segregation for Different environment (Small and Large)
117 resources:
118   small:
119     limits:
120       cpu: "1"
121       memory: "1.5Gi"
122     requests:
123       cpu: "0.5"
124       memory: "1.5Gi"
125   large:
126     limits:
127       cpu: "2"
128       memory: "3Gi"
129     requests:
130       cpu: "1"
131       memory: "3Gi"
132   unlimited: {}
133
134 livenessProbe:
135   path: /manage/health
136   port: 8085
137   scheme: HTTP
138   initialDelaySeconds: 600
139   periodSeconds: 60
140   timeoutSeconds: 10
141   successThreshold: 1
142   failureThreshold: 3
143
144 ingress:
145   enabled: false
146
147 serviceMesh:
148   authorizationPolicy:
149     authorizedPrincipals:
150       - serviceAccount: robot-read
151       - serviceAccount: so-read
152
153 nodeSelector: {}
154 tolerations: []
155 affinity: {}
156
157 # Strimzi KafkaUser config
158 kafkaUser:
159   acls:
160     - name: SO
161       type: group
162       operations: [Read]
163     - name: SDC-DISTR
164       type: topic
165       patternType: prefix
166       operations: [Read, Write]
167
168 #Pods Service Account
169 serviceAccount:
170   nameOverride: so-sdc-controller
171   roles:
172     - read
173
174 #Logs configuration
175 log:
176   path: /var/log/onap
177 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'