A
Size: a a a
SG
SG
SG
SG
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: app
namespace: app
spec:
hosts:
- "example.ru"
gateways:
- istio-system/whoami-gateway
http:
- match:
- uri:
prefix: /
route:
- destination:
port:
number: 80
host: appSG
SG
A
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: whoami
spec:
hosts:
- wh.domain.ru
gateways:
- istio-system/whoami-gateway
http:
- match:
- uri:
prefix: /
route:
- destination:
host: {{ include "hello-world.fullname" . }}
port:
number: {{ .Values.service.port }}
A
SG
A
gateways.istio-ingressgateway.injectionTemplate=gateway
Сам сертификат создается вот так:apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
labels:
app.kubernetes.io/instance: hub
name: hub-jetbrains-tls
namespace: jetbrains
spec:
dnsNames:
- hub.domain.ru
issuerRef:
kind: ClusterIssuer
name: letsencrypt-istio
secretName: hub-jetbrains-tls
A
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
labels:
app.kubernetes.io/instance: hub
name: hub-gateway
namespace: jetbrains
spec:
selector:
istio: ingressgateway
servers:
- hosts:
- hub.domain.ru
port:
name: http
number: 80
protocol: HTTP
- hosts:
- hub.domain.ru
port:
name: https-443
number: 443
protocol: HTTPS
tls:
credentialName: hub-jetbrains-tls
mode: SIMPLE
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
labels:
app.kubernetes.io/instance: hub
name: hub
namespace: jetbrains
spec:
gateways:
- hub-gateway
hosts:
- hub.domain.ru
http:
- match:
- uri:
prefix: /
route:
- destination:
host: hub
port:
number: 8080