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