Skip to content

Commit

Permalink
console route
Browse files Browse the repository at this point in the history
  • Loading branch information
MrEsL committed Dec 26, 2024
1 parent da5b6a8 commit 7570efd
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions pkg/app/dbs/tmpl/minio/route-console.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apiVersion: route.openshift.io/v1
kind: Route
metadata:
annotations:
mlops.cnvrg.io/default-loader: "true"
mlops.cnvrg.io/own: "true"
mlops.cnvrg.io/updatable: "true"
haproxy.router.openshift.io/timeout: {{ .Spec.Networking.Ingress.PerTryTimeout }}
{{- range $k, $v := .Spec.Annotations }}
{{$k}}: "{{$v}}"
{{- end }}
name: {{ .Spec.Dbs.Minio.SvcName }}-console
namespace: {{.Namespace }}
labels:
app: {{.Namespace }}
{{- range $k, $v := .Spec.Labels }}
{{$k}}: "{{$v}}"
{{- end }}
spec:
host: "{{ .Spec.Dbs.Minio.SvcName }}-console{{.Spec.Networking.ClusterDomainPrefix.Prefix}}.{{ .Spec.ClusterDomain }}"
port:
targetPort: {{ .Spec.Dbs.Minio.Port }}
to:
kind: Service
name: {{ .Spec.Dbs.Minio.SvcName }}-console
weight: 100
{{- if isTrue .Spec.Networking.HTTPS.Enabled }}
tls:
termination: edge
insecureEdgeTerminationPolicy: Redirect
{{- if isTrue .Spec.Networking.Ingress.OcpSecureRoutes }}
certificate: |
{{ printf "%s" .Spec.Networking.HTTPS.Cert | indent 6 }}
key: |
{{ printf "%s" .Spec.Networking.HTTPS.Key | indent 6 }}
{{- end }}
{{- end }}

0 comments on commit 7570efd

Please sign in to comment.