[CASSANDRA] Change values to makre Cassandra instances more stable
[oom.git] / kubernetes / dcaegen2 / components / dcae-inventory-api / values.yaml
1 #============LICENSE_START========================================================
2 # ================================================================================
3 # Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #     http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 # ============LICENSE_END=========================================================
17
18 #################################################################
19 # Global configuration defaults.
20 #################################################################
21 global:
22   nodePortPrefix: 302
23   tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0
24
25 secrets:
26   - uid: pg-user-creds
27     name: &pgUserCredsSecretName '{{ include "common.release" . }}-dcae-inventory-api-pg-user-creds'
28     type: basicAuth
29     externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "dcae-inventory-api-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
30     login: '{{ .Values.postgres.config.pgUserName }}'
31     password: '{{ .Values.postgres.config.pgUserPassword }}'
32     passwordPolicy: generate
33
34 config:
35   logstashServiceName: log-ls
36   logstashPort: 5044
37   # Addresses of other ONAP entities
38   address:
39     consul:
40       host: consul-server
41       port: 8500
42
43 #################################################################
44 # Application configuration defaults.
45 #################################################################
46 # application image
47 image: onap/org.onap.dcaegen2.platform.inventory-api:3.5.2
48
49 pullPolicy: Always
50
51 # probe configuration parameters
52 liveness:
53   initialDelaySeconds: 10
54   periodSeconds: 10
55   # necessary to disable liveness probe when setting breakpoints
56   # in debugger so K8s doesn't restart unresponsive container
57   # liveness not desirable for Cloudify Manager container
58   enabled: false
59
60 readiness:
61   initialDelaySeconds: 30
62   periodSeconds: 30
63   path: /dcae-service-types
64   scheme: HTTPS
65
66 service:
67   type: ClusterIP
68   name: inventory
69   externalPort: 8080
70   internalPort: 8080
71
72 # application configuration override for postgres
73 postgres:
74   nameOverride: dcae-inv-pg
75   service:
76     name: dcae-inv-postgres
77     name2: dcae-inv-pg-primary
78     name3: dcae-inv-pg-replica
79   container:
80     name:
81       primary: dcae-inv-pg-primary
82       replica: dcae-inv-pg-replica
83   config:
84     pgUserName: dcae_inv
85     pgUserExternalSecret: *pgUserCredsSecretName
86     pgDatabase: dcae_inventory
87   persistence:
88     mountSubPath: dcae-inv/data
89     mountInitPath: dcae-inv
90
91 # Resource Limit flavor -By Default using small
92 flavor: small
93 # Segregation for Different environment (Small and Large)
94 resources:
95   small:
96     limits:
97       cpu: 2
98       memory: 2Gi
99     requests:
100       cpu: 1
101       memory: 1Gi
102   large:
103     limits:
104       cpu: 4
105       memory: 4Gi
106     requests:
107       cpu: 2
108       memory: 2Gi
109   unlimited: {}
110 # Kubernetes namespace for components deployed via Cloudify manager
111 # If empty, use the common namespace
112 # dcae_ns: "dcae"
113
114 #Pods Service Account
115 serviceAccount:
116   nameOverride: dcae-inventory-api
117   roles:
118     - read