Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
fix: allow elastic pods to be relocated if they have persistent storage
Browse files Browse the repository at this point in the history
  • Loading branch information
BrendanGalloway committed Mar 30, 2022
1 parent 45a3b71 commit e0eb2c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manifests/elasticsearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ spec:
xpack.security.authc.anonymous.roles: fluentd
podTemplate:
spec:
{{- if (eq .elasticsearch.persistence.enabled true) }}
metadata:
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
{{- end}}
containers:
- name: elasticsearch
env:
Expand Down

0 comments on commit e0eb2c4

Please sign in to comment.