KubeZero/charts/kubezero-ci/templates/gocd/istio-service.yaml

19 lines
476 B
YAML

{{- if and .Values.gocd.enabled .Values.gocd.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.gocd.istio.gateway }}
hosts:
- {{ .Values.gocd.istio.url }}
http:
- route:
- destination:
host: {{ .Release.Name }}-gocd-server
{{- end }}