f2ce269505e30631c22d5875a7892ed91b92667b
[oom.git] / kubernetes / sdnc / charts / sdnc-portal / values.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
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   nodePortPrefix: 302
20   readinessRepository: oomk8s
21   readinessImage: readiness-check:2.0.2
22   loggingRepository: docker.elastic.co
23   loggingImage: beats/filebeat:5.5.0
24   # envsusbt
25   envsubstImage: dibi/envsubst
26
27   mariadbGalera:
28     #This flag allows SO to instantiate its own mariadb-galera cluster
29     #If shared instance is used, this chart assumes that DB already exists
30     localCluster: false
31     service: mariadb-galera
32     internalPort: 3306
33     nameOverride: mariadb-galera
34
35 #################################################################
36 # Secrets metaconfig
37 #################################################################
38 secrets:
39   - uid: db-root-password
40     type: password
41     externalSecret: '{{ .Values.global.mariadbGalera.localCluster | ternary (default (include "common.mariadb.secret.rootPassSecretName" (dict "dot" . "chartName" (index .Values "mariadb-galera" "nameOverride"))) (index .Values "mariadb-galera" "config" "mariadbRootPasswordExternalSecret")) (include "common.mariadb.secret.rootPassSecretName" (dict "dot" . "chartName" .Values.global.mariadbGalera.nameOverride)) }}'
42     password: '{{ index .Values "mariadb-galera" "config" "mariadbRootPassword" }}'
43     passwordPolicy: required
44   - uid: db-secret
45     name: &dbSecretName '{{ include "common.release" . }}-sdnc-portal-db-secret'
46     type: basicAuth
47     # This is a nasty trick that allows you override this secret using external one
48     # with the same field that is used to pass this to subchart
49     externalSecret: '{{ ternary "" (tpl (default "" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret")) .) (hasSuffix "sdnc-portal-db-secret" (index .Values "mariadb-galera" "config" "userCredentialsExternalSecret"))}}'
50     login: '{{ index .Values "mariadb-galera" "config" "userName" }}'
51     password: '{{ index .Values "mariadb-galera" "config" "userPassword" }}'
52     passwordPolicy: required
53   - uid: odl-creds
54     type: basicAuth
55     externalSecret: '{{ tpl (default "" .Values.config.odlCredsExternalSecret) . }}'
56     login: '{{ .Values.config.odlUser }}'
57     password: '{{ .Values.config.odlPassword }}'
58     passwordPolicy: required
59   - uid: fabric-db-creds
60     type: basicAuth
61     externalSecret: '{{ tpl (default "" .Values.config.odlCredsExternalSecret) . }}'
62     login: '{{ .Values.config.dbFabricUser }}'
63     password: '{{ .Values.config.dbFabricPassword }}'
64     passwordPolicy: required
65   - uid: keystore-password
66     type: password
67     externalSecret: '{{ tpl (default "" .Values.config.KeyStorePwdExternalSecret) . }}'
68     password: '{{ .Values.config.keystorePwd }}'
69     passwordPolicy: required
70
71 #################################################################
72 # Application configuration defaults.
73 #################################################################
74 # application image
75 repository: nexus3.onap.org:10001
76 image: onap/admportal-sdnc-image:1.8.4
77 config:
78   dbFabricDB: mysql
79   dbFabricUser: admin
80   dbFabricPassword: admin
81   # dbFabricDBCredsExternalSecret: some secret
82   sdncChartName: sdnc
83   configDir: /opt/onap/sdnc/data/properties
84   storesDir: /opt/onap/sdnc/data/stores
85   odlUser: admin
86   odlPassword: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
87   # odlCredsExternalSecret: some secret
88   keystorePwd: ff^G9D]yf&r}Ktum@BJ0YB?N
89   # keystorePwdExternalSecret: some secret
90
91 mariadb-galera:
92   config:
93     userCredentialsExternalSecret: *dbSecretName
94     userName: sdnctl
95     userPassword: gamma
96     mysqlDatabase: sdnctl
97   nameOverride: sdnc-portal-galera
98   service:
99     name: sdnc-portal-galera
100     portName: sdnc-portal-galera
101     internalPort: 3306
102   replicaCount: 1
103   persistence:
104     enabled: true
105     mountSubPath: sdnc-portal/maria/data
106
107 # default number of instances
108 replicaCount: 0
109
110 nodeSelector: {}
111
112 affinity: {}
113
114 # probe configuration parameters
115 liveness:
116   initialDelaySeconds: 180
117   periodSeconds: 10
118   # necessary to disable liveness probe when setting breakpoints
119   # in debugger so K8s doesn't restart unresponsive container
120   enabled: true
121
122 readiness:
123   initialDelaySeconds: 60
124   periodSeconds: 10
125
126 service:
127   type: NodePort
128   name: sdnc-portal
129   portName: sdnc-portal
130   internalPort: 8443
131   externalPort: 8443
132   nodePort: "01"
133
134 ingress:
135   enabled: false
136   service:
137     - baseaddr: "sdnc-portal.api"
138       name: "sdnc-portal"
139       port: 8443
140   config:
141     ssl: "redirect"
142
143 #Resource limit flavor -By default using small
144 flavor: small
145 #segregation for different environment (small and large)
146
147 resources:
148   small:
149     limits:
150       cpu: 1
151       memory: 1Gi
152     requests:
153       cpu: 0.5
154       memory: 500Mi
155   large:
156     limits:
157       cpu: 2
158       memory: 2Gi
159     requests:
160       cpu: 1
161       memory: 1Gi
162   unlimited: {}