kubezero/charts/kubezero-ci/templates/gitea/istio-service.yaml

25 lines
512 B
YAML
Raw Normal View History

2021-11-08 15:54:48 +00:00
{{- if and .Values.gitea.enabled .Values.gitea.istio.enabled }}
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: gitea
2021-11-08 15:54:48 +00:00
namespace: {{ .Release.Namespace }}
labels:
{{- include "kubezero-lib.labels" $ | nindent 4 }}
2021-11-08 15:54:48 +00:00
spec:
gateways:
- {{ .Values.gitea.istio.gateway }}
hosts:
- {{ .Values.gitea.istio.url }}
http:
- route:
- destination:
host: gitea-http
tcp:
- match:
- port: 22
route:
- destination:
host: gitea-ssh
2021-11-08 15:54:48 +00:00
{{- end }}