doc: replace underscore by hyphen for k8s metadata names.
This commit is contained in:
parent
a2ca235fee
commit
ec775a016a
1 changed files with 4 additions and 4 deletions
|
@ -453,7 +453,7 @@ To apply a redirection:
|
||||||
- name: whoami
|
- name: whoami
|
||||||
port: 80
|
port: 80
|
||||||
middlewares:
|
middlewares:
|
||||||
- name: https_redirect
|
- name: https-redirect
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: traefik.containo.us/v1alpha1
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
@ -476,7 +476,7 @@ To apply a redirection:
|
||||||
apiVersion: traefik.containo.us/v1alpha1
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
kind: Middleware
|
kind: Middleware
|
||||||
metadata:
|
metadata:
|
||||||
name: https_redirect
|
name: https-redirect
|
||||||
spec:
|
spec:
|
||||||
redirectScheme:
|
redirectScheme:
|
||||||
scheme: https
|
scheme: https
|
||||||
|
@ -501,7 +501,7 @@ To apply a redirection:
|
||||||
[http.routers.router1.tls]
|
[http.routers.router1.tls]
|
||||||
|
|
||||||
[http.middlewares]
|
[http.middlewares]
|
||||||
[http.middlewares.https_redirect.redirectScheme]
|
[http.middlewares.https-redirect.redirectScheme]
|
||||||
scheme = "https"
|
scheme = "https"
|
||||||
permanent = true
|
permanent = true
|
||||||
```
|
```
|
||||||
|
@ -528,7 +528,7 @@ To apply a redirection:
|
||||||
tls: {}
|
tls: {}
|
||||||
|
|
||||||
middlewares:
|
middlewares:
|
||||||
https_redirect:
|
https-redirect:
|
||||||
redirectScheme:
|
redirectScheme:
|
||||||
scheme: https
|
scheme: https
|
||||||
permanent: true
|
permanent: true
|
||||||
|
|
Loading…
Reference in a new issue