[incubator/elasticsearch] Optionally expose http (#3213)

Declares a value for exposing port 9200 for master and data pods and
sets it to `false`. This allows for downstream users to open
elasticsearch http port for monitoring or other purposes. We use datadog for our
monitoring and the agent pod expects port 9200 to be open so that it can
get and send metrics at the container level.
This commit is contained in:
jslusher
2018-01-04 23:26:12 -08:00
committed by k8s-ci-robot
parent 5560358408
commit 8a99f900a1
5 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
name: elasticsearch
home: https://www.elastic.co/products/elasticsearch
version: 0.4.4
version: 0.4.5
description: Flexible and powerful open source, distributed real-time search and analytics
engine.
icon: https://static-www.elastic.co/assets/blteb1c97719574938d/logo-elastic-elasticsearch-lt.svg
+2
View File
@@ -69,6 +69,7 @@ The following tables lists the configurable parameters of the elasticsearch char
| `client.podAnnotations` | Client Deployment annotations | `{}` |
| `client.serviceAnnotations` | Client Service annotations | `{}` |
| `client.serviceType` | Client service type | `ClusterIP` |
| `master.exposeHttp` | Expose http port 9200 on master Pods for monitoring, etc | `false` |
| `master.name` | Master component name | `master` |
| `master.replicas` | Master node replicas (deployment) | `2` |
| `master.resources` | Master node resources requests & limits | `{} - cpu limit must be an integer` |
@@ -80,6 +81,7 @@ The following tables lists the configurable parameters of the elasticsearch char
| `master.persistence.size` | Master persistent volume size | `4Gi` |
| `master.persistence.storageClass` | Master persistent volume Class | `nil` |
| `master.persistence.accessMode` | Master persistent Access Mode | `ReadWriteOnce` |
| `data.exposeHttp` | Expose http port 9200 on data Pods for monitoring, etc | `false` |
| `data.replicas` | Data node replicas (statefulset) | `3` |
| `data.resources` | Data node resources requests & limits | `{} - cpu limit must be an integer` |
| `data.heapSize` | Data node heap size | `1536m` |
@@ -96,6 +96,10 @@ spec:
ports:
- containerPort: 9300
name: transport
{{ if .Values.data.exposeHttp }}
- containerPort: 9200
name: http
{{ end }}
resources:
{{ toYaml .Values.data.resources | indent 12 }}
readinessProbe:
@@ -107,6 +107,10 @@ spec:
ports:
- containerPort: 9300
name: transport
{{ if .Values.master.exposeHttp }}
- containerPort: 9200
name: http
{{ end }}
volumeMounts:
- mountPath: /usr/share/elasticsearch/data
name: data
+2
View File
@@ -42,6 +42,7 @@ client:
master:
name: master
exposeHttp: false
replicas: 3
heapSize: "512m"
persistence:
@@ -65,6 +66,7 @@ master:
data:
name: data
exposeHttp: false
replicas: 2
heapSize: "1536m"
persistence: