Skip to content

Commit

Permalink
DOC/MINOR: Upgrade Ingress API version in Canary example
Browse files Browse the repository at this point in the history
Signed-off-by: Ruben Laban <ruben@tun0.nl>
  • Loading branch information
tun0 authored and oktalz committed Aug 25, 2022
1 parent a923fce commit 000976f
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions documentation/canary-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ spec:
```yaml
kind: Ingress
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
metadata:
name: echo
spec:
Expand All @@ -106,12 +106,18 @@ spec:
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
serviceName: echo-prod
servicePort: http
- backend:
serviceName: echo-staging
servicePort: http
service:
name: echo-prod
port:
name: http
- pathType: ImplementationSpecific
backend:
service:
name: echo-staging
port:
name: http
```
We can have ingress rules for staging and production in the same ingress resource but they **should not** share the same path otherwise the latter will overwrite the former. To avoid any confusion we can have rules in different ingress resources.
Expand Down

0 comments on commit 000976f

Please sign in to comment.