├── .editorconfig ├── .github ├── ISSUE_TEMPLATE.md └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .helmignore ├── .travis.yml ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Chart.yaml ├── LICENSE ├── README.md ├── templates ├── NOTES.txt ├── _helpers.tpl ├── es-client.yaml ├── es-curator-config.yaml ├── es-curator.yaml ├── es-data-svc.yaml ├── es-data.yaml ├── es-discovery-svc.yaml ├── es-master.yaml ├── es-svc.yaml ├── kibana-ingress.yaml ├── kibana-svc.yaml └── kibana.yaml └── values.yaml /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | indent_size = 4 7 | indent_style = space 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*.yaml] 12 | indent_size = 2 13 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | --- 4 | 5 | **Is this a BUG REPORT or FEATURE REQUEST?** (choose one): 6 | 7 | 20 | 21 | **Version of Helm and Kubernetes**: 22 | 23 | 24 | **What happened**: 25 | 26 | 27 | **What you expected to happen**: 28 | 29 | 30 | **How to reproduce it** (as minimally and precisely as possible): 31 | 32 | 33 | **Anything else we need to know**: 34 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ***************************************************************************************** 2 | 3 | Thank you for contributing to clockworksoul/helm-elasticsearch. Before you submit this PR we'd like to 4 | make sure you are aware of our technical requirements and best practices: 5 | 6 | * https://github.com/clockworksoul/helm-elasticsearch/blob/docs/contributing-guide/CONTRIBUTING.md#technical-requirements 7 | * https://github.com/kubernetes/helm/tree/master/docs/chart_best_practices 8 | 9 | ***************************************************************************************** 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # for osx 2 | .DS_Store 3 | -------------------------------------------------------------------------------- /.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). 4 | # Only one pattern per line. 5 | .DS_Store 6 | # Common VCS dirs 7 | .git/ 8 | .gitignore 9 | .bzr/ 10 | .bzrignore 11 | .hg/ 12 | .hgignore 13 | .svn/ 14 | # Common backup files 15 | *.swp 16 | *.bak 17 | *.tmp 18 | *~ 19 | # Various IDEs 20 | .project 21 | .idea/ 22 | *.tmproj 23 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: generic 2 | 3 | sudo: false 4 | 5 | env: 6 | global: 7 | - HELM_VERSION=2.7.2 8 | 9 | install: 10 | - wget https://storage.googleapis.com/kubernetes-helm/helm-v${HELM_VERSION}-linux-amd64.tar.gz 11 | - tar xzf helm-v${HELM_VERSION}-linux-amd64.tar.gz --strip 1 linux-amd64/helm 12 | - ./helm init --client-only 13 | 14 | # The directory name must match the chart name 15 | before_script: 16 | - export TRAVIS_BASE_BUILD_DIR=$(dirname $TRAVIS_BUILD_DIR) 17 | - ln -s $TRAVIS_BUILD_DIR $TRAVIS_BASE_BUILD_DIR/elasticsearch 18 | - cd $TRAVIS_BASE_BUILD_DIR/elasticsearch 19 | 20 | script: ./helm lint 21 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. 6 | 7 | ## Our Standards 8 | 9 | Examples of behavior that contributes to creating a positive environment include: 10 | 11 | * Using welcoming and inclusive language 12 | * Being respectful of differing viewpoints and experiences 13 | * Gracefully accepting constructive criticism 14 | * Focusing on what is best for the community 15 | * Showing empathy towards other community members 16 | 17 | Examples of unacceptable behavior by participants include: 18 | 19 | * The use of sexualized language or imagery and unwelcome sexual attention or advances 20 | * Trolling, insulting/derogatory comments, and personal or political attacks 21 | * Public or private harassment 22 | * Publishing others' private information, such as a physical or electronic address, without explicit permission 23 | * Other conduct which could reasonably be considered inappropriate in a professional setting 24 | 25 | ## Our Responsibilities 26 | 27 | Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. 28 | 29 | Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. 30 | 31 | ## Scope 32 | 33 | This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. 34 | 35 | ## Enforcement 36 | 37 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. 38 | 39 | Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. 40 | 41 | ## Attribution 42 | 43 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] 44 | 45 | [homepage]: http://contributor-covenant.org 46 | [version]: http://contributor-covenant.org/version/1/4/ 47 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | When contributing to this repository, please first discuss the change you wish to make via issue, 4 | email, or any other method with the owners of this repository before making a change. 5 | 6 | Please note we have a code of conduct, please follow it in all your interactions with the project. 7 | 8 | ## Code of Conduct 9 | 10 | This project and everyone participating in it is governed by the [Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. 11 | 12 | ## How to Contribute 13 | 14 | 1. Fork this repository, develop and test your Chart. 15 | 1. Ensure your Chart follows the [technical](#technical-requirements) guidelines, described below. 16 | 1. Submit a pull request. 17 | 18 | ### Technical requirements 19 | 20 | * All Chart dependencies should also be submitted independently 21 | * Must pass the linter (`helm lint`) 22 | * Must successfully launch with default values (`helm install .`) 23 | * All pods go to the running state 24 | * All services have at least one endpoint 25 | * Must include source GitHub repositories for images used in the Chart 26 | * Images should not have any major security vulnerabilities 27 | * Must be up-to-date with the latest stable Helm/Kubernetes features 28 | * Use Deployments in favor of ReplicationControllers 29 | * Should follow Kubernetes best practices 30 | * Include Health Checks wherever practical 31 | * Allow configurable [resource requests and limits](http://kubernetes.io/docs/user-guide/compute-resources/#resource-requests-and-limits-of-pod-and-container) 32 | * Provide a method for data persistence (if applicable) 33 | * Support application upgrades 34 | * Allow customization of the application configuration 35 | * Provide a secure default configuration 36 | * Do not leverage alpha features of Kubernetes 37 | * Follows [best practices](https://github.com/kubernetes/helm/tree/master/docs/chart_best_practices) 38 | (especially for [labels](https://github.com/kubernetes/helm/blob/master/docs/chart_best_practices/labels.md) 39 | and [values](https://github.com/kubernetes/helm/blob/master/docs/chart_best_practices/values.md)) 40 | -------------------------------------------------------------------------------- /Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | name: elasticsearch 3 | home: https://www.elastic.co/products/elasticsearch 4 | version: 0.2.2 5 | description: Elasticsearch is a distributed, RESTful search and analytics engine capable of solving a growing number of use cases. 6 | icon: https://static-www.elastic.co/assets/blteb1c97719574938d/logo-elastic-elasticsearch-lt.svg 7 | sources: 8 | - https://www.elastic.co/products/elasticsearch 9 | - https://github.com/pires/kubernetes-elasticsearch-cluster 10 | maintainers: 11 | - name: Matt Titmus 12 | email: matthew.titmus@gmail.com 13 | engine: gotpl 14 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | 203 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## This project is no longer maintained 2 | 3 | Dear friends and collegues. Given that the [pires/kubernetes-elasticsearch-cluster](https://github.com/pires/kubernetes-elasticsearch-cluster) repository -- the source of truth for this project -- is no longer maintained, and given that I don't have any time or energy to maintain this repository either, I've decided to cease maintaining it. I'll now archive it in hope that it can still serve some historical value. 4 | 5 | Thank you all for your help and your support! 6 | 7 | ## helm-elasticsearch 8 | 9 | [![Build Status](https://img.shields.io/travis/clockworksoul/helm-elasticsearch.svg?style=flat-square)](https://travis-ci.org/clockworksoul/helm-elasticsearch) 10 | 11 | An Elasticsearch cluster on top of Kubernetes, made easier. 12 | 13 | A [Helm](https://github.com/kubernetes/helm) chart that essentially lifts-and-shifts the core manifests in the [pires/kubernetes-elasticsearch-cluster](https://github.com/pires/kubernetes-elasticsearch-cluster) project. 14 | 15 | ## Deploying with Helm 16 | 17 | With Helm properly installed and configured, standing up a complete cluster is almost trivial: 18 | 19 | ``` 20 | $ git clone https://github.com/clockworksoul/helm-elasticsearch.git elasticsearch 21 | $ helm install elasticsearch 22 | ``` 23 | 24 | ## Contributing 25 | 26 | Please do! Taking pull requests. 27 | -------------------------------------------------------------------------------- /templates/NOTES.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clockworksoul/helm-elasticsearch/30bca7902c44a5c7ab6f714ece7f4beb3411526f/templates/NOTES.txt -------------------------------------------------------------------------------- /templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 53 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 53 chars (63 - len("-discovery")) because some Kubernetes name fields are limited to 63 (by the DNS naming spec). 12 | */}} 13 | {{- define "fullname" -}} 14 | {{- $name := default .Chart.Name .Values.nameOverride -}} 15 | {{- printf "%s-%s" .Release.Name $name | trunc 53 | trimSuffix "-" -}} 16 | {{- end -}} 17 | 18 | {{/* 19 | Return the appropriate apiVersion for Curactor cron job. 20 | */}} 21 | {{- define "curator.cronJob.apiVersion" -}} 22 | {{- if ge .Capabilities.KubeVersion.Minor "8" -}} 23 | "batch/v1beta1" 24 | {{- else -}} 25 | "batch/v2alpha1" 26 | {{- end -}} 27 | {{- end -}} 28 | -------------------------------------------------------------------------------- /templates/es-client.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1beta1 2 | kind: Deployment 3 | metadata: 4 | name: {{ template "fullname" . }}-client 5 | labels: 6 | app: {{ template "fullname" . }} 7 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" 8 | release: "{{ .Release.Name }}" 9 | heritage: "{{ .Release.Service }}" 10 | component: {{ template "fullname" . }} 11 | role: client 12 | spec: 13 | replicas: {{ .Values.client.replicas }} 14 | template: 15 | metadata: 16 | labels: 17 | component: {{ template "fullname" . }} 18 | role: client 19 | spec: 20 | {{- if eq .Values.client.antiAffinity "hard" }} 21 | affinity: 22 | podAntiAffinity: 23 | requiredDuringSchedulingIgnoredDuringExecution: 24 | - topologyKey: "kubernetes.io/hostname" 25 | labelSelector: 26 | matchLabels: 27 | component: {{ template "fullname" . }} 28 | role: client 29 | {{- else if eq .Values.client.antiAffinity "soft" }} 30 | affinity: 31 | podAntiAffinity: 32 | preferredDuringSchedulingIgnoredDuringExecution: 33 | - weight: 1 34 | podAffinityTerm: 35 | topologyKey: "kubernetes.io/hostname" 36 | labelSelector: 37 | matchLabels: 38 | component: {{ template "fullname" . }} 39 | role: client 40 | {{- end }} 41 | initContainers: 42 | - name: init-sysctl 43 | image: "{{ .Values.image.init.repository }}:{{ .Values.image.init.tag }}" 44 | imagePullPolicy: {{ .Values.image.init.pullPolicy }} 45 | command: ["sysctl", "-w", "vm.max_map_count=262144"] 46 | securityContext: 47 | privileged: true 48 | containers: 49 | - name: es-client 50 | securityContext: 51 | privileged: false 52 | capabilities: 53 | add: 54 | - IPC_LOCK 55 | - SYS_RESOURCE 56 | image: "{{ .Values.image.es.repository }}:{{ .Values.image.es.tag }}" 57 | imagePullPolicy: {{ .Values.image.es.pullPolicy }} 58 | env: 59 | - name: NAMESPACE 60 | valueFrom: 61 | fieldRef: 62 | fieldPath: metadata.namespace 63 | - name: NODE_NAME 64 | valueFrom: 65 | fieldRef: 66 | fieldPath: metadata.name 67 | - name: DISCOVERY_SERVICE 68 | value: {{ template "fullname" . }}-discovery 69 | {{- range $key, $value := .Values.common.env }} 70 | - name: {{ $key | upper | replace "-" "_" }} 71 | value: {{ $value | quote }} 72 | {{- end }} 73 | {{- range $key, $value := .Values.client.env }} 74 | - name: {{ $key | upper | replace "-" "_" }} 75 | value: {{ $value | quote }} 76 | {{- end }} 77 | - name: "ES_JAVA_OPTS" 78 | value: "-Xms{{ .Values.client.heapMemory }} -Xmx{{ .Values.client.heapMemory }}" 79 | resources: 80 | {{ toYaml .Values.client.resources | indent 10 }} 81 | ports: 82 | - containerPort: 9200 83 | name: http 84 | protocol: TCP 85 | - containerPort: 9300 86 | name: transport 87 | protocol: TCP 88 | livenessProbe: 89 | tcpSocket: 90 | port: 9300 91 | readinessProbe: 92 | httpGet: 93 | path: /_cluster/health 94 | port: 9200 95 | initialDelaySeconds: 20 96 | timeoutSeconds: 5 97 | volumeMounts: 98 | - name: storage 99 | mountPath: /data 100 | volumes: 101 | - emptyDir: 102 | medium: "" 103 | name: "storage" -------------------------------------------------------------------------------- /templates/es-curator-config.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.curator.enabled }} 2 | apiVersion: v1 3 | kind: ConfigMap 4 | metadata: 5 | name: {{ template "fullname" . }}-curator-config 6 | labels: 7 | app: {{ template "fullname" . }} 8 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" 9 | release: "{{ .Release.Name }}" 10 | heritage: "{{ .Release.Service }}" 11 | data: 12 | action_file.yml: |- 13 | --- 14 | # Remember, leave a key empty if there is no value. None will be a string, 15 | # not a Python "NoneType" 16 | # 17 | # Also remember that all examples have 'disable_action' set to True. If you 18 | # want to use this action as a template, be sure to set this to False after 19 | # copying it. 20 | actions: 21 | 1: 22 | action: delete_indices 23 | description: "Clean up ES by deleting old indices" 24 | options: 25 | timeout_override: 26 | continue_if_exception: False 27 | disable_action: False 28 | filters: 29 | - filtertype: age 30 | source: name 31 | direction: older 32 | timestring: '{{ .Values.curator.age.timestring }}' 33 | unit: {{ .Values.curator.age.unit }} 34 | unit_count: {{ .Values.curator.age.unit_count }} 35 | field: 36 | stats_result: 37 | epoch: 38 | exclude: False 39 | config.yml: |- 40 | --- 41 | # Remember, leave a key empty if there is no value. None will be a string, 42 | # not a Python "NoneType" 43 | client: 44 | hosts: 45 | - {{ template "fullname" . }} 46 | port: {{ .Values.service.httpPort }} 47 | url_prefix: 48 | use_ssl: False 49 | certificate: 50 | client_cert: 51 | client_key: 52 | ssl_no_validate: False 53 | http_auth: 54 | timeout: 30 55 | master_only: False 56 | logging: 57 | loglevel: INFO 58 | logfile: 59 | logformat: default 60 | blacklist: ['elasticsearch', 'urllib3'] 61 | {{- end }} 62 | -------------------------------------------------------------------------------- /templates/es-curator.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.curator.enabled }} 2 | apiVersion: {{ template "curator.cronJob.apiVersion" . }} 3 | kind: CronJob 4 | metadata: 5 | name: {{ template "fullname" . }}-curator 6 | labels: 7 | app: {{ template "fullname" . }} 8 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" 9 | release: "{{ .Release.Name }}" 10 | heritage: "{{ .Release.Service }}" 11 | spec: 12 | schedule: {{ .Values.curator.schedule }} 13 | jobTemplate: 14 | spec: 15 | template: 16 | spec: 17 | containers: 18 | - name: curator 19 | image: "{{ .Values.image.curator.repository }}:{{ .Values.image.curator.tag }}" 20 | imagePullPolicy: {{ .Values.image.curator.pullPolicy }} 21 | args: ["--config", "/etc/config/config.yml", "/etc/config/action_file.yml"] 22 | volumeMounts: 23 | - name: config-volume 24 | mountPath: /etc/config 25 | volumes: 26 | - name: config-volume 27 | configMap: 28 | name: {{ template "fullname" . }}-curator-config 29 | restartPolicy: OnFailure 30 | {{- end }} 31 | -------------------------------------------------------------------------------- /templates/es-data-svc.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.data.stateful.enabled }} 2 | apiVersion: v1 3 | kind: Service 4 | metadata: 5 | name: {{ template "fullname" . }}-data 6 | labels: 7 | app: {{ template "fullname" . }} 8 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" 9 | release: "{{ .Release.Name }}" 10 | heritage: "{{ .Release.Service }}" 11 | component: {{ template "fullname" . }} 12 | role: data 13 | spec: 14 | ports: 15 | - port: 9300 16 | name: transport 17 | clusterIP: None 18 | selector: 19 | component: {{ template "fullname" . }} 20 | role: data 21 | {{- end }} -------------------------------------------------------------------------------- /templates/es-data.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: {{ if .Values.common.stateful.enabled }}apps/v1beta1{{ else }}extensions/v1beta1{{ end }} 2 | kind: {{ if .Values.common.stateful.enabled }}StatefulSet{{ else }}Deployment{{ end }} 3 | metadata: 4 | name: {{ template "fullname" . }}-data 5 | labels: 6 | app: {{ template "fullname" . }} 7 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" 8 | release: "{{ .Release.Name }}" 9 | heritage: "{{ .Release.Service }}" 10 | component: {{ template "fullname" . }} 11 | role: data 12 | spec: 13 | {{- if .Values.common.stateful.enabled }} 14 | serviceName: {{ template "fullname" . }}-data 15 | {{- end }} 16 | replicas: {{ .Values.data.replicas }} 17 | template: 18 | metadata: 19 | labels: 20 | component: {{ template "fullname" . }} 21 | role: data 22 | spec: 23 | {{- if eq .Values.data.antiAffinity "hard" }} 24 | affinity: 25 | podAntiAffinity: 26 | requiredDuringSchedulingIgnoredDuringExecution: 27 | - topologyKey: "kubernetes.io/hostname" 28 | labelSelector: 29 | matchLabels: 30 | component: {{ template "fullname" . }} 31 | role: data 32 | {{- else if eq .Values.data.antiAffinity "soft" }} 33 | affinity: 34 | podAntiAffinity: 35 | preferredDuringSchedulingIgnoredDuringExecution: 36 | - weight: 1 37 | podAffinityTerm: 38 | topologyKey: "kubernetes.io/hostname" 39 | labelSelector: 40 | matchLabels: 41 | component: {{ template "fullname" . }} 42 | role: data 43 | {{- end }} 44 | initContainers: 45 | - name: init-sysctl 46 | image: "{{ .Values.image.init.repository }}:{{ .Values.image.init.tag }}" 47 | imagePullPolicy: {{ .Values.image.init.pullPolicy }} 48 | command: ["sysctl", "-w", "vm.max_map_count=262144"] 49 | securityContext: 50 | privileged: true 51 | containers: 52 | - name: es-data 53 | securityContext: 54 | privileged: {{ .Values.common.stateful.enabled }} 55 | capabilities: 56 | add: 57 | {{- if .Values.common.stateful.enabled }} 58 | - IPC_LOCK 59 | {{- else }} 60 | - IPC_LOCK 61 | - SYS_RESOURCE 62 | {{- end }} 63 | image: "{{ .Values.image.es.repository }}:{{ .Values.image.es.tag }}" 64 | imagePullPolicy: {{ .Values.image.es.pullPolicy }} 65 | env: 66 | - name: NAMESPACE 67 | valueFrom: 68 | fieldRef: 69 | fieldPath: metadata.namespace 70 | - name: NODE_NAME 71 | valueFrom: 72 | fieldRef: 73 | fieldPath: metadata.name 74 | - name: DISCOVERY_SERVICE 75 | value: {{ template "fullname" . }}-discovery 76 | - name: ES_JAVA_OPTS 77 | value: "-Xms{{ .Values.data.heapMemory }} -Xmx{{ .Values.data.heapMemory }}" 78 | {{- range $key, $value := .Values.common.env }} 79 | - name: {{ $key | upper | replace "-" "_" }} 80 | value: {{ $value | quote }} 81 | {{- end }} 82 | {{- range $key, $value := .Values.data.env }} 83 | - name: {{ $key | upper | replace "-" "_" }} 84 | value: {{ $value | quote }} 85 | {{- end }} 86 | resources: 87 | {{ toYaml .Values.data.resources | indent 10 }} 88 | ports: 89 | - containerPort: 9300 90 | name: transport 91 | protocol: TCP 92 | livenessProbe: 93 | tcpSocket: 94 | port: 9300 95 | initialDelaySeconds: 20 96 | periodSeconds: 10 97 | volumeMounts: 98 | - name: storage 99 | mountPath: /data 100 | {{- if not .Values.common.stateful.enabled }} 101 | volumes: 102 | - emptyDir: 103 | medium: "" 104 | name: "storage" 105 | {{- end }} 106 | {{- if .Values.common.stateful.enabled }} 107 | volumeClaimTemplates: 108 | - metadata: 109 | name: storage 110 | annotations: 111 | volume.beta.kubernetes.io/storage-class: {{ .Values.common.stateful.class }} 112 | spec: 113 | accessModes: [ "ReadWriteOnce" ] 114 | resources: 115 | requests: 116 | storage: {{ .Values.data.stateful.size }} 117 | {{- end }} -------------------------------------------------------------------------------- /templates/es-discovery-svc.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "fullname" . }}-discovery 5 | labels: 6 | app: {{ template "fullname" . }} 7 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" 8 | release: "{{ .Release.Name }}" 9 | heritage: "{{ .Release.Service }}" 10 | component: {{ template "fullname" . }} 11 | role: master 12 | spec: 13 | selector: 14 | component: {{ template "fullname" . }} 15 | role: master 16 | ports: 17 | - name: transport 18 | port: 9300 19 | protocol: TCP -------------------------------------------------------------------------------- /templates/es-master.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: {{ if .Values.common.stateful.enabled }}apps/v1beta1{{ else }}extensions/v1beta1{{ end }} 2 | kind: {{ if .Values.common.stateful.enabled }}StatefulSet{{ else }}Deployment{{ end }} 3 | metadata: 4 | name: {{ template "fullname" . }}-master 5 | labels: 6 | app: {{ template "fullname" . }} 7 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" 8 | release: "{{ .Release.Name }}" 9 | heritage: "{{ .Release.Service }}" 10 | component: {{ template "fullname" . }} 11 | role: master 12 | spec: 13 | {{- if .Values.common.stateful.enabled }} 14 | serviceName: {{ template "fullname" . }}-master 15 | {{- end }} 16 | replicas: {{ .Values.master.replicas }} 17 | template: 18 | metadata: 19 | labels: 20 | component: {{ template "fullname" . }} 21 | role: master 22 | spec: 23 | {{- if eq .Values.master.antiAffinity "hard" }} 24 | affinity: 25 | podAntiAffinity: 26 | requiredDuringSchedulingIgnoredDuringExecution: 27 | - topologyKey: "kubernetes.io/hostname" 28 | labelSelector: 29 | matchLabels: 30 | component: {{ template "fullname" . }} 31 | role: master 32 | {{- else if eq .Values.master.antiAffinity "soft" }} 33 | affinity: 34 | podAntiAffinity: 35 | preferredDuringSchedulingIgnoredDuringExecution: 36 | - weight: 1 37 | podAffinityTerm: 38 | topologyKey: "kubernetes.io/hostname" 39 | labelSelector: 40 | matchLabels: 41 | component: {{ template "fullname" . }} 42 | role: master 43 | {{- end }} 44 | initContainers: 45 | - name: init-sysctl 46 | image: "{{ .Values.image.init.repository }}:{{ .Values.image.init.tag }}" 47 | imagePullPolicy: {{ .Values.image.init.pullPolicy }} 48 | command: ["sysctl", "-w", "vm.max_map_count=262144"] 49 | securityContext: 50 | privileged: true 51 | containers: 52 | - name: es-master 53 | securityContext: 54 | privileged: {{ .Values.common.stateful.enabled }} 55 | capabilities: 56 | add: 57 | {{- if .Values.common.stateful.enabled }} 58 | - IPC_LOCK 59 | {{- else }} 60 | - IPC_LOCK 61 | - SYS_RESOURCE 62 | {{- end }} 63 | image: "{{ .Values.image.es.repository }}:{{ .Values.image.es.tag }}" 64 | imagePullPolicy: {{ .Values.image.es.pullPolicy }} 65 | env: 66 | - name: NAMESPACE 67 | valueFrom: 68 | fieldRef: 69 | fieldPath: metadata.namespace 70 | - name: NODE_NAME 71 | valueFrom: 72 | fieldRef: 73 | fieldPath: metadata.name 74 | - name: DISCOVERY_SERVICE 75 | value: {{ template "fullname" . }}-discovery 76 | - name: ES_JAVA_OPTS 77 | value: "-Xms{{ .Values.master.heapMemory }} -Xmx{{ .Values.master.heapMemory }}" 78 | {{- range $key, $value := .Values.common.env }} 79 | - name: {{ $key | upper | replace "-" "_" }} 80 | value: {{ $value | quote }} 81 | {{- end }} 82 | {{- range $key, $value := .Values.master.env }} 83 | - name: {{ $key | upper | replace "-" "_" }} 84 | value: {{ $value | quote }} 85 | {{- end }} 86 | resources: 87 | {{ toYaml .Values.master.resources | indent 10 }} 88 | ports: 89 | - containerPort: 9300 90 | name: transport 91 | protocol: TCP 92 | livenessProbe: 93 | tcpSocket: 94 | port: 9300 95 | volumeMounts: 96 | - name: storage 97 | mountPath: /data 98 | {{- if not .Values.common.stateful.enabled }} 99 | volumes: 100 | - emptyDir: 101 | medium: "" 102 | name: "storage" 103 | {{- end }} 104 | {{- if .Values.common.stateful.enabled }} 105 | volumeClaimTemplates: 106 | - metadata: 107 | name: storage 108 | annotations: 109 | volume.beta.kubernetes.io/storage-class: {{ .Values.common.stateful.class }} 110 | spec: 111 | accessModes: [ "ReadWriteOnce" ] 112 | resources: 113 | requests: 114 | storage: {{ .Values.master.stateful.size }} 115 | {{- end }} -------------------------------------------------------------------------------- /templates/es-svc.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ template "fullname" . }} 5 | labels: 6 | app: {{ template "fullname" . }} 7 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" 8 | release: "{{ .Release.Name }}" 9 | heritage: "{{ .Release.Service }}" 10 | component: {{ template "fullname" . }} 11 | role: client 12 | spec: 13 | type: {{ .Values.common.serviceType }} 14 | selector: 15 | component: {{ template "fullname" . }} 16 | role: client 17 | ports: 18 | - name: http 19 | port: {{ .Values.service.httpPort }} 20 | targetPort: 9200 21 | protocol: TCP 22 | - name: transport 23 | port: {{ .Values.service.transportPort }} 24 | targetPort: 9300 25 | protocol: TCP -------------------------------------------------------------------------------- /templates/kibana-ingress.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.kibana.ingress.enabled -}} 2 | {{- $serviceName := printf "%s-kibana" (include "fullname" .) -}} 3 | {{- $servicePort := .Values.kibana.httpPort -}} 4 | apiVersion: extensions/v1beta1 5 | kind: Ingress 6 | metadata: 7 | name: {{ template "fullname" . }}-kibana 8 | labels: 9 | app: {{ template "name" . }} 10 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} 11 | release: {{ .Release.Name }} 12 | heritage: {{ .Release.Service }} 13 | component: {{ template "fullname" . }}-kibana 14 | annotations: 15 | {{- range $key, $value := .Values.kibana.ingress.annotations }} 16 | {{ $key }}: {{ $value | quote }} 17 | {{- end }} 18 | spec: 19 | rules: 20 | {{- range $host := .Values.kibana.ingress.hosts }} 21 | - host: {{ $host }} 22 | http: 23 | paths: 24 | - backend: 25 | serviceName: {{ $serviceName }} 26 | servicePort: {{ $servicePort }} 27 | {{- end -}} 28 | {{- if .Values.kibana.ingress.tls }} 29 | tls: 30 | {{ toYaml .Values.kibana.ingress.tls | indent 4 }} 31 | {{- end -}} 32 | {{- end -}} 33 | -------------------------------------------------------------------------------- /templates/kibana-svc.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.kibana.enabled }} 2 | apiVersion: v1 3 | kind: Service 4 | metadata: 5 | name: {{ template "fullname" . }}-kibana 6 | labels: 7 | app: {{ template "fullname" . }} 8 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" 9 | release: "{{ .Release.Name }}" 10 | heritage: "{{ .Release.Service }}" 11 | component: {{ template "fullname" . }}-kibana 12 | spec: 13 | type: {{ .Values.common.serviceType }} 14 | ports: 15 | - port: {{ .Values.kibana.httpPort }} 16 | targetPort: 5601 17 | protocol: TCP 18 | selector: 19 | component: {{ template "fullname" . }}-kibana 20 | {{- end }} 21 | -------------------------------------------------------------------------------- /templates/kibana.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.kibana.enabled }} 2 | {{- $elasticsearchServiceName := printf "%s-%s" .Release.Name "elasticsearch" | trunc 63 -}} 3 | apiVersion: extensions/v1beta1 4 | kind: Deployment 5 | metadata: 6 | name: {{ template "fullname" . }}-kibana 7 | labels: 8 | app: {{ template "fullname" . }} 9 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" 10 | release: "{{ .Release.Name }}" 11 | heritage: "{{ .Release.Service }}" 12 | component: {{ template "fullname" . }}-kibana 13 | spec: 14 | replicas: {{ .Values.kibana.replicas }} 15 | selector: 16 | matchLabels: 17 | component: {{ template "fullname" . }}-kibana 18 | template: 19 | metadata: 20 | labels: 21 | component: {{ template "fullname" . }}-kibana 22 | spec: 23 | containers: 24 | - name: kibana 25 | image: "{{ .Values.kibana.image.repository }}:{{ .Values.kibana.image.tag }}" 26 | imagePullPolicy: {{ .Values.kibana.image.pullPolicy }} 27 | env: 28 | - name: CLUSTER_NAME 29 | value: {{ .Values.common.env.CLUSTER_NAME }} 30 | - name: ELASTICSEARCH_URL 31 | value: http://{{ $elasticsearchServiceName }}:{{ .Values.service.httpPort }} 32 | {{- range $key, $value := .Values.kibana.env }} 33 | - name: {{ $key }} 34 | value: {{ $value | quote }} 35 | {{- end }} 36 | resources: 37 | {{ toYaml .Values.kibana.resources | indent 12 }} 38 | ports: 39 | - containerPort: 5601 40 | name: kibana 41 | protocol: TCP 42 | {{- end }} 43 | -------------------------------------------------------------------------------- /values.yaml: -------------------------------------------------------------------------------- 1 | image: 2 | es: 3 | repository: quay.io/pires/docker-elasticsearch-kubernetes 4 | tag: 6.3.2 5 | pullPolicy: Always 6 | init: 7 | repository: busybox 8 | tag: latest 9 | pullPolicy: IfNotPresent 10 | curator: 11 | repository: bobrik/curator 12 | tag: latest 13 | pullPolicy: IfNotPresent 14 | 15 | common: 16 | # Defines the service type for all outward-facing (non-discovery) services. 17 | # For minikube use NodePort otherwise use LoadBalancer 18 | serviceType: LoadBalancer 19 | 20 | env: 21 | CLUSTER_NAME: "myesdb" 22 | 23 | # Uncomment this if you get the "No up-and-running site-local (private) 24 | # addresses" error. 25 | # NETWORK_HOST: "_eth0_" 26 | 27 | # If enabled, then the data and master nodes will be StatefulSets with 28 | # associated persistent volume claims. 29 | stateful: 30 | enabled: false 31 | 32 | # The PVC storage class that backs the persistent volume claims. On AWS 33 | # "gp2" would be appropriate. 34 | class: "standard" 35 | 36 | # Client/ingest nodes can execute pre-processing pipelines, composed of 37 | # one or more ingest processors. Depending on the type of operations performed 38 | # by the ingest processors and the required resources, it may make sense to 39 | # have dedicated ingest nodes, that will only perform this specific task. 40 | client: 41 | # It isn't common to need more than 2 client nodes. 42 | replicas: 2 43 | antiAffinity: "soft" 44 | 45 | # The amount of RAM allocated to the JVM heap. This should be set to the 46 | # same value as client.resources.requests.memory, or you may see 47 | # OutOfMemoryErrors on startup. 48 | heapMemory: 256m 49 | 50 | resources: 51 | requests: 52 | memory: 256Mi 53 | 54 | env: 55 | NODE_DATA: "false" 56 | NODE_MASTER: "false" 57 | NODE_INGEST: "true" 58 | HTTP_ENABLE: "true" 59 | 60 | # Data nodes hold the shards that contain the documents you have indexed. Data 61 | # nodes handle data related operations like CRUD, search, and aggregations. 62 | # These operations are I/O-, memory-, and CPU-intensive. It is important to 63 | # monitor these resources and to add more data nodes if they are overloaded. 64 | # 65 | # The main benefit of having dedicated data nodes is the separation of the 66 | # master and data roles. 67 | data: 68 | # This count will depend on your data and computation needs. 69 | replicas: 2 70 | antiAffinity: "soft" 71 | 72 | # The amount of RAM allocated to the JVM heap. This should be set to the 73 | # same value as data.resources.requests.memory, or you may see 74 | # OutOfMemoryErrors on startup. 75 | heapMemory: 256m 76 | 77 | resources: 78 | requests: 79 | memory: 256Mi 80 | 81 | env: 82 | NODE_DATA: "true" 83 | NODE_MASTER: "false" 84 | NODE_INGEST: "false" 85 | HTTP_ENABLE: "false" 86 | 87 | # Determines the properties of the persistent volume claim associated with a 88 | # data node StatefulSet that is created when the common.stateful.enabled 89 | # attribute is true. 90 | stateful: 91 | # This is a default value, and will not be sufficient in a production 92 | # system. You'll probably want to increase it. 93 | size: 12Gi 94 | 95 | # The master node is responsible for lightweight cluster-wide actions such as 96 | # creating or deleting an index, tracking which nodes are part of the 97 | # cluster, and deciding which shards to allocate to which nodes. It is 98 | # important for cluster health to have a stable master node. 99 | master: 100 | # Master replica count should be (#clients / 2) + 1, and generally at least 3. 101 | replicas: 3 102 | antiAffinity: "soft" 103 | 104 | # The amount of RAM allocated to the JVM heap. This should be set to the 105 | # same value as master.resources.requests.memory, or you may see 106 | # OutOfMemoryErrors on startup. 107 | heapMemory: 256m 108 | 109 | resources: 110 | requests: 111 | memory: 256Mi 112 | 113 | env: 114 | NODE_DATA: "false" 115 | NODE_MASTER: "true" 116 | NODE_INGEST: "false" 117 | HTTP_ENABLE: "false" 118 | 119 | # The default value for this environment variable is 2, meaning a cluster 120 | # will need a minimum of 2 master nodes to operate. If you have 3 masters 121 | # and one dies, the cluster still works. 122 | NUMBER_OF_MASTERS: "2" 123 | 124 | # Determines the properties of the persistent volume claim associated with a 125 | # data node StatefulSet that is created when the common.stateful.enabled 126 | # attribute is true. 127 | stateful: 128 | # This is a default value, and will not be sufficient in a production 129 | # system. You'll probably want to increase it. 130 | size: 2Gi 131 | 132 | curator: 133 | enabled: true 134 | schedule: "0 1 * * *" 135 | 136 | # Allows modification of the default age-based filter. If you require more 137 | # sophisticated filtering, modify the action file specified in 138 | # templates/es-curator-config.yaml. 139 | age: 140 | timestring: "%Y.%m.%d" 141 | unit: "days" 142 | unit_count: 3 143 | 144 | service: 145 | httpPort: 9200 146 | transportPort: 9300 147 | 148 | kibana: 149 | enabled: true 150 | replicas: 1 151 | image: 152 | repository: docker.elastic.co/kibana/kibana-oss 153 | tag: 6.3.2 154 | pullPolicy: Always 155 | httpPort: 80 156 | resources: 157 | limits: 158 | cpu: 1000m 159 | requests: 160 | cpu: 100m 161 | env: 162 | # XPACK_GRAPH_ENABLED: "false" 163 | # XPACK_ML_ENABLED: "false" 164 | # XPACK_REPORTING_ENABLED: "false" 165 | # XPACK_SECURITY_ENABLED: "false" 166 | ingress: 167 | enabled: false 168 | # Used to create an Ingress record. 169 | hosts: 170 | # - kibana.local 171 | annotations: 172 | # kubernetes.io/ingress.class: nginx 173 | # kubernetes.io/tls-acme: "true" 174 | tls: 175 | # Secrets must be manually created in the namespace. 176 | # - secretName: kibana-tls 177 | # hosts: 178 | # - kibana.local 179 | 180 | --------------------------------------------------------------------------------