[DCAEMOD] Uses new tpls for repos / images
[oom.git] / kubernetes / portal / components / portal-widget / values.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018 AT&T
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 #################################################################
17 # Global configuration defaults.
18 #################################################################
19 global:
20   nodePortPrefix: 302
21   readinessImage: onap/oom/readiness:3.0.1
22   loggingRepository: docker.elastic.co
23   loggingImage: beats/filebeat:5.5.0
24   ubuntuInit: ubuntu-init:1.0.0
25   envsubstImage: dibi/envsubst
26
27 ################################################################
28 # Secrets metaconfig
29 #################################################################
30
31 secrets:
32   - uid: portal-backend-db
33     type: basicAuth
34     externalSecret: '{{ tpl (default "" .Values.mariadb.config.backendDbExternalSecret) . }}'
35     login: '{{ .Values.mariadb.config.backendUserName }}'
36     password: '{{ .Values.mariadb.config.backendPassword }}'
37     passwordPolicy: required
38   - uid: portal-widget
39     type: basicAuth
40     externalSecret: '{{ tpl (default "" .Values.config.widgetCredsExternalSecret) . }}'
41     login: '{{ .Values.config.widgetUsername }}'
42     password: '{{ .Values.config.widgetPassword }}'
43     passwordPolicy: required
44   - uid: portal-account
45     type: basicAuth
46     externalSecret: '{{ tpl (default "" .Values.config.accountCredsExternalSecret) . }}'
47     login: '{{ .Values.config.accountUsername }}'
48     password: '{{ .Values.config.accountPassword }}'
49     passwordPolicy: required
50   - uid: jasypt-enc-key
51     type: password
52     externalSecret: '{{ .Values.config.jasyptEncKeyExternalSecret}}'
53     password: '{{ .Values.config.jasyptEncKey }}'
54     passwordPolicy: required
55
56 config:
57   widgetUsername: widget_user
58   widgetPassword: widget_pass
59 # widgetCredsExternalSecret: some secret
60   accountUsername: portal
61   accountPassword: portal
62 # accountCredsExternalSecret: some secret
63   jasyptEncKey: EncryptionKey
64   # jasyptEncKeyExternalSecret: some secret
65
66 #################################################################
67 # Application configuration defaults.
68 #################################################################
69 # application image
70 repository: nexus3.onap.org:10001
71 image: onap/portal-wms:3.4.2
72 pullPolicy: Always
73
74 # flag to enable debugging - application support required
75 debugEnabled: false
76
77 # default number of instances
78 replicaCount: 1
79
80 nodeSelector: {}
81
82 affinity: {}
83
84 # probe configuration parameters
85 liveness:
86   initialDelaySeconds: 10
87   periodSeconds: 10
88   # necessary to disable liveness probe when setting breakpoints
89   # in debugger so K8s doesn't restart unresponsive container
90   enabled: true
91
92 readiness:
93   initialDelaySeconds: 10
94   periodSeconds: 10
95
96 mariadb:
97   service:
98     name: portal-db
99   config:
100     # backendDbExternalSecret: some secret
101     backendUserName: portal
102     backendPassword: portal
103
104 service:
105   type: ClusterIP
106   name: portal-widget
107   portName: portal-widget
108   externalPort: 8082
109   internalPort: 8082
110
111 ingress:
112   enabled: false
113
114 # Resource Limit flavor -By Default using small
115 flavor: small
116 # Segregation for Different environment (Small and Large)
117 resources:
118   small:
119     limits:
120       cpu: 1
121       memory: 430Mi
122     requests:
123       cpu: 1m
124       memory: 360Mi
125   large:
126     limits:
127       cpu: 2
128       memory: 8Gi
129     requests:
130       cpu: 1
131       memory: 4Gi
132   unlimited: {}