-
Notifications
You must be signed in to change notification settings - Fork 557
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(helm): add pure Ingress option instead of the gateway service (#…
…6932) Signed-off-by: Mickaël Canévet <[email protected]>
- Loading branch information
Showing
67 changed files
with
4,209 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
operations/helm/charts/mimir-distributed/ci/offline/test-ingress-values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Pin kube version so results are the same for running in CI and locally where the installed kube version may be different. | ||
kubeVersionOverride: "1.20" | ||
|
||
ingress: | ||
enabled: true |
46 changes: 46 additions & 0 deletions
46
operations/helm/charts/mimir-distributed/templates/ingress.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{{- if .Values.ingress.enabled }} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ include "mimir.fullname" . }} | ||
labels: | ||
{{- include "mimir.labels" (dict "ctx" .) | nindent 4 }} | ||
{{- with .Values.ingress.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
namespace: {{ .Release.Namespace | quote }} | ||
spec: | ||
{{- with .Values.ingress.ingressClassName }} | ||
ingressClassName: {{ . }} | ||
{{- end -}} | ||
{{- with .Values.ingress.tls }} | ||
tls: | ||
{{- range . }} | ||
- hosts: | ||
{{- range .hosts }} | ||
- {{ . | quote }} | ||
{{- end }} | ||
{{- with .secretName }} | ||
secretName: {{ . }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
rules: | ||
{{- range $.Values.ingress.hosts }} | ||
- host: {{ . | quote }} | ||
http: | ||
paths: | ||
{{- range $svcName, $paths := $.Values.ingress.paths }} | ||
{{- range $paths }} | ||
- path: {{ .path }} | ||
pathType: {{ .pathType | default "Prefix" }} | ||
backend: | ||
service: | ||
name: {{ include "mimir.fullname" $ }}-{{ $svcName }} | ||
port: | ||
number: {{ include "mimir.serverHttpListenPort" $ }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.