1 # Copyright (c) 2020 Bitnami, AT&T, Amdocs, Bell Canada, highstreet technologies
2 # Modification Copyright (c) 2020 Nokia
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 #################################################################
17 # Global configuration defaults.
18 #################################################################
22 clusterName: cluster.local
25 mountPath: /dockerdata-nfs
27 mountPath: /dockerdata-nfs/backup
30 #################################################################
31 # Application configuration defaults.
32 #################################################################
33 ## Init containers parameters:
38 image: bitnami/elasticsearch:7.9.3
39 ## Specify a imagePullPolicy
40 ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
41 ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
43 pullPolicy: IfNotPresent
44 ## Optionally specify an array of imagePullSecrets.
45 ## Secrets must be manually created in the namespace.
46 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
49 # - myRegistryKeySecretName
50 ## Set to true if you would like to see extra information on logs
51 ## ref: https://github.com/bitnami/minideb-extras/#turn-on-bash-debugging
55 ## String to partially override common.fullname template (will maintain the release name)
59 ## String to fully override common.fullname template
62 ## updateStrategy for ElasticSearch coordinating deployment
63 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
68 ## Provide annotations for the coordinating-only pods.
71 ## Pod Security Context for coordinating-only pods.
72 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
78 ## Affinity for pod assignment.
79 ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
82 ## Node labels for pod assignment. Evaluated as a template.
83 ## Ref: https://kubernetes.io/docs/user-guide/node-selection/
86 ## Tolerations for pod assignment. Evaluated as a template.
87 ## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
90 ## Elasticsearch coordinating-only container's resource requests and limits
91 ## ref: http://kubernetes.io/docs/user-guide/compute-resources/
94 ## We usually recommend not to specify default resources and to leave this as a conscious
95 ## choice for the user. This also increases chances charts run on environments with little
96 ## resources, such as Minikube.
103 ## Elasticsearch coordinating-only container's liveness and readiness probes
104 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
108 # initialDelaySeconds: 90
111 # successThreshold: 1
112 # failureThreshold: 5
115 # initialDelaySeconds: 90
118 # successThreshold: 1
119 # failureThreshold: 5
120 ## Service parameters for coordinating-only node(s)
123 ## Specifies whether a ServiceAccount should be created for the coordinating node
126 ## The name of the ServiceAccount to use.
127 ## If not set and create is true, a name is generated using the fullname template
133 ## Specify a imagePullPolicy
134 ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
135 ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
138 ## Optionally specify an array of imagePullSecrets.
139 ## Secrets must be manually created in the namespace.
140 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
143 # - myRegistryKeySecretName
147 pullPolicy: IfNotPresent
151 - name: elasticsearch
153 ## Custom server block to be added to NGINX configuration
154 ## PHP-FPM example server block:
160 # auth_basic "server auth";
161 # auth_basic_user_file /etc/nginx/passwords;
162 ssl_certificate /opt/app/osaaf/local/certs/cert.pem;
163 ssl_certificate_key /opt/app/osaaf/local/certs/key.pem;
165 # deny node shutdown api
166 if ($request_filename ~ "_shutdown") {
171 proxy_pass http://localhost:9000;
172 proxy_http_version 1.1;
173 proxy_set_header Connection "Keep-Alive";
174 proxy_set_header Proxy-Connection "Keep-Alive";
175 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
176 proxy_set_header X-Forwarded-Proto $scheme;
177 proxy_set_header X-Real-IP $remote_addr;
178 proxy_set_header Host $http_host;
183 proxy_pass http://localhost:9000;
184 proxy_http_version 1.1;
185 proxy_set_header Connection "Keep-Alive";
186 proxy_set_header Proxy-Connection "Keep-Alive";
196 # deny node shutdown api
197 if ($request_filename ~ "_shutdown") {
202 proxy_pass http://localhost:9000;
203 proxy_http_version 1.1;
204 proxy_set_header Connection "Keep-Alive";
205 proxy_set_header Proxy-Connection "Keep-Alive";
206 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
207 proxy_set_header X-Forwarded-Proto $scheme;
208 proxy_set_header X-Real-IP $remote_addr;
209 proxy_set_header Host $http_host;
214 proxy_pass http://localhost:9000;
215 proxy_http_version 1.1;
216 proxy_set_header Connection "Keep-Alive";
217 proxy_set_header Proxy-Connection "Keep-Alive";
222 #################################################################
223 # coordinating service configuration defaults.
224 #################################################################
229 ## coordinating-only service type
233 - name: http-transport
238 service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
239 publishNotReadyAddresses: true
240 ## Elasticsearch tREST API port
243 - name: elasticsearch
247 ## Specify the nodePort value for the LoadBalancer and NodePort service types.
248 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
251 ## Provide any additional annotations which may be required. This can be used to
252 ## set the LoadBalancer service type to internal only.
253 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
256 ## Set the LoadBalancer service type to internal only.
257 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
260 ## Provide functionality to use RBAC
263 #################################################################
264 # Certificate configuration
265 #################################################################
267 nameOverride: elasticsearch-cert-initializer
268 aafDeployFqi: deployer@people.osaaf.org
269 aafDeployPass: demo123456!
270 # aafDeployCredsExternalSecret: some secret
272 app_ns: "org.osaaf.aaf"
273 fqi_namespace: "org.onap.elastic"
274 fqi: "elastic@elastic.onap.org"
275 public_fqdn: "aaf.osaaf.org"
276 cadi_longitude: "0.0"
278 credsPath: /opt/app/osaaf/local
280 cd {{ .Values.credsPath }};
282 export $(/opt/app/aaf_config/bin/agent.sh local showpass | grep '^c' | xargs -0);
283 keytool -exportcert -rfc -file certs/cacert.pem -keystore {{ .Values.fqi_namespace }}.trust.jks -alias ca_local_0 -storepass $cadi_truststore_password;
284 openssl pkcs12 -in {{ .Values.fqi_namespace }}.p12 -out certs/cert.pem -passin pass:$cadi_keystore_password_p12 -passout pass:$cadi_keystore_password_p12;
285 cp {{ .Values.fqi_namespace }}.key certs/key.pem;
288 #################################################################
289 # subcharts configuration defaults.
290 #################################################################
299 ## Change nameOverride to be consistent accross all elasticsearch (sub)-charts
303 # dedicatednode: "yes"
304 # working as master node only, in this case increase replicaCount for elasticsearch-data
305 # dedicatednode: "no"
306 # handles master and data node functionality
308 cluster_name: elasticsearch
311 cluster_name: elasticsearch