blob: 62964ff97352b57079a06d547fd4e2fcf4e9a241 [file] [log] [blame]
Alexander Dehnab86ec12020-02-05 14:38:54 +00001# Copyright © 2020 Bitnami, AT&T, Amdocs, Bell Canada, highstreet technologies
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#################################################################
18global:
19 persistence:
20 mountPath: /dockerdata-nfs
21 backup:
22 mountPath: /dockerdata-nfs/backup
23 storageClass:
24 clusterName: cluster.local
Sylvain Desbureaux829344b2020-11-19 17:07:26 +010025
Alexander Dehnab86ec12020-02-05 14:38:54 +000026#################################################################
27# Application configuration defaults.
28#################################################################
29# application image
30## Elasticsearch curator parameters
31##
32enabled: false
33name: curator
Alexander Dehnc2a36862020-09-02 11:48:20 +000034image: bitnami/elasticsearch-curator:5.8.1-debian-9-r74
35pullPolicy: IfNotPresent
36## Optionally specify an array of imagePullSecrets.
37## Secrets must be manually created in the namespace.
38## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
39##
40# pullSecrets:
41# - myRegistryKeySecretName
Alexander Dehnab86ec12020-02-05 14:38:54 +000042service:
43 port: 9200
44cronjob:
45 # At 01:00 every day
46 schedule: "0 1 * * *"
47 annotations: {}
48 concurrencyPolicy: ""
49 failedJobsHistoryLimit: ""
50 successfulJobsHistoryLimit: ""
51 jobRestartPolicy: Never
52podAnnotations: {}
53rbac:
54 # Specifies whether RBAC should be enabled
55 enabled: false
56serviceAccount:
57 # Specifies whether a ServiceAccount should be created
58 create: true
59 # The name of the ServiceAccount to use.
60 # If not set and create is true, a name is generated using the fullname template
61 name:
62psp:
63 # Specifies whether a podsecuritypolicy should be created
64 create: false
65hooks:
66 install: false
67 upgrade: false
68# run curator in dry-run mode
69dryrun: false
70command: ["curator"]
71env: {}
72configMaps:
73 # Delete indices older than 90 days
74 action_file_yml: |-
75 ---
76 actions:
77 1:
78 action: delete_indices
79 description: "Clean up ES by deleting old indices"
80 options:
81 timeout_override:
82 continue_if_exception: False
83 disable_action: False
84 ignore_empty_list: True
85 filters:
86 - filtertype: age
87 source: name
88 direction: older
89 timestring: '%Y.%m.%d'
90 unit: days
91 unit_count: 90
92 field:
93 stats_result:
94 epoch:
95 exclude: False
96 # Default config (this value is evaluated as a template)
97 config_yml: |-
98 ---
99 client:
100 hosts:
101 {{ template "common.fullname" . }}.{{ template "common.namespace" . }}.svc.{{ .Values.global.clusterName }}
102 port: {{ .Values.service.port }}
103 # url_prefix:
104 # use_ssl: True
105 # certificate:
106 # client_cert:
107 # client_key:
108 # ssl_no_validate: True
109 # http_auth:
110 # timeout: 30
111 # master_only: False
112 # logging:
113 # loglevel: INFO
114 # logfile:
115 # logformat: default
116 # blacklist: ['elasticsearch', 'urllib3']
117## Curator resources requests and limits
118## ref: http://kubernetes.io/docs/user-guide/compute-resources/
119##
120resources:
121 # We usually recommend not to specify default resources and to leave this as a conscious
122 # choice for the user. This also increases chances charts run on environments with little
123 # resources, such as Minikube. If you do want to specify resources, uncomment the following
124 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
125 limits: {}
126 # cpu: 100m
127 # memory: 128Mi
128 requests: {}
129 # cpu: 100m
130 # memory: 128Mi
131priorityClassName: ""
132# extraVolumes and extraVolumeMounts allows you to mount other volumes
133# Example Use Case: mount ssl certificates when elasticsearch has tls enabled
134# extraVolumes:
135# - name: es-certs
136# secret:
137# defaultMode: 420
138# secretName: es-certs
139# extraVolumeMounts:
140# - name: es-certs
141# mountPath: /certs
142# readOnly: true
143## Add your own init container or uncomment and modify the given example.
144##
145extraInitContainers: {}
146## Don't configure S3 repository till Elasticsearch is reachable.
147## Ensure that it is available at http://elasticsearch:9200
148##
149# elasticsearch-s3-repository:
150# image: bitnami/minideb:latest
151# imagePullPolicy: "IfNotPresent"
152# command:
153# - "/bin/bash"
154# - "-c"
155# args:
156# - |
157# ES_HOST=elasticsearch
158# ES_PORT=9200
159# ES_REPOSITORY=backup
160# S3_REGION=us-east-1
161# S3_BUCKET=bucket
162# S3_BASE_PATH=backup
163# S3_COMPRESS=true
164# S3_STORAGE_CLASS=standard
165# install_packages curl && \
166# ( counter=0; while (( counter++ < 120 )); do curl -s http://${ES_HOST}:${ES_PORT} >/dev/null 2>&1 && break; echo "Waiting for elasticsearch $counter/120"; sleep 1; done ) && \
167# cat <<EOF | curl -sS -XPUT -H "Content-Type: application/json" -d @- http://${ES_HOST}:${ES_PORT}/_snapshot/${ES_REPOSITORY} \
168# {
169# "type": "s3",
170# "settings": {
171# "bucket": "${S3_BUCKET}",
172# "base_path": "${S3_BASE_PATH}",
173# "region": "${S3_REGION}",
174# "compress": "${S3_COMPRESS}",
175# "storage_class": "${S3_STORAGE_CLASS}"
176# }
177# }
178