[MARIADB] Make the MariaDB service Operator aware
[oom.git] / kubernetes / so / components / so-nssmf-adapter / values.yaml
1 # Copyright © 2020 Huawei Technologies Co., Ltd.
2 #
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     service: mariadb-galera
24     servicePort: '3306'
25
26 readinessCheck:
27   wait_for:
28     jobs:
29       - '{{ include "common.release" . }}-so-mariadb-config-job'
30
31
32 #################################################################
33 # Secrets metaconfig
34 #################################################################
35 secrets:
36   - uid: db-user-creds
37     name: '{{ include "common.release" . }}-so-bpmn-infra-db-user-creds'
38     type: basicAuth
39     externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
40     login: '{{ .Values.db.userName }}'
41     password: '{{ .Values.db.userPassword }}'
42     passwordPolicy: required
43   - uid: db-admin-creds
44     name: '{{ include "common.release" . }}-so-bpmn-infra-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   - uid: server-bpel-creds
51     name: '{{ include "common.release" . }}-so-server-bpel-creds'
52     type: basicAuth
53     externalSecret: '{{ tpl (default "" .Values.server.bpelCredsExternalSecret) . }}'
54     login: '{{ .Values.server.bpel.username }}'
55     password: '{{ .Values.server.bpel.password }}'
56     passwordPolicy: required
57   - uid: server-actuator-creds
58     name: '{{ include "common.release" . }}-so-server-actuator-creds'
59     type: basicAuth
60     externalSecret: '{{ tpl (default "" .Values.server.actuatorCredsExternalSecret) . }}'
61     login: '{{ .Values.server.actuator.username }}'
62     password: '{{ .Values.server.actuator.password }}'
63     passwordPolicy: required
64
65 #secretsFilePaths: |
66 #  - 'my file 1'
67 #  - '{{ include "templateThatGeneratesFileName" . }}'
68
69 #################################################################
70 # Application configuration defaults.
71 #################################################################
72 image: onap/so/so-nssmf-adapter:1.9.1
73 pullPolicy: Always
74
75 db:
76   userName: so_user
77   userPassword: so_User123
78   # userCredsExternalSecret: some secret
79   adminName: so_admin
80   adminPassword: so_Admin123
81   # adminCredsExternalSecret: some secret
82 server:
83   actuator:
84     username: mso_admin
85     password: password1$
86   bpel:
87     username: bpel
88     password: password1$
89 aai:
90   auth: 2A11B07DB6214A839394AA1EC5844695F5114FC407FF5422625FB00175A3DCB8A1FF745F22867EFA72D5369D599BBD88DA8BED4233CF5586
91 mso:
92   adapters:
93     requestDb:
94       auth: Basic YnBlbDpwYXNzd29yZDEk
95
96 replicaCount: 1
97 minReadySeconds: 10
98 containerPort: &containerPort 8088
99 logPath: ./logs/nssmf-adapter/
100 app: nssmf-adapter
101 service:
102   type: ClusterIP
103   ports:
104     - name: http
105       port: *containerPort
106 updateStrategy:
107   type: RollingUpdate
108   maxUnavailable: 1
109   maxSurge: 1
110
111 #################################################################
112 # soHelpers part
113 #################################################################
114 soHelpers:
115   containerPort: *containerPort
116
117 # Resource Limit flavor -By Default using small
118 flavor: small
119 # Segregation for Different environment (Small and Large)
120 resources:
121   small:
122     limits:
123       memory: 1Gi
124       cpu: 1
125     requests:
126       memory: 1Gi
127       cpu: 0.5
128   large:
129     limits:
130       memory: 2Gi
131       cpu: 2
132     requests:
133       memory: 2Gi
134       cpu: 1
135   unlimited: {}
136 livenessProbe:
137   path: /manage/health
138   port: 8088
139   scheme: HTTP
140   initialDelaySeconds: 600
141   periodSeconds: 60
142   timeoutSeconds: 10
143   successThreshold: 1
144   failureThreshold: 3
145 ingress:
146   enabled: false
147 serviceMesh:
148   authorizationPolicy:
149     authorizedPrincipals:
150       - serviceAccount: robot-read
151       - serviceAccount: so-bpmn-infra-read
152       - serviceAccount: so-read
153 nodeSelector: {}
154 tolerations: []
155 affinity: {}
156
157 #Pods Service Account
158 serviceAccount:
159   nameOverride: so-nssmf-adapter
160   roles:
161     - read