Skip to content

Commit

Permalink
doc: replace underscore by hyphen for k8s metadata names.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Aug 3, 2020
1 parent a2ca235 commit ec775a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/content/migration/v1-to-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ To apply a redirection:
- name: whoami
port: 80
middlewares:
- name: https_redirect
- name: https-redirect

---
apiVersion: traefik.containo.us/v1alpha1
Expand All @@ -476,7 +476,7 @@ To apply a redirection:
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: https_redirect
name: https-redirect
spec:
redirectScheme:
scheme: https
Expand All @@ -501,7 +501,7 @@ To apply a redirection:
[http.routers.router1.tls]

[http.middlewares]
[http.middlewares.https_redirect.redirectScheme]
[http.middlewares.https-redirect.redirectScheme]
scheme = "https"
permanent = true
```
Expand All @@ -528,7 +528,7 @@ To apply a redirection:
tls: {}

middlewares:
https_redirect:
https-redirect:
redirectScheme:
scheme: https
permanent: true
Expand Down

0 comments on commit ec775a0

Please sign in to comment.