19 lines
459 B
YAML
19 lines
459 B
YAML
{{- if and .Values.gitea.enabled .Values.gitea.istio.enabled }}
|
|
apiVersion: networking.istio.io/v1beta1
|
|
kind: VirtualService
|
|
metadata:
|
|
name: {{ include "kubezero-lib.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "kubezero-lib.labels" . | nindent 4 }}
|
|
spec:
|
|
gateways:
|
|
- {{ .Values.gitea.istio.gateway }}
|
|
hosts:
|
|
- {{ .Values.gitea.istio.url }}
|
|
http:
|
|
- route:
|
|
- destination:
|
|
host: gitea-http
|
|
{{- end }}
|