5d3807eb1432d9b0637fc22d6eee932d6ffae92b
[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     serviceName: 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 db:
58   userName: so_user
59   userPassword: so_User123
60   # userCredsExternalSecret: some secret
61   adminName: so_admin
62   adminPassword: so_Admin123
63   # adminCredsExternalSecret: some secret
64 etsi:
65   nfvo:
66     nslcm:
67       username: so-etsi-nfvo-ns-lcm
68 mso:
69   key: 07a7159d3bf51a0e53be7a8f89699be7
70 so:
71   sol003:
72     adapter:
73       auth: Basic dm5mbTpwYXNzd29yZDEk
74
75 replicaCount: 1
76 minReadySeconds: 10
77 containerPort: &containerPort 9095
78 logPath: ./logs/so-etsi-nfvo-ns-lcm/
79 app: so-etsi-nfvo-ns-lcm
80 service:
81   type: ClusterIP
82   annotations:
83     service.alpha.kubernetes.io/tolerate-unready-endpoints: 'true'
84     msb.onap.org/service-info: |
85       {{ if .Values.global.msbEnabled -}}[
86         {
87           "serviceName": "{{ include "common.servicename" . }}",
88           "version": "v1",
89           "url": "/so/so-etsi-nfvo-ns-lcm/v1",
90           "protocol": "REST",
91           "port": "{{ include "common.getPort" (dict "global" . "name" "http-api") }}",
92           "visualRange":"1"
93         }
94       ]{{ end }}
95   ports:
96     - name: http-api
97       port: *containerPort
98 updateStrategy:
99   type: RollingUpdate
100   maxUnavailable: 1
101   maxSurge: 1
102
103 #################################################################
104 # soHelpers part
105 #################################################################
106 soHelpers:
107   containerPort: *containerPort
108
109 # Resource Limit flavor -By Default using small
110 flavor: small
111 # Segregation for Different environment (Small and Large)
112 resources:
113   small:
114     limits:
115       memory: 1Gi
116       cpu: 999
117     requests:
118       memory: 1Gi
119       cpu: 0.5
120   large:
121     limits:
122       memory: 5Gi
123       cpu: 999
124     requests:
125       memory: 2Gi
126       cpu: 4
127   unlimited: {}
128
129 livenessProbe:
130   port: 9095
131   initialDelaySeconds: 600
132   periodSeconds: 60
133   timeoutSeconds: 10
134   successThreshold: 1
135   failureThreshold: 3
136
137 ingress:
138   enabled: false
139   service:
140     - baseaddr: 'so-etsi-nfvo-ns-lcm-api'
141       name: 'so-etsi-nfvo-ns-lcm'
142       port: 9095
143   config:
144     ssl: 'redirect'
145
146 serviceMesh:
147   authorizationPolicy:
148     authorizedPrincipals:
149       - serviceAccount: so-read
150       - serviceAccount: istio-ingress
151         namespace: istio-ingress
152
153 nodeSelector: {}
154
155 tolerations: []
156
157 affinity: {}
158
159 #Pods Service Account
160 serviceAccount:
161   nameOverride: so-etsi-nfvo-ns-lcm
162   roles:
163     - read