softplayer-helmfile/charts/softplayer-backend/backup/virtual-service.yaml

52 lines
1014 B
YAML
Raw Normal View History

2024-04-06 17:56:56 +00:00
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: {{ include "softplayer-backend.fullname" . }}
labels:
{{- include "softplayer-backend.labels" . | nindent 4 }}
namespace: istio-system
spec:
selector:
istio: ingressgateway
servers:
- hosts:
- '*'
port:
name: grpc-web
number: 8080
protocol: HTTP2
- hosts:
- '*'
port:
name: http
number: 80
protocol: HTTP2
- hosts:
- '*'
port:
name: https
number: 443
protocol: HTTP2
---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: {{ include "softplayer-backend.fullname" . }}
labels:
{{- include "softplayer-backend.labels" . | nindent 4 }}
spec:
gateways:
- istio-system/{{ include "softplayer-backend.fullname" . }}
hosts:
- "*"
http:
- match:
- uri:
prefix: /
route:
- destination:
host: {{ include "softplayer-backend.fullname" . }}
port:
number: 54321