OpenShift Route
This commit is contained in:
parent
2ffd0d8ebf
commit
14d7b85c9d
1 changed files with 30 additions and 0 deletions
30
charts/argo-cd/templates/argocd-server/route.yaml
Normal file
30
charts/argo-cd/templates/argocd-server/route.yaml
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{{- if .Values.server.route.enabled -}}
|
||||||
|
apiVersion: route.openshift.io/v1
|
||||||
|
kind: Route
|
||||||
|
metadata:
|
||||||
|
name: {{ template "argo-cd.server.fullname" . }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: {{ include "argo-cd.name" . }}-{{ .Values.server.name }}
|
||||||
|
helm.sh/chart: {{ include "argo-cd.chart" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
app.kubernetes.io/part-of: argocd
|
||||||
|
app.kubernetes.io/component: {{ .Values.server.name }}
|
||||||
|
{{- with .Values.server.route.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{ toYaml . | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
host: {{ .Values.server.route.hostname | quote }}
|
||||||
|
subdomain: ''
|
||||||
|
to:
|
||||||
|
kind: Service
|
||||||
|
name: {{ template "argo-cd.server.fullname" . }}
|
||||||
|
weight: 100
|
||||||
|
port:
|
||||||
|
targetPort: https
|
||||||
|
tls:
|
||||||
|
termination: passthrough
|
||||||
|
insecureEdgeTerminationPolicy: None
|
||||||
|
wildcardPolicy: None
|
||||||
|
{{- end }}
|
Loading…
Reference in a new issue