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