Skip to content

Commit

Permalink
updates to support an alternate k8s scheduler (helm#14356)
Browse files Browse the repository at this point in the history
Signed-off-by: Sathya Balakrishnan <[email protected]>
  • Loading branch information
satchpx authored and k8s-ci-robot committed May 31, 2019
1 parent 2768d8d commit e043fc0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/elasticsearch/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: elasticsearch
home: https://www.elastic.co/products/elasticsearch
version: 1.27.3
version: 1.28.0
appVersion: 6.7.0
description: Flexible and powerful open source, distributed real-time search and analytics
engine.
Expand Down
1 change: 1 addition & 0 deletions stable/elasticsearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ The following table lists the configurable parameters of the elasticsearch chart
| `initImage.repository` | Init container image name | `busybox` |
| `initImage.tag` | Init container image tag | `latest` |
| `initImage.pullPolicy` | Init container pull policy | `Always` |
| `schedulerName` | Name of the k8s scheduler (other than default) | `nil` |
| `cluster.name` | Cluster name | `elasticsearch` |
| `cluster.xpackEnable` | Writes the X-Pack configuration options to the configuration file | `false` |
| `cluster.config` | Additional cluster config appended | `{}` |
Expand Down
3 changes: 3 additions & 0 deletions stable/elasticsearch/templates/data-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ spec:
{{ toYaml .Values.data.podAnnotations | indent 8 }}
{{- end }}
spec:
{{- if .Values.schedulerName }}
schedulerName: "{{ .Values.schedulerName }}"
{{- end }}
serviceAccountName: {{ template "elasticsearch.serviceAccountName.data" . }}
{{- if .Values.data.priorityClassName }}
priorityClassName: "{{ .Values.data.priorityClassName }}"
Expand Down
3 changes: 3 additions & 0 deletions stable/elasticsearch/templates/master-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ spec:
{{ toYaml .Values.master.podAnnotations | indent 8 }}
{{- end }}
spec:
{{- if .Values.schedulerName }}
schedulerName: "{{ .Values.schedulerName }}"
{{- end }}
serviceAccountName: {{ template "elasticsearch.serviceAccountName.master" . }}
{{- if .Values.master.priorityClassName }}
priorityClassName: "{{ .Values.master.priorityClassName }}"
Expand Down
5 changes: 5 additions & 0 deletions stable/elasticsearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ securityContext:
enabled: false
runAsUser: 1000

## Use an alternate scheduler, e.g. "stork".
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
##
# schedulerName: "default-scheduler"

image:
repository: "docker.elastic.co/elasticsearch/elasticsearch-oss"
tag: "6.7.0"
Expand Down

0 comments on commit e043fc0

Please sign in to comment.