Skip to content

Commit

Permalink
Adds Istio Support (#126)
Browse files Browse the repository at this point in the history
* Adds Istio Support

* Bumps version

Signed-off-by: Andrey Ryoo <[email protected]>

Signed-off-by: Andrey Ryoo <[email protected]>
Co-authored-by: aryoo <[email protected]>
  • Loading branch information
andrey-ryoo and a-ryoo authored Sep 11, 2022
1 parent d4633d2 commit 8f1fe39
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/graylog/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: graylog
home: https://www.graylog.org
version: 2.1.6
version: 2.1.7
appVersion: 4.2.7
description: Graylog is the centralized log management solution built to open standards for capturing, storing, and enabling real-time analysis of terabytes of machine data.
keywords:
Expand Down
49 changes: 49 additions & 0 deletions charts/graylog/templates/istio.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{{- if .Values.graylog.istio.enabled }}
---
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: {{ template "graylog.fullname" . }}-gateway
spec:
selector:
{{- with .Values.graylog.istio.gatewaySelector }}
{{ toYaml . | indent 4 }}
{{- end }}
servers:
- hosts:
- {{ .Values.graylog.istio.host }}
port:
number: 80
name: http
protocol: HTTP
{{- if .Values.graylog.istio.tlsSecretName }}
tls:
httpsRedirect: true
- hosts:
- {{ .Values.graylog.istio.host }}
port:
number: 443
name: https
protocol: HTTPS
tls:
mode: SIMPLE
credentialName: {{ .Values.graylog.istio.tlsSecretName }}
{{- end }}
---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: {{ template "graylog.fullname" . }}-vs
spec:
gateways:
- {{ template "graylog.fullname" . }}-gateway
hosts:
- {{ .Values.graylog.istio.host }}
http:
- route:
- destination:
host: {{ template "graylog.fullname" $ }}-web
port:
number: {{ default 9000 .Values.graylog.service.port }}
{{- end }}

20 changes: 20 additions & 0 deletions charts/graylog/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,26 @@ graylog:
## An URL path
path: /

istio:
## If true, Graylog server Istio Ingress Gateway will be created
##
enabled: false

## Change if you use custom ingressgateway controller
gatewaySelector:
istio: ingressgateway

## Graylog server Istio Ingress Gateway hostnames with optional path
## Must be provided if Ingress is enabled
## Note: Graylog does not support two URL. You can specify only single URL
##
host: graylog.yourdomain.com

## Please note that tls secret should reside in istio-system namespace
## leave blanc for disabling TLS
tlsSecretName: ""


## Configure resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
##
Expand Down

0 comments on commit 8f1fe39

Please sign in to comment.