Compare commits
2 Commits
b42c981f39
...
5603924b25
| Author | SHA1 | Date | |
|---|---|---|---|
| 5603924b25 | |||
| 6292d1730e |
@@ -1,13 +1,14 @@
|
|||||||
apiVersion: v1
|
#apiVersion: v1
|
||||||
kind: Namespace
|
#kind: Namespace
|
||||||
metadata:
|
#metadata:
|
||||||
annotations:
|
# annotations:
|
||||||
topology.istio.io/controlPlaneClusters: cluster1
|
# topology.istio.io/controlPlaneClusters: cluster1
|
||||||
labels:
|
# labels:
|
||||||
kubernetes.io/metadata.name: istio-system
|
# kubernetes.io/metadata.name: istio-system
|
||||||
name: istio-system
|
# name: istio-system
|
||||||
spec:
|
#spec:
|
||||||
finalizers:
|
# finalizers:
|
||||||
- kubernetes
|
# - kubernetes
|
||||||
status:
|
#status:
|
||||||
phase: Active
|
# phase: Active
|
||||||
|
#
|
||||||
16
dmz/istio-system/templates/expose.yaml
Normal file
16
dmz/istio-system/templates/expose.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: networking.istio.io/v1
|
||||||
|
kind: Gateway
|
||||||
|
metadata:
|
||||||
|
name: cross-network-gateway
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
istio: eastwestgateway
|
||||||
|
servers:
|
||||||
|
- port:
|
||||||
|
number: 15443
|
||||||
|
name: tls
|
||||||
|
protocol: TLS
|
||||||
|
tls:
|
||||||
|
mode: AUTO_PASSTHROUGH
|
||||||
|
hosts:
|
||||||
|
- "*.local"
|
||||||
@@ -428,7 +428,7 @@ istiod:
|
|||||||
# If the mesh admin does not specify a value, Istio will use the value of the
|
# If the mesh admin does not specify a value, Istio will use the value of the
|
||||||
# mesh's Trust Domain. The best practice is to select a proper Trust Domain
|
# mesh's Trust Domain. The best practice is to select a proper Trust Domain
|
||||||
# value.
|
# value.
|
||||||
meshID: ""
|
meshID: "mesh1"
|
||||||
|
|
||||||
# Configure the mesh networks to be used by the Split Horizon EDS.
|
# Configure the mesh networks to be used by the Split Horizon EDS.
|
||||||
#
|
#
|
||||||
@@ -474,7 +474,7 @@ istiod:
|
|||||||
|
|
||||||
# Network defines the network this cluster belong to. This name
|
# Network defines the network this cluster belong to. This name
|
||||||
# corresponds to the networks in the map of mesh networks.
|
# corresponds to the networks in the map of mesh networks.
|
||||||
network: ""
|
network: "network2"
|
||||||
|
|
||||||
# Configure the certificate provider for control plane communication.
|
# Configure the certificate provider for control plane communication.
|
||||||
# Currently, two providers are supported: "kubernetes" and "istiod".
|
# Currently, two providers are supported: "kubernetes" and "istiod".
|
||||||
|
|||||||
@@ -1,53 +1,70 @@
|
|||||||
|
#apiVersion: networking.istio.io/v1
|
||||||
|
#kind: Gateway
|
||||||
|
#metadata:
|
||||||
|
# name: istiod-gateway
|
||||||
|
#spec:
|
||||||
|
# selector:
|
||||||
|
# istio: eastwestgateway
|
||||||
|
# servers:
|
||||||
|
# - port:
|
||||||
|
# name: tls-istiod
|
||||||
|
# number: 15012
|
||||||
|
# protocol: tls
|
||||||
|
# tls:
|
||||||
|
# mode: PASSTHROUGH
|
||||||
|
# hosts:
|
||||||
|
# - "*"
|
||||||
|
# - port:
|
||||||
|
# name: tls-istiodwebhook
|
||||||
|
# number: 15017
|
||||||
|
# protocol: tls
|
||||||
|
# tls:
|
||||||
|
# mode: PASSTHROUGH
|
||||||
|
# hosts:
|
||||||
|
# - "*"
|
||||||
|
#---
|
||||||
|
#apiVersion: networking.istio.io/v1
|
||||||
|
#kind: VirtualService
|
||||||
|
#metadata:
|
||||||
|
# name: istiod-vs
|
||||||
|
#spec:
|
||||||
|
# hosts:
|
||||||
|
# - "*"
|
||||||
|
# gateways:
|
||||||
|
# - istiod-gateway
|
||||||
|
# tls:
|
||||||
|
# - match:
|
||||||
|
# - port: 15012
|
||||||
|
# sniHosts:
|
||||||
|
# - "*"
|
||||||
|
# route:
|
||||||
|
# - destination:
|
||||||
|
# host: istiod.istio-system.svc.cluster.local
|
||||||
|
# port:
|
||||||
|
# number: 15012
|
||||||
|
# - match:
|
||||||
|
# - port: 15017
|
||||||
|
# sniHosts:
|
||||||
|
# - "*"
|
||||||
|
# route:
|
||||||
|
# - destination:
|
||||||
|
# host: istiod.istio-system.svc.cluster.local
|
||||||
|
# port:
|
||||||
|
# number: 443
|
||||||
|
---
|
||||||
apiVersion: networking.istio.io/v1
|
apiVersion: networking.istio.io/v1
|
||||||
kind: Gateway
|
kind: Gateway
|
||||||
metadata:
|
metadata:
|
||||||
name: istiod-gateway
|
name: cross-network-gateway
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
istio: eastwestgateway
|
istio: eastwestgateway
|
||||||
servers:
|
servers:
|
||||||
- port:
|
- port:
|
||||||
name: tls-istiod
|
number: 15443
|
||||||
number: 15012
|
name: tls
|
||||||
protocol: tls
|
protocol: TLS
|
||||||
tls:
|
tls:
|
||||||
mode: PASSTHROUGH
|
mode: AUTO_PASSTHROUGH
|
||||||
hosts:
|
hosts:
|
||||||
- "*"
|
- "*.local"
|
||||||
- port:
|
|
||||||
name: tls-istiodwebhook
|
|
||||||
number: 15017
|
|
||||||
protocol: tls
|
|
||||||
tls:
|
|
||||||
mode: PASSTHROUGH
|
|
||||||
hosts:
|
|
||||||
- "*"
|
|
||||||
---
|
|
||||||
apiVersion: networking.istio.io/v1
|
|
||||||
kind: VirtualService
|
|
||||||
metadata:
|
|
||||||
name: istiod-vs
|
|
||||||
spec:
|
|
||||||
hosts:
|
|
||||||
- "*"
|
|
||||||
gateways:
|
|
||||||
- istiod-gateway
|
|
||||||
tls:
|
|
||||||
- match:
|
|
||||||
- port: 15012
|
|
||||||
sniHosts:
|
|
||||||
- "*"
|
|
||||||
route:
|
|
||||||
- destination:
|
|
||||||
host: istiod.istio-system.svc.cluster.local
|
|
||||||
port:
|
|
||||||
number: 15012
|
|
||||||
- match:
|
|
||||||
- port: 15017
|
|
||||||
sniHosts:
|
|
||||||
- "*"
|
|
||||||
route:
|
|
||||||
- destination:
|
|
||||||
host: istiod.istio-system.svc.cluster.local
|
|
||||||
port:
|
|
||||||
number: 443
|
|
||||||
|
|||||||
Reference in New Issue
Block a user