Skip to content

Commit

Permalink
Merge pull request #40 from qdrant/feat/nawar/add-generic-ingress
Browse files Browse the repository at this point in the history
support a generic ingress
  • Loading branch information
M-Nawar authored Jun 22, 2023
2 parents 00c82f5 + 6099247 commit 3b360ae
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.9
version: 0.2.10

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
39 changes: 39 additions & 0 deletions templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "qdrant.fullname" . }}
labels:
{{- include "qdrant.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- with .Values.ingress.hosts }}
rules:
{{- range . }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ .path | quote }}
pathType: {{ .pathType | default "Prefix" | quote }}
backend:
service:
name: {{ default .serviceName (include "qdrant.fullname" $) }}
port:
number: {{ .servicePort }}
{{- end }}
{{- end }}
{{- end }}
{{- with .Values.ingress.tls }}
tls:
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName | quote }}
{{- end }}
{{- end }}

15 changes: 15 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@ service:
protocol: TCP
checksEnabled: false

ingress:
enabled: false
annotations: {}
# kubernetes.io/ingress.class: alb
hosts:
- host: example-domain.com
paths:
- path: /
pathType: Prefix
servicePort: 6333
tls: []
#- hosts:
# - example-domain.com
# secretName: tls-secret-name

livenessProbe:
enabled: true
initialDelaySeconds: 5
Expand Down

0 comments on commit 3b360ae

Please sign in to comment.