Skip to content

Commit e18c16c

Browse files
committed
docs: use upstream_bind_config as example in EnvoyPatchPolicy
Signed-off-by: thiagomedina <thiagomedina001@gmail.com>
1 parent bd50f38 commit e18c16c

3 files changed

Lines changed: 45 additions & 27 deletions

File tree

site/content/en/latest/tasks/extensibility/envoy-patch-policy.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ spec:
540540
{{% /tab %}}
541541
{{< /tabpane >}}
542542
543-
#### Modify a route Cluster timeout
543+
#### Bind upstream connections to a specific source address
544544
545545
{{< tabpane text=true >}}
546546
{{% tab header="Apply from stdin" %}}
@@ -550,7 +550,7 @@ cat <<EOF | kubectl apply -f -
550550
apiVersion: gateway.envoyproxy.io/v1alpha1
551551
kind: EnvoyPatchPolicy
552552
metadata:
553-
name: tweak-route-cluster-timeout
553+
name: cluster-source-bind
554554
namespace: default
555555
spec:
556556
targetRef:
@@ -565,9 +565,12 @@ spec:
565565
# e.g. httproute/default/backend/rule/0
566566
name: httproute/default/backend/rule/0
567567
operation:
568-
op: replace
569-
path: "/connect_timeout"
570-
value: "5s"
568+
op: add
569+
path: "/upstream_bind_config"
570+
value:
571+
source_address:
572+
address: 10.0.0.5
573+
port_value: 0
571574
EOF
572575
```
573576

@@ -580,7 +583,7 @@ Save and apply the following resource to your cluster:
580583
apiVersion: gateway.envoyproxy.io/v1alpha1
581584
kind: EnvoyPatchPolicy
582585
metadata:
583-
name: tweak-route-cluster-timeout
586+
name: cluster-source-bind
584587
namespace: default
585588
spec:
586589
targetRef:
@@ -595,9 +598,12 @@ spec:
595598
# e.g. httproute/default/backend/rule/0
596599
name: httproute/default/backend/rule/0
597600
operation:
598-
op: replace
599-
path: "/connect_timeout"
600-
value: "5s"
601+
op: add
602+
path: "/upstream_bind_config"
603+
value:
604+
source_address:
605+
address: 10.0.0.5
606+
port_value: 0
601607
```
602608
603609
{{% /tab %}}

site/content/en/v1.8/tasks/extensibility/envoy-patch-policy.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ spec:
540540
{{% /tab %}}
541541
{{< /tabpane >}}
542542
543-
#### Modify a route Cluster timeout
543+
#### Bind upstream connections to a specific source address
544544
545545
{{< tabpane text=true >}}
546546
{{% tab header="Apply from stdin" %}}
@@ -550,7 +550,7 @@ cat <<EOF | kubectl apply -f -
550550
apiVersion: gateway.envoyproxy.io/v1alpha1
551551
kind: EnvoyPatchPolicy
552552
metadata:
553-
name: tweak-route-cluster-timeout
553+
name: cluster-source-bind
554554
namespace: default
555555
spec:
556556
targetRef:
@@ -565,9 +565,12 @@ spec:
565565
# e.g. httproute/default/backend/rule/0
566566
name: httproute/default/backend/rule/0
567567
operation:
568-
op: replace
569-
path: "/connect_timeout"
570-
value: "5s"
568+
op: add
569+
path: "/upstream_bind_config"
570+
value:
571+
source_address:
572+
address: 10.0.0.5
573+
port_value: 0
571574
EOF
572575
```
573576

@@ -580,7 +583,7 @@ Save and apply the following resource to your cluster:
580583
apiVersion: gateway.envoyproxy.io/v1alpha1
581584
kind: EnvoyPatchPolicy
582585
metadata:
583-
name: tweak-route-cluster-timeout
586+
name: cluster-source-bind
584587
namespace: default
585588
spec:
586589
targetRef:
@@ -595,9 +598,12 @@ spec:
595598
# e.g. httproute/default/backend/rule/0
596599
name: httproute/default/backend/rule/0
597600
operation:
598-
op: replace
599-
path: "/connect_timeout"
600-
value: "5s"
601+
op: add
602+
path: "/upstream_bind_config"
603+
value:
604+
source_address:
605+
address: 10.0.0.5
606+
port_value: 0
601607
```
602608
603609
{{% /tab %}}

site/content/en/v1.9/tasks/extensibility/envoy-patch-policy.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ spec:
540540
{{% /tab %}}
541541
{{< /tabpane >}}
542542
543-
#### Modify a route Cluster timeout
543+
#### Bind upstream connections to a specific source address
544544
545545
{{< tabpane text=true >}}
546546
{{% tab header="Apply from stdin" %}}
@@ -550,7 +550,7 @@ cat <<EOF | kubectl apply -f -
550550
apiVersion: gateway.envoyproxy.io/v1alpha1
551551
kind: EnvoyPatchPolicy
552552
metadata:
553-
name: tweak-route-cluster-timeout
553+
name: cluster-source-bind
554554
namespace: default
555555
spec:
556556
targetRef:
@@ -565,9 +565,12 @@ spec:
565565
# e.g. httproute/default/backend/rule/0
566566
name: httproute/default/backend/rule/0
567567
operation:
568-
op: replace
569-
path: "/connect_timeout"
570-
value: "5s"
568+
op: add
569+
path: "/upstream_bind_config"
570+
value:
571+
source_address:
572+
address: 10.0.0.5
573+
port_value: 0
571574
EOF
572575
```
573576

@@ -580,7 +583,7 @@ Save and apply the following resource to your cluster:
580583
apiVersion: gateway.envoyproxy.io/v1alpha1
581584
kind: EnvoyPatchPolicy
582585
metadata:
583-
name: tweak-route-cluster-timeout
586+
name: cluster-source-bind
584587
namespace: default
585588
spec:
586589
targetRef:
@@ -595,9 +598,12 @@ spec:
595598
# e.g. httproute/default/backend/rule/0
596599
name: httproute/default/backend/rule/0
597600
operation:
598-
op: replace
599-
path: "/connect_timeout"
600-
value: "5s"
601+
op: add
602+
path: "/upstream_bind_config"
603+
value:
604+
source_address:
605+
address: 10.0.0.5
606+
port_value: 0
601607
```
602608
603609
{{% /tab %}}

0 commit comments

Comments
 (0)