Skip to content

Commit

Permalink
docs: fix broken BackendTLSPolicy samples (#3362)
Browse files Browse the repository at this point in the history
Signed-off-by: Shahar Harari <shahar.harari@sap.com>
  • Loading branch information
shahar-h authored May 9, 2024
1 parent 7124585 commit bb348dc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions site/content/en/latest/tasks/security/backend-tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,19 +139,19 @@ Create a [BackendTLSPolicy][] instructing Envoy Gateway to establish a TLS conne
```shell
cat <<EOF | kubectl apply -f -
apiVersion: gateway.networking.k8s.io/v1alpha2
apiVersion: gateway.networking.k8s.io/v1alpha3
kind: BackendTLSPolicy
metadata:
name: enable-backend-tls
namespace: default
spec:
targetRef:
group: ''
targetRefs:
- group: ''
kind: Service
name: tls-backend
sectionName: "443"
tls:
caCertRefs:
validation:
caCertificateRefs:
- name: example-ca
group: ''
kind: ConfigMap
Expand All @@ -165,19 +165,19 @@ Save and apply the following resource to your cluster:

```yaml
---
apiVersion: gateway.networking.k8s.io/v1alpha2
apiVersion: gateway.networking.k8s.io/v1alpha3
kind: BackendTLSPolicy
metadata:
name: enable-backend-tls
namespace: default
spec:
targetRef:
group: ''
targetRefs:
- group: ''
kind: Service
name: tls-backend
sectionName: "443"
tls:
caCertRefs:
validation:
caCertificateRefs:
- name: example-ca
group: ''
kind: ConfigMap
Expand Down
20 changes: 10 additions & 10 deletions site/content/en/latest/tasks/security/ext-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,18 +347,18 @@ the communication between the Envoy proxy and the gRPC auth service.
```shell
cat <<EOF | kubectl apply -f -
apiVersion: gateway.networking.k8s.io/v1alpha2
apiVersion: gateway.networking.k8s.io/v1alpha3
kind: BackendTLSPolicy
metadata:
name: grpc-ext-auth-btls
spec:
targetRef:
group: ''
targetRefs:
- group: ''
kind: Service
name: grpc-ext-auth
sectionName: "9002"
tls:
caCertRefs:
validation:
caCertificateRefs:
- name: grpc-ext-auth-ca
group: ''
kind: ConfigMap
Expand All @@ -372,18 +372,18 @@ Save and apply the following resource to your cluster:
```yaml
---
apiVersion: gateway.networking.k8s.io/v1alpha2
apiVersion: gateway.networking.k8s.io/v1alpha3
kind: BackendTLSPolicy
metadata:
name: grpc-ext-auth-btls
spec:
targetRef:
group: ''
targetRefs:
- group: ''
kind: Service
name: grpc-ext-auth
sectionName: "9002"
tls:
caCertRefs:
validation:
caCertificateRefs:
- name: grpc-ext-auth-ca
group: ''
kind: ConfigMap
Expand Down

0 comments on commit bb348dc

Please sign in to comment.