Skip to content

Commit

Permalink
🐛 Fix: follow-up of envoyproxy#1852
Browse files Browse the repository at this point in the history
Signed-off-by: bitliu <[email protected]>
  • Loading branch information
Xunzhuo committed Sep 6, 2023
1 parent 1fab508 commit fbaa692
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
12 changes: 6 additions & 6 deletions docs/latest/user/multicluster-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The Multicluster Service API ServiceImport object can be used as part of the Gat

We will use [Submariner project](https://github.com/submariner-io/submariner) for setting up the multicluster environment for exporting the service to be routed from peer clusters.

# Setting KIND clusters and installing Submariner.
## Setting KIND clusters and installing Submariner.

- We will be using KIND clusters to demonstrate this example.

Expand Down Expand Up @@ -32,7 +32,7 @@ subctl join --kubeconfig output/kubeconfigs/kind-config-cluster2 broker-info.sub

Once the above steps are done and all the pods are up in both the clusters. We are ready for installing envoy gateway.

# Install EnvoyGateway
## Install EnvoyGateway

Install the Gateway API CRDs and Envoy Gateway in cluster1:

Expand All @@ -46,7 +46,7 @@ Wait for Envoy Gateway to become available:
kubectl wait --timeout=5m -n envoy-gateway-system deployment/envoy-gateway --for=condition=Available --kubeconfig output/kubeconfigs/kind-config-cluster1
```

# Install Application
## Install Application

Install the backend application in cluster2 and export it through subctl command.

Expand All @@ -55,9 +55,9 @@ kubectl apply -f https://raw.githubusercontent.com/envoyproxy/gateway/latest/exa
subctl export service backend --namespace default --kubeconfig output/kubeconfigs/kind-config-cluster2
```

# Create GatewayAPI Objects
## Create Gateway API Objects

Create the GatewayAPI objects GatewayClass, Gateway and HTTPRoute in cluster1 to set up the routing.
Create the Gateway API objects GatewayClass, Gateway and HTTPRoute in cluster1 to set up the routing.

```shell
kubectl apply -f https://raw.githubusercontent.com/envoyproxy/gateway/latest/examples/kubernetes/multicluster-service.yaml --kubeconfig output/kubeconfigs/kind-config-cluster1
Expand All @@ -81,4 +81,4 @@ Curl the example app through Envoy proxy:

```shell
curl --verbose --header "Host: www.example.com" http://localhost:8888/get
```
```
1 change: 1 addition & 0 deletions docs/latest/user_docs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ Learn how to deploy, use, and operate Envoy Gateway.
user/gateway-address
user/gatewayapi-support
user/proxy-observability
user/multicluster-service
22 changes: 21 additions & 1 deletion examples/kubernetes/multicluster-service.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,29 @@
apiVersion: config.gateway.envoyproxy.io/v1alpha1
kind: EnvoyProxy
metadata:
name: custom-proxy-config
namespace: envoy-gateway-system
spec:
logging:
level:
default: warn
provider:
kubernetes:
envoyService:
type: ClusterIP
type: Kubernetes
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: GatewayClass
metadata:
name: eg
spec:
controllerName: gateway.envoyproxy.io/gatewayclass-controller
parametersRef:
group: config.gateway.envoyproxy.io
kind: EnvoyProxy
name: custom-proxy-config
namespace: envoy-gateway-system
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: Gateway
Expand Down Expand Up @@ -39,7 +59,7 @@ spec:
type: PathPrefix
value: /
---
apiVersion: gateway.networking.k8s.io/v1alpha2
apiVersion: gateway.networking.k8s.io/v1beta1
kind: ReferenceGrant
metadata:
namespace: submariner-operator
Expand Down

0 comments on commit fbaa692

Please sign in to comment.