Fix ingressRouteTCP external name service examples in documentation

This commit is contained in:
Romain 2021-05-06 12:04:08 +02:00 committed by GitHub
parent ee12424795
commit 40f21f41e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1202,7 +1202,7 @@ Register the `IngressRouteTCP` [kind](../../reference/dynamic-configuration/kube
??? example "Examples"
```yaml tab="IngressRouteTCP"
```yaml tab="Only on IngressRouteTCP"
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteTCP
@ -1232,38 +1232,7 @@ Register the `IngressRouteTCP` [kind](../../reference/dynamic-configuration/kube
type: ExternalName
```
```yaml tab="ExternalName Service"
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteTCP
metadata:
name: test.route
namespace: default
spec:
entryPoints:
- foo
routes:
- match: HostSNI(`*`)
kind: Rule
services:
- name: external-svc
---
apiVersion: v1
kind: Service
metadata:
name: external-svc
namespace: default
spec:
externalName: external.domain
type: ExternalName
ports:
- port: 80
```
```yaml tab="Both sides"
```yaml tab="On both sides"
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteTCP