Aller au contenu principal

Istio (Config)

1. Communication

infra

2. Configuration

---
apiVersion: networking.istio.io/v1beta1
kind: ServiceEntry
metadata:
name: factory-gitlab-internal
namespace: istio-system
spec:
hosts:
- gitlab.boxtocloud.app
ports:
- name: https
number: 443
protocol: TLS
- name: ssh
number: 22
protocol: TCP
resolution: STATIC
endpoints:
- address: 192.168.X.X
---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: factory-gitlab
namespace: istio-system
spec:
gateways:
- proto-gateway
- mesh
hosts:
- gitlab.boxtocloud.app
http:
- match:
- gateways:
- mesh
- proto-gateway
port: 80
route:
- destination:
host: gitlab.boxtocloud.app
port:
number: 443
weight: 100
- match:
- gateways:
- mesh
port: 443
route:
- destination:
host: gitlab.boxtocloud.app
port:
number: 443
weight: 100

---
apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
name: factory-gitlab
namespace: istio-system
spec:
host: gitlab.boxtocloud.app
trafficPolicy:
loadBalancer:
simple: ROUND_ROBIN
tls:
credentialName: tls.factory.stack
mode: SIMPLE
sni: gitlab.factory.stack