28 lines
508 B
Markdown
28 lines
508 B
Markdown
**vim canary-v2.yaml**
|
||
|
||
```
|
||
apiVersion: networking.k8s.io/v1
|
||
kind: Ingress
|
||
metadata:
|
||
annotations:
|
||
nginx.ingress.kubernetes.io/canary: "true"
|
||
nginx.ingress.kubernetes.io/canary-weight: "10"
|
||
name: canary-v2
|
||
namespace: canary
|
||
spec:
|
||
ingressClassName: nginx
|
||
rules:
|
||
- host: canary.com
|
||
http:
|
||
paths:
|
||
- backend:
|
||
service:
|
||
name: canary-v2
|
||
port:
|
||
number: 8080
|
||
path: /
|
||
pathType: ImplementationSpecific
|
||
|
||
```
|
||
|