Skip to content

Commit 2c0145f

Browse files
committed
updated the canary examples
1 parent 4823998 commit 2c0145f

3 files changed

Lines changed: 19 additions & 23 deletions

File tree

canary/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ You can also configure canary deployment based on values of the HTTP request hea
769769

770770
Following is a sample annotation for canary deployment based on the HTTP request header values:
771771

772-
ingress.citrix.com/canary-by-header-value: '["canary-header1","canary-header2","canary-header3","canary-header4"]'
772+
ingress.citrix.com/canary-by-header-value: '["value1","value2","value3","value4"]'
773773

774774
### Configure canary deployment using Ingress annotations
775775

docs/canary/canary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ You can also configure canary deployment based on values of the HTTP request hea
769769

770770
Following is a sample annotation for canary deployment based on the HTTP request header values:
771771

772-
ingress.citrix.com/canary-by-header-value: '["canary-header1","canary-header2","canary-header3","canary-header4"]'
772+
ingress.citrix.com/canary-by-header-value: '["value1","value2","value3","value4"]'
773773

774774
### Configure canary deployment using Ingress annotations
775775

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
11
apiVersion: networking.k8s.io/v1
22
kind: Ingress
33
metadata:
4-
name: graphql-alpha
5-
annotations:
6-
kubernetes.io/ingress.class: "citrix-vpx"
7-
ingress.citrix.com/frontend-ip: 192.0.2.179
8-
ingress.citrix.com/canary-by-header: "TENANT_ID"
9-
ingress.citrix.com/canary-by-header-value: '["canary-header1","canary-header2","canary-header3","canary-header4"]'
4+
name: guestbook
5+
annotations:
6+
kubernetes.io/ingress.class: citrix
7+
ingress.citrix.com/frontend-ip: 192.0.2.179
8+
ingress.citrix.com/canary-by-header: “header-name”
9+
ingress.citrix.com/canary-by-header-value: '[“value1”,“value2",“value3”,“value4"]'
1010
spec:
11-
tls:
12-
- secretName: web-ingress-secret
13-
hosts:
14-
- cna-api.analytics-daily.cloud.com
15-
rules:
16-
- host: cna-api.analytics-daily.cloud.com
17-
http:
18-
paths:
19-
- path: /graphql
20-
pathType: Prefix
21-
backend:
22-
service:
23-
name: graphql-alpha
24-
port:
25-
number: 80
11+
rules:
12+
- host: guestbook.com
13+
http:
14+
paths:
15+
- path: /
16+
pathType: Prefix
17+
backend:
18+
service:
19+
name: frontend
20+
port:
21+
number: 80

0 commit comments

Comments
 (0)