c1667d4603
`VirtualService` resource is fixed
29 lines
667 B
YAML
29 lines
667 B
YAML
{{- if .Values.istio.enabled -}}
|
|
apiVersion: networking.istio.io/v1beta1
|
|
kind: VirtualService
|
|
metadata:
|
|
name: blog-virtual-service
|
|
labels:
|
|
{{- include "badhouseplants-net.labels" . | nindent 4 }}
|
|
{{- with .Values.istio.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
gateways:
|
|
- istio-system/badhouseplants-net
|
|
hosts:
|
|
{{- range .Values.istio.hosts}}
|
|
- {{ . }}
|
|
{{- end }}
|
|
http:
|
|
- match:
|
|
- uri:
|
|
prefix: {{ .Values.istio.prefix }}
|
|
route:
|
|
- destination:
|
|
host: {{ include "badhouseplants-net.fullname" . }}
|
|
port:
|
|
number: {{ .Values.service.port }}
|
|
{{- end }}
|