63a641c3597cd966e23c9239827e2a66be8ce755
[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   security:
23     aaf:
24       enabled: false
25   aaf:
26     auth:
27       header: Basic c29Ac28ub25hcC5vcmc6ZGVtbzEyMzQ1Ngo=
28   mariadbGalera:
29     serviceName: mariadb-galera
30     servicePort: '3306'
31   soSdcListenerKafkaUser: so-sdc-list-user
32
33 readinessCheck:
34   wait_for:
35     jobs:
36       - '{{ include "common.release" . }}-so-mariadb-config-job'
37
38 #################################################################
39 # Secrets metaconfig
40 #################################################################
41 secrets:
42   - uid: db-user-creds
43     type: basicAuth
44     externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
45     login: '{{ .Values.db.userName }}'
46     password: '{{ .Values.db.userPassword }}'
47     passwordPolicy: required
48   - uid: db-admin-creds
49     type: basicAuth
50     externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}'
51     login: '{{ .Values.db.adminName }}'
52     password: '{{ .Values.db.adminPassword }}'
53     passwordPolicy: required
54   - uid: so-sdc-kafka-secret
55     externalSecret: '{{ tpl (default "" .Values.config.jaasConfExternalSecret) . }}'
56     type: genericKV
57     envs:
58       - name: sasl.jaas.config
59         value: '{{ .Values.config.someConfig }}'
60         policy: generate
61
62 #secretsFilePaths: |
63 #  - 'my file 1'
64 #  - '{{ include "templateThatGeneratesFileName" . }}'
65
66 #################################################################
67 # Application configuration defaults.
68 #################################################################
69 image: onap/so/sdc-controller:1.12.0
70 pullPolicy: Always
71
72 db:
73   userName: so_user
74   userPassword: so_User123
75   # userCredsExternalSecret: some secret
76   adminName: so_admin
77   adminPassword: so_Admin123
78   # adminCredsExternalSecret: some secret
79
80 aai:
81   auth: 2A11B07DB6214A839394AA1EC5844695F5114FC407FF5422625FB00175A3DCB8A1FF745F22867EFA72D5369D599BBD88DA8BED4233CF5586
82 mso:
83   msoKey: 07a7159d3bf51a0e53be7a8f89699be7
84   requestDb:
85     auth: Basic YnBlbDpwYXNzd29yZDEk
86   asdc:
87     config:
88       key: 566B754875657232314F5548556D3665
89   asdc-connections:
90     asdc-controller1:
91       password: 76966BDD3C7414A03F7037264FF2E6C8EEC6C28F2B67F2840A1ED857C0260FEE731D73F47F828E5527125D29FD25D3E0DE39EE44C058906BF1657DE77BF897EECA93BDC07FA64F
92 config:
93   someConfig: blah
94   kafka:
95     securityProtocol: SASL_PLAINTEXT
96     saslMechanism: SCRAM-SHA-512
97     authType: simple
98     sdcTopic:
99       pattern: SDC-DIST
100       consumerGroup: so
101       clientId: SO-sdc-controller
102
103 replicaCount: 1
104 minReadySeconds: 10
105 containerPort: &containerPort 8085
106 logPath: ./logs/sdc/
107 app: sdc-controller
108 service:
109     type: ClusterIP
110     internalPort: *containerPort
111     externalPort: *containerPort
112     portName: http
113 updateStrategy:
114     type: RollingUpdate
115     maxUnavailable: 1
116     maxSurge: 1
117
118 #################################################################
119 # soHelpers part
120 #################################################################
121 soHelpers:
122   nameOverride: so-sdc-cert-init
123   certInitializer:
124     nameOverride: so-sdc-cert-init
125     credsPath: /opt/app/osaaf/local
126   cadi:
127     apiEnforcement: org.onap.so.sdcControllerPerm
128   containerPort: *containerPort
129
130 # Resource Limit flavor -By Default using small
131 flavor: small
132 # Segregation for Different environment (Small and Large)
133 resources:
134   small:
135     limits:
136       memory: 4Gi
137       cpu: 2000m
138     requests:
139       memory: 1Gi
140       cpu: 500m
141   large:
142     limits:
143       memory: 8Gi
144       cpu: 4000m
145     requests:
146       memory: 2Gi
147       cpu: 1000m
148   unlimited: {}
149 livenessProbe:
150     path: /manage/health
151     port: 8085
152     scheme: HTTP
153     initialDelaySeconds: 600
154     periodSeconds: 60
155     timeoutSeconds: 10
156     successThreshold: 1
157     failureThreshold: 3
158 ingress:
159   enabled: false
160 nodeSelector: {}
161 tolerations: []
162 affinity: {}
163
164 #Pods Service Account
165 serviceAccount:
166   nameOverride: so-sdc-controller
167   roles:
168     - read
169
170 #Logs configuration
171 log:
172   path: /var/log/onap
173 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'