Skip to content

Commit

Permalink
ingress console
Browse files Browse the repository at this point in the history
  • Loading branch information
MrEsL committed Dec 26, 2024
1 parent b52e046 commit da5b6a8
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions pkg/app/dbs/tmpl/minio/ingress-console.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/proxy-send-timeout: 18000s
nginx.ingress.kubernetes.io/proxy-read-timeout: 18000s
nginx.ingress.kubernetes.io/proxy-body-size: 5G
mlops.cnvrg.io/default-loader: "true"
mlops.cnvrg.io/own: "true"
mlops.cnvrg.io/updatable: "true"
{{- range $k, $v := .Spec.Annotations }}
{{$k}}: "{{$v}}"
{{- end }}
name: {{ .Spec.Dbs.Minio.SvcName }}-console
namespace: {{.Namespace }}
labels:
{{- range $k, $v := .Spec.Labels }}
{{$k}}: "{{$v}}"
{{- end }}
spec:
ingressClassName: nginx
{{- if and ( isTrue .Spec.Networking.HTTPS.Enabled ) (ne .Spec.Networking.HTTPS.CertSecret "") }}
tls:
- hosts:
- {{ .Spec.Dbs.Minio.SvcName}}{{.Spec.Networking.ClusterDomainPrefix.Prefix}}.{{ .Spec.ClusterDomain }}
secretName: {{ .Spec.Networking.HTTPS.CertSecret }}
{{- end }}
rules:
- host: "{{.Spec.Dbs.Minio.SvcName}}-console{{.Spec.Networking.ClusterDomainPrefix.Prefix}}.{{ .Spec.ClusterDomain }}"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ .Spec.Dbs.Minio.SvcName }}-console
port:
number: {{ .Spec.Dbs.Minio.Port }}

0 comments on commit da5b6a8

Please sign in to comment.