Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graylog pods are unavailable during cluster upgrade #149

Closed
pparthesh opened this issue Jun 2, 2023 · 0 comments · Fixed by #156
Closed

graylog pods are unavailable during cluster upgrade #149

pparthesh opened this issue Jun 2, 2023 · 0 comments · Fixed by #156
Labels
bug Something isn't working

Comments

@pparthesh
Copy link
Contributor

pparthesh commented Jun 2, 2023

Describe the bug

cluster upgrade evict multiple pods from multiple nodes and without PodDisruptionBudget possible to evict all graylog pods from different nodes.

Version of Helm and Kubernetes:

Helm Version:

$ helm version
version.BuildInfo{Version:"v3.11.2", GitCommit:"v3.11.2", GitTreeState:"", GoVersion:"go1.20.3"}

Kubernetes Version:

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.0",
Server Version: version.Info{Major:"1", Minor:"26", GitVersion:"v1.26.3", 

Which version of the chart: 2.3.2

What happened:

node rotation during cluster upgrade evicted all graylog pods and faced downtime.

What you expected to happen:

one graylog pod evict during cluster upgrade.

How to reproduce it (as minimally and precisely as possible):

create separate node group for graylog and deploy graylog on that node group using taint/tolerations and try to upgrade nodes.

Solution:

poddisruptionbudget.yaml

{{- if .Values.podDisruptionBudget }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: {{ template "graylog.fullname" . }}
  labels:
{{ include "graylog.metadataLabels" . | indent 4 }}
spec:
  {{- with .Values.podDisruptionBudget.minAvailable }}
  minAvailable: {{ . }}
  {{- end }}
  {{- with .Values.podDisruptionBudget.maxUnavailable }}
  maxUnavailable: {{ . }}
  {{- end }}
  selector:
    matchLabels:
      app.kubernetes.io/name: {{ template "graylog.name" . }}
      app.kubernetes.io/instance: "{{ .Release.Name }}"
{{- end }}

values.yaml

## See `kubectl explain poddisruptionbudget.spec` for more
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
podDisruptionBudget: {}
#  minAvailable: 1
#  maxUnavailable: 1
@pparthesh pparthesh added the bug Something isn't working label Jun 2, 2023
@KongZ KongZ closed this as completed in #156 Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant