Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

[metricbeat] Adding custerRole permissions for leader election #1422

Merged
merged 20 commits into from
Mar 3, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adding support to kubernetes ingress v1 & ClassName
  • Loading branch information
framsouza committed Oct 12, 2021
commit af7de17003f4cae37df1df075a297549c6112cad
4 changes: 4 additions & 0 deletions apm-server/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ metadata:
{{- range $key, $value := .Values.labels }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- with .Values.ingress.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className | quote }}
Expand Down
4 changes: 2 additions & 2 deletions apm-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ autoscaling:
averageCpuUtilization: 50

ingress:
enabled: true
className: ""
enabled: false
className: "nginx"
pathtype: ImplementationSpecific
annotations: {}
# kubernetes.io/ingress.class: nginx
Expand Down
10 changes: 4 additions & 6 deletions elasticsearch/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,20 @@
{{- $httpPort := .Values.httpPort -}}
{{- $pathtype := .Values.ingress.pathtype -}}
{{- $ingressPath := .Values.ingress.path -}}
{{- if semverCompare "<1.19-0" .Capabilities.KubeVersion.Version }}
apiVersion: networking.k8s.io/v1beta1
{{- else }}
apiVersion: networking.k8s.io/v1
{{- end }}
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
app: {{ .Chart.Name }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- with .Values.ingress.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className | quote }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- if .ingressPath }}
Expand Down
2 changes: 2 additions & 0 deletions elasticsearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ tolerations: []
# Only enable this if you have security enabled on your cluster
ingress:
enabled: false
className: "nginx"
pathtype: ImplementationSpecific
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
Expand Down
4 changes: 4 additions & 0 deletions kibana/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ kind: Ingress
metadata:
name: {{ $fullName }}
labels: {{ include "kibana.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className | quote }}
Expand Down
2 changes: 1 addition & 1 deletion kibana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ service:

ingress:
enabled: false
className: ""
className: "nginx"
pathtype: ImplementationSpecific
annotations: {}
# kubernetes.io/ingress.class: nginx
Expand Down
4 changes: 4 additions & 0 deletions logstash/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ metadata:
chart: "{{ .Chart.Name }}"
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}
{{- with .Values.ingress.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className | quote }}
Expand Down
2 changes: 1 addition & 1 deletion logstash/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ service: {}

ingress:
enabled: false
className: ""
className: "nginx"
pathtype: ImplementationSpecific
hosts:
- host: logstash-example.local
Expand Down