You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/canary-deployment.md
+12-6Lines changed: 12 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@ spec:
97
97
98
98
```yaml
99
99
kind: Ingress
100
-
apiVersion: networking.k8s.io/v1beta1
100
+
apiVersion: networking.k8s.io/v1
101
101
metadata:
102
102
name: echo
103
103
spec:
@@ -106,12 +106,18 @@ spec:
106
106
http:
107
107
paths:
108
108
- path: /
109
+
pathType: ImplementationSpecific
109
110
backend:
110
-
serviceName: echo-prod
111
-
servicePort: http
112
-
- backend:
113
-
serviceName: echo-staging
114
-
servicePort: http
111
+
service:
112
+
name: echo-prod
113
+
port:
114
+
name: http
115
+
- pathType: ImplementationSpecific
116
+
backend:
117
+
service:
118
+
name: echo-staging
119
+
port:
120
+
name: http
115
121
```
116
122
117
123
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.
0 commit comments