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