Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / so / components / so-etsi-nfvo-ns-lcm / values.yaml
1 # Copyright © 2020 Nordix Foundation
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 #################################################################
16 # Global configuration defaults.
17 #################################################################
18 global:
19   nodePortPrefixExt: 304
20   persistence:
21     mountPath: /dockerdata-nfs
22   mariadbGalera:
23     service: mariadb-galera
24     servicePort: '3306'
25
26 #################################################################
27 # Secrets metaconfig
28 #################################################################
29 secrets:
30   - uid: etsi-nfvo-nslcm-creds
31     name: '{{ include "common.release" . }}-so-etsi-nfvo-nslcm-creds'
32     type: basicAuth
33     externalSecret: '{{ tpl (default "" .Values.etsi.nfvo.nslcm.credsExternalSecret) . }}'
34     login: '{{ .Values.etsi.nfvo.nslcm.username }}'
35     password: '{{ .Values.etsi.nfvo.nslcm.password }}'
36   - uid: db-user-creds
37     type: basicAuth
38     externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
39     login: '{{ .Values.db.userName }}'
40     password: '{{ .Values.db.userPassword }}'
41     passwordPolicy: required
42   - uid: db-admin-creds
43     type: basicAuth
44     externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}'
45     login: '{{ .Values.db.adminName }}'
46     password: '{{ .Values.db.adminPassword }}'
47     passwordPolicy: required
48
49 #################################################################
50 # Application configuration defaults.
51 #################################################################
52 image: onap/so/so-etsi-nfvo-ns-lcm:1.9.0
53 pullPolicy: Always
54
55 aai:
56   auth: 2A11B07DB6214A839394AA1EC5844695F5114FC407FF5422625FB00175A3DCB8A1FF745F22867EFA72D5369D599BBD88DA8BED4233CF5586
57
58 readinessCheck:
59   wait_for:
60     jobs:
61       - '{{ include "common.release" . }}-so-mariadb-config-job'
62
63 # Local mariadb galera instance default name
64 mariadb-galera:
65   nameOverride: so-mariadb-galera
66   service:
67     internalPort: 3306
68   mariadbOperator:
69     galera:
70       enabled: false
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 etsi:
80   nfvo:
81     nslcm:
82       username: so-etsi-nfvo-ns-lcm
83 mso:
84   key: 07a7159d3bf51a0e53be7a8f89699be7
85 so:
86   sol003:
87     adapter:
88       auth: Basic dm5mbTpwYXNzd29yZDEk
89
90 replicaCount: 1
91 minReadySeconds: 10
92 containerPort: &containerPort 9095
93 logPath: ./logs/so-etsi-nfvo-ns-lcm/
94 app: so-etsi-nfvo-ns-lcm
95 service:
96   type: ClusterIP
97   annotations:
98     service.alpha.kubernetes.io/tolerate-unready-endpoints: 'true'
99     msb.onap.org/service-info: |
100       {{ if .Values.global.msbEnabled -}}[
101         {
102           "serviceName": "{{ include "common.servicename" . }}",
103           "version": "v1",
104           "url": "/so/so-etsi-nfvo-ns-lcm/v1",
105           "protocol": "REST",
106           "port": "{{ include "common.getPort" (dict "global" . "name" "http-api") }}",
107           "visualRange":"1"
108         }
109       ]{{ end }}
110   ports:
111     - name: http-api
112       port: *containerPort
113 updateStrategy:
114   type: RollingUpdate
115   maxUnavailable: 1
116   maxSurge: 1
117
118 #################################################################
119 # soHelpers part
120 #################################################################
121 soHelpers:
122   containerPort: *containerPort
123
124 # Resource Limit flavor -By Default using small
125 flavor: small
126 # Segregation for Different environment (Small and Large)
127 resources:
128   small:
129     limits:
130       cpu: "1"
131       memory: "1Gi"
132     requests:
133       cpu: "0.5"
134       memory: "1Gi"
135   large:
136     limits:
137       cpu: "2"
138       memory: "5Gi"
139     requests:
140       cpu: "1"
141       memory: "2Gi"
142   unlimited: {}
143
144 livenessProbe:
145   port: 9095
146   initialDelaySeconds: 600
147   periodSeconds: 60
148   timeoutSeconds: 10
149   successThreshold: 1
150   failureThreshold: 3
151
152 ingress:
153   enabled: false
154   service:
155     - baseaddr: 'so-etsi-nfvo-ns-lcm-api'
156       name: 'so-etsi-nfvo-ns-lcm'
157       port: 9095
158   config:
159     ssl: 'redirect'
160
161 serviceMesh:
162   authorizationPolicy:
163     authorizedPrincipals:
164       - serviceAccount: so-read
165       - serviceAccount: istio-ingress
166         namespace: istio-ingress
167
168 nodeSelector: {}
169
170 tolerations: []
171
172 affinity: {}
173
174 #Pods Service Account
175 serviceAccount:
176   nameOverride: so-etsi-nfvo-ns-lcm
177   roles:
178     - read