[DCAEMOD] Uses new tpls for repos / images
[oom.git] / kubernetes / clamp / 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   readinessImage: onap/oom/readiness:3.0.1
22   loggingRepository: docker.elastic.co
23   loggingImage: beats/filebeat:5.5.0
24   centralizedLoggingEnabled: true
25   #AAF service
26   aafEnabled: true
27
28 #################################################################
29 # AAF part
30 #################################################################
31 certInitializer:
32   permission_user: 1000
33   permission_group: 999
34   addconfig: true
35   keystoreFile: "org.onap.clamp.p12"
36   truststoreFile: "org.onap.clamp.trust.jks"
37   keyFile: "org.onap.clamp.keyfile"
38   truststoreFileONAP: "truststoreONAPall.jks"
39   clamp_key: "clamp.key"
40   clamp_pem: "clamp.pem"
41   clamp_ca_certs_pem: "clamp-ca-certs.pem"
42   nameOverride: clamp-cert-initializer
43   aafDeployFqi: deployer@people.osaaf.org
44   aafDeployPass: demo123456!
45   # aafDeployCredsExternalSecret: some secret
46   fqdn: clamp
47   fqi: clamp@clamp.onap.org
48   public_fqdn: clamp.onap.org
49   cadi_longitude: "0.0"
50   cadi_latitude: "0.0"
51   app_ns: org.osaaf.aaf
52   credsPath: /opt/app/osaaf/local
53   aaf_add_config: >
54     /opt/app/aaf_config/bin/agent.sh local showpass {{.Values.fqi}} {{ .Values.fqdn }} > {{ .Values.credsPath }}/mycreds.prop;
55     export $(/opt/app/aaf_config/bin/agent.sh local showpass | grep '^c' | xargs -0);
56     cd {{ .Values.credsPath }};
57     openssl pkcs12 -in {{ .Values.keystoreFile }} -nocerts -nodes -passin pass:$cadi_keystore_password_p12 > {{ .Values.clamp_key }};
58     openssl pkcs12 -in {{ .Values.keystoreFile }} -clcerts -nokeys -passin pass:$cadi_keystore_password_p12 > {{ .Values.clamp_pem }};
59     openssl pkcs12 -in {{ .Values.keystoreFile }} -cacerts -nokeys -chain -passin pass:$cadi_keystore_password_p12 > {{ .Values.clamp_ca_certs_pem }};
60     chmod a+rx *;
61
62 secrets:
63   - uid: db-root-pass
64     name: &dbRootPass '{{ include "common.release" . }}-clamp-db-root-pass'
65     type: password
66     password: '{{ .Values.db.rootPass }}'
67   - uid: db-secret
68     name: &dbUserPass '{{ include "common.release" . }}-clamp-db-user-pass'
69     type: basicAuth
70     login: '{{ .Values.db.user }}'
71     password: '{{ .Values.db.password }}'
72
73 db:
74   user: clds
75 #  password: sidnnd83K
76   databaseName: &dbName cldsdb4
77 #    rootPass: emrys  user: testos
78
79 clamp-backend:
80   db:
81     userCredsExternalSecret: *dbUserPass
82     databaseName: *dbName
83 clamp-mariadb:
84   db:
85     rootCredsExternalSecret: *dbRootPass
86     userCredsExternalSecret: *dbUserPass
87     databaseName: *dbName
88
89 subChartsOnly:
90   enabled: true
91
92 flavor: small
93
94 # application image
95 repository: nexus3.onap.org:10001
96 image: onap/clamp-frontend:5.1.5
97 pullPolicy: Always
98
99 # flag to enable debugging - application support required
100 debugEnabled: false
101
102 # log configuration
103 log:
104   path: /var/log/nginx/
105
106 #################################################################
107 # Application configuration defaults.
108 #################################################################
109 config:
110   log:
111     logstashServiceName: log-ls
112     logstashPort: 5044
113   dataRootDir: /dockerdata-nfs
114
115 # default number of instances
116 replicaCount: 1
117
118 nodeSelector: {}
119
120 affinity: {}
121
122 # probe configuration parameters
123 liveness:
124   initialDelaySeconds: 120
125   periodSeconds: 10
126   timeoutSeconds: 3
127   # necessary to disable liveness probe when setting breakpoints
128   # in debugger so K8s doesn't restart unresponsive container
129   enabled: true
130
131 readiness:
132   initialDelaySeconds: 10
133   periodSeconds: 10
134   timeoutSeconds: 3
135
136 service:
137   type: NodePort
138   name: clamp-external
139   portName: clamp-external
140   internalPort: 2443
141   nodePort: 58
142
143   # as of 20180904 port 58 is reserved for clamp from log/logdemonode
144   # see https://wiki.onap.org/display/DW/OOM+NodePort+List
145
146   type2: ClusterIP
147   name2: clamp
148   portName2: clamp-internal
149   internalPort2: 2443
150   externalPort2: 8443
151
152 ingress:
153   enabled: false
154   service:
155     - baseaddr: "clamp.api"
156       name: "clamp"
157       port: 2443
158   config:
159     ssl: "redirect"
160
161 #resources: {}
162   # We usually recommend not to specify default resources and to leave this as a conscious
163   # choice for the user. This also increases chances charts run on environments with little
164   # resources, such as Minikube. If you do want to specify resources, uncomment the following
165   # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
166   #
167   # Example:
168   # Configure resource requests and limits
169   # ref: http://kubernetes.io/docs/user-guide/compute-resources/
170   # Minimum memory for development is 2 CPU cores and 4GB memory
171   # Minimum memory for production is 4 CPU cores and 8GB memory
172 resources:
173   small:
174     limits:
175       cpu: 1
176       memory: 200Mi
177     requests:
178       cpu: 1m
179       memory: 50Mi
180   large:
181     limits:
182       cpu: 1
183       memory: 500Mi
184     requests:
185       cpu: 10m
186       memory: 50Mi
187   unlimited: {}