Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
41 changes: 41 additions & 0 deletions charts/dremio_v2/templates/dremio-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{{- if $.Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: dremio
labels:
app: dremio
{{- include "dremio.service.labels" $ | nindent 4 }}
{{- if .Values.ingress.labels }}
{{ toYaml $.Values.ingress.labels | indent 4 }}
{{- end }}
{{- if $.Values.ingress.annotations }}
annotations:
{{- range $key, $value := $.Values.ingress.annotations }}
{{ $key }}: {{ tpl $value $ | quote }}
{{- end }}
{{- end }}
{{- end }}
spec:
{{- if $.Values.ingress.ingressClassName }}
ingressClassName: {{ $.Values.ingress.ingressClassName }}
{{- end -}}
{{- if .Values.ingress.tls }}
tls:
{{ tpl (toYaml $.Values.ingress.tls) $ | indent 4 }}
rules:
{{- if $.Values.ingress.hosts }}
{{- range $.Values.ingress.hosts }}
- host: {{ .name }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: dremio-client
Copy link

@steveizzle steveizzle Jan 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Came here just by accident, and i dont know the dremio application, but shouldnt this be {{ .name }} instead of dremio-client?

port:
number: {{ .port }}
{{- end -}}
{{- end -}}
{{- end }}
22 changes: 22 additions & 0 deletions charts/dremio_v2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -475,3 +475,25 @@ service:
# https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
# imagePullSecrets:
# - secretname

# Dremio Ingress
# If needed services can be exposed with existing loadbalancer through an ingress,
# to do so please expose the service with a ClusterIP instead of LoadBalancer

ingress:
enabled: false
ingressClassName: nginx
annotations: []
hosts:
- name: dremio-client
port: 31010
- name: dremio
port: 9047
- name: dremio-flight
port: 32010
tls:
- secretName: dremio-tls
hosts:
- dremio-client
- dremio
- dremio-flight