Updat charts
This commit is contained in:
51
charts/softplayer-backend/backup/virtual-service.yaml
Normal file
51
charts/softplayer-backend/backup/virtual-service.yaml
Normal file
@ -0,0 +1,51 @@
|
||||
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
|
||||
|
Reference in New Issue
Block a user