[CONSUL] Add limits to consul chart.
[oom.git] / kubernetes / clamp / components / clamp-mariadb / values.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018-2019 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: # global defaults
20   nodePortPrefix: 302
21
22   persistence: {}
23 # application image
24 repository: docker.io
25 image: mariadb:10.5.4
26 pullPolicy: Always
27 flavor: small
28 #################################################################
29 # Secrets metaconfig
30 #################################################################
31 secrets:
32   - uid: db-root-pass
33     type: password
34     externalSecret: '{{ tpl (default "" .Values.db.rootCredsExternalSecret) . }}'
35     password: '{{ .Values.db.rootPass }}'
36   - uid: db-secret
37     type: basicAuth
38     externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}'
39     login: '{{ .Values.db.user }}'
40     password: '{{ .Values.db.password }}'
41
42 # Application configuration
43 # dummy value db user pasword to pass lint!!!
44 db:
45   user: dummy-clds
46   password: dummy-sidnnd83K
47   databaseName: dummy-cldsdb4
48
49 # default number of instances
50 replicaCount: 1
51
52 nodeSelector: {}
53
54 affinity: {}
55
56 # probe configuration parameters
57 liveness:
58   initialDelaySeconds: 10
59   periodSeconds: 10
60   # necessary to disable liveness probe when setting breakpoints
61   # in debugger so K8s doesn't restart unresponsive container
62   enabled: true
63
64 readiness:
65   initialDelaySeconds: 10
66   periodSeconds: 10
67
68 ## Persist data to a persitent volume
69 persistence:
70   enabled: true
71
72   ## A manually managed Persistent Volume and Claim
73   ## Requires persistence.enabled: true
74   ## If defined, PVC must be created manually before volume will be bound
75   # existingClaim:
76   volumeReclaimPolicy: Retain
77
78   ## database data Persistent Volume Storage Class
79   ## If defined, storageClassName: <storageClass>
80   ## If set to "-", storageClassName: "", which disables dynamic provisioning
81   ## If undefined (the default) or set to null, no storageClassName spec is
82   ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
83   ##   GKE, AWS & OpenStack)
84   ##
85   # storageClass: "-"
86   accessMode: ReadWriteOnce
87   size: 2Gi
88   mountPath: /dockerdata-nfs
89   mountSubPath: clamp/mariadb/data
90
91 service:
92   type: ClusterIP
93   name: clampdb
94   portName: clampdb
95   internalPort: 3306
96   externalPort: 3306
97
98
99 ingress:
100   enabled: false
101
102
103 #resources: {}
104   # We usually recommend not to specify default resources and to leave this as a conscious
105   # choice for the user. This also increases chances charts run on environments with little
106   # resources, such as Minikube. If you do want to specify resources, uncomment the following
107   # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
108   #
109   # Example:
110   # Configure resource requests and limits
111   # ref: http://kubernetes.io/docs/user-guide/compute-resources/
112   # Minimum memory for development is 2 CPU cores and 4GB memory
113   # Minimum memory for production is 4 CPU cores and 8GB memory
114 resources:
115   small:
116     limits:
117       cpu: 1
118       memory: 500Mi
119     requests:
120       cpu: 10m
121       memory: 200Mi
122   large:
123     limits:
124       cpu: 1
125       memory: 500Mi
126     requests:
127       cpu: 10m
128       memory: 200Mi
129   unlimited: {}