90a74bd3edcd8d9e7be74498437831ae1300c26f
[oom.git] / kubernetes / oof / charts / oof-cmso / charts / oof-cmso-service / values.yaml
1 # Copyright © 2018-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-service:2.2.0
29 robotimage: onap/optf-cmso-robot:2.2.0
30 pullPolicy: Always
31
32 #init container image
33 dbinit:
34   image: onap/optf-cmso-dbinit:2.2.0
35
36 # flag to enable debugging - application support required
37 debugEnabled: false
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
81   portName: cmso
82   internalPort: 8080
83   externalPort: 8080
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: cmso
101   optimizer_host: oof-cmso-optimizer
102   optimizer_port: 7997
103
104 ingress:
105   enabled: false
106
107 #resources: {}
108   # We usually recommend not to specify default resources and to leave this as a conscious
109   # choice for the user. This also increases chances charts run on environments with little
110   # resources, such as Minikube. If you do want to specify resources, uncomment the following
111   # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
112   #
113   # Example:
114   # Configure resource requests and limits
115   # ref: http://kubernetes.io/docs/user-guide/compute-resources/
116   # Minimum memory for development is 2 CPU cores and 4GB memory
117   # Minimum memory for production is 4 CPU cores and 8GB memory
118 flavor: small
119 resources:
120   small:
121     limits:
122       cpu: 1
123       memory: 1.2Gi
124     requests:
125       cpu: 10m
126       memory: 800Mi
127   large:
128     limits:
129       cpu: 1
130       memory: 1.2Gi
131     requests:
132       cpu: 10m
133       memory: 800Mi
134   unlimited: {}