redis config optimization
[oom.git] / kubernetes / dcaegen2 / components / dcae-redis / values.yaml
1 # Copyright © 2017 Amdocs, AT&T, Bell Canada
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:
19   nodePortPrefix: 302
20   readinessRepository: oomk8s
21   readinessImage: readiness-check:2.0.0
22   loggingRepository: docker.elastic.co
23   loggingImage: beats/filebeat:5.5.0
24   persistence: {}
25
26 #################################################################
27 # Application configuration defaults.
28 #################################################################
29 # application image
30 repository: nexus3.onap.org:10001
31 image: onap/org.onap.dcaegen2.deployments.redis-cluster-container:1.0.0
32 pullPolicy: Always
33
34 # application configuration
35 # Example:
36 config: {}
37
38 # default number of instances
39 replicaCount: 3
40
41 nodeSelector: {}
42
43 affinity: {}
44
45 # probe configuration parameters
46 liveness:
47   initialDelaySeconds: 60
48   periodSeconds: 10
49   timeoutSeconds: 10
50   # necessary to disable liveness probe when setting breakpoints
51   # in debugger so K8s doesn't restart unresponsive container
52   enabled: true
53
54 readiness:
55   initialDelaySeconds: 15
56   periodSeconds: 10
57
58 service:
59   #Example service definition with external, internal and node ports.
60   #Services may use any combination of ports depending on the 'type' of
61   #service being defined.
62   type: ClusterIP
63   name: dcae-redis
64   portName: client
65   externalPort: 6379
66   internalPort: 6379
67   portName2: gossip
68   externalPort2: 16379
69   internalPort2: 16379
70
71 ## Persist data to a persitent volume
72 persistence:
73   enabled: true
74
75   ## A manually managed Persistent Volume and Claim
76   ## Requires persistence.enabled: true
77   ## If defined, PVC must be created manually before volume will be bound
78   # existingClaim:
79   volumeReclaimPolicy: Retain
80
81   ## database data Persistent Volume Storage Class
82   ## If defined, storageClassName: <storageClass>
83   ## If set to "-", storageClassName: "", which disables dynamic provisioning
84   ## If undefined (the default) or set to null, no storageClassName spec is
85   ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
86   ##   GKE, AWS & OpenStack)
87   accessMode: ReadWriteOnce
88   size: 10Mi
89   mountPath: /dockerdata-nfs
90   mountSubPath: redis/data
91
92 ingress:
93   enabled: false
94   service:
95     - baseaddr: "dcaeredis"
96       name: "dcae-redis"
97       port: 6379
98     - baseaddr: "dcaeredisgossip"
99       name: "dcae-redis"
100       port: 16379
101   config:
102     ssl: "none"
103 # Resource Limit flavor -By Default using small
104 flavor: small
105 # Segregation for Different environment (Small and Large)
106 resources:
107   small:
108     limits:
109       cpu: 2
110       memory: 2Gi
111     requests:
112       cpu: 1
113       memory: 1Gi
114   large:
115     limits:
116       cpu: 4
117       memory: 4Gi
118     requests:
119       cpu: 2
120       memory: 2Gi
121   unlimited: {}