Update kubernetes-crd.md
This commit is contained in:
parent
b7fe55b6be
commit
12e462f383
1 changed files with 27 additions and 27 deletions
|
@ -108,22 +108,22 @@ The Kubernetes Ingress Controller, The Custom Resource Way.
|
||||||
name: myingressroute
|
name: myingressroute
|
||||||
namespace: default
|
namespace: default
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
entryPoints:
|
entryPoints:
|
||||||
- web
|
- web
|
||||||
|
|
||||||
routes:
|
routes:
|
||||||
- match: Host(`foo`) && PathPrefix(`/bar`)
|
- match: Host(`foo`) && PathPrefix(`/bar`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
services:
|
services:
|
||||||
- name: whoami
|
- name: whoami
|
||||||
port: 80
|
port: 80
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: traefik.containo.us/v1alpha1
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
kind: IngressRouteTCP
|
kind: IngressRouteTCP
|
||||||
metadata:
|
metadata:
|
||||||
name: ingressroute.tcp
|
name: ingressroute.tcp
|
||||||
namespace: default
|
namespace: default
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
|
@ -138,19 +138,19 @@ The Kubernetes Ingress Controller, The Custom Resource Way.
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: traefik.containo.us/v1alpha1
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
kind: IngressRouteUDP
|
kind: IngressRouteUDP
|
||||||
metadata:
|
metadata:
|
||||||
name: ingressroute.udp
|
name: ingressroute.udp
|
||||||
namespace: default
|
namespace: default
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
entryPoints:
|
entryPoints:
|
||||||
- fooudp
|
- fooudp
|
||||||
routes:
|
routes:
|
||||||
- kind: Rule
|
- kind: Rule
|
||||||
services:
|
services:
|
||||||
- name: whoamiudp
|
- name: whoamiudp
|
||||||
port: 8080
|
port: 8080
|
||||||
```
|
```
|
||||||
|
|
||||||
```yaml tab="Whoami"
|
```yaml tab="Whoami"
|
||||||
|
|
Loading…
Reference in a new issue