Merge "[DCAEMOD] Uses new tpls for repos / images"
[oom.git] / kubernetes / oof / components / oof-cmso / components / oof-cmso-service / values.yaml
1 # Copyright © 2018-2019 AT&T
2 # Copyright (C) 2020 Wipro Limited.
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: # global defaults
20   nodePortPrefix: 302
21
22 subChartsOnly:
23   enabled: true
24
25 # application image
26 image: onap/optf-cmso-service:2.3.0
27 robotimage: onap/optf-cmso-robot:2.3.0
28 pullPolicy: Always
29
30 #init container image
31 dbinit:
32   image: onap/optf-cmso-dbinit:2.3.0
33
34 # flag to enable debugging - application support required
35 debugEnabled: false
36
37 #################################################################
38 # Secrets metaconfig
39 #################################################################
40 secrets:
41   - uid: cmso-db-user-secret
42     type: basicAuth
43     externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}'
44     login: '{{ .Values.config.db.user }}'
45     password: '{{ .Values.config.db.password }}'
46     passwordPolicy: required
47
48 #################################################################
49 # Application configuration defaults.
50 #################################################################
51 # default number of instances
52 replicaCount: 1
53
54 nodeSelector: {}
55
56 affinity: {}
57
58 # probe configuration parameters
59 liveness:
60   initialDelaySeconds: 120
61   periodSeconds: 10
62   # necessary to disable liveness probe when setting breakpoints
63   # in debugger so K8s doesn't restart unresponsive container
64   enabled: true
65
66 readiness:
67   initialDelaySeconds: 120
68   periodSeconds: 10
69
70
71 service:
72   type: ClusterIP
73   name: oof-cmso
74   portName: cmso
75   internalPort: 8080
76   externalPort: 8080
77   #nodePort: 23
78   # as of 20181022 port 23 is reserved for cmso
79   # see https://wiki.onap.org/display/DW/OOM+NodePort+List
80
81
82 config:
83   db:
84     port: 3306
85 #    rootPassword: pass
86 #    rootPasswordExternalSecret: some secret
87     user: cmso-admin
88     password: pass
89 #    userCredentialsExternalSecret: some-secret
90 #    host: host
91 #    container: container
92 #    mysqlDatabase: cmso
93   optimizer_host: oof-cmso-optimizer
94   optimizer_port: 7997
95
96 ingress:
97   enabled: false
98
99 #resources: {}
100   # We usually recommend not to specify default resources and to leave this as a conscious
101   # choice for the user. This also increases chances charts run on environments with little
102   # resources, such as Minikube. If you do want to specify resources, uncomment the following
103   # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
104   #
105   # Example:
106   # Configure resource requests and limits
107   # ref: http://kubernetes.io/docs/user-guide/compute-resources/
108   # Minimum memory for development is 2 CPU cores and 4GB memory
109   # Minimum memory for production is 4 CPU cores and 8GB memory
110 flavor: small
111 resources:
112   small:
113     limits:
114       cpu: 1
115       memory: 1.2Gi
116     requests:
117       cpu: 10m
118       memory: 800Mi
119   large:
120     limits:
121       cpu: 1
122       memory: 1.2Gi
123     requests:
124       cpu: 10m
125       memory: 800Mi
126   unlimited: {}