File tree Expand file tree Collapse file tree 5 files changed +97
-4
lines changed
mse-simple-demo/helm/mse-simple-demo/templates Expand file tree Collapse file tree 5 files changed +97
-4
lines changed Original file line number Diff line number Diff line change 1+ apiVersion : mse.alibabacloud.com/v1alpha1
2+ kind : MseIngressConfig
3+ metadata :
4+ name : mse-ingress-config
5+ namespace : {{ .Release.Namespace }}
6+ spec :
7+ name : mse-ingress
8+ common :
9+ instance :
10+ spec : 2c4g
11+ replicas : 3
12+ ---
13+ apiVersion : networking.k8s.io/v1
14+ kind : IngressClass
15+ metadata :
16+ name : mse
17+ namespace : {{ .Release.Namespace }}
18+ spec :
19+ controller : mse.alibabacloud.com/ingress
20+ parameters :
21+ apiGroup : mse.alibabacloud.com
22+ kind : MseIngressConfig
23+ name : mse-ingress-config
24+ ---
25+ apiVersion : networking.k8s.io/v1
26+ kind : Ingress
27+ metadata :
28+ name : spring-cloud-a
29+ namespace : {{ .Release.Namespace }}
30+ spec :
31+ ingressClassName : mse
32+ rules :
33+ - host : example.com
34+ http :
35+ paths :
36+ - backend :
37+ service :
38+ name : spring-cloud-a
39+ port :
40+ number : 20001
41+ path : /
42+ pathType : Prefix
43+ ---
44+ apiVersion : networking.k8s.io/v1
45+ kind : Ingress
46+ metadata :
47+ annotations :
48+ nginx.ingress.kubernetes.io/canary : ' true'
49+ nginx.ingress.kubernetes.io/canary-by-header : x-user-id
50+ nginx.ingress.kubernetes.io/canary-by-header-value : ' 100'
51+ nginx.ingress.kubernetes.io/canary-weight : ' 0'
52+ mse.ingress.kubernetes.io/request-header-control-update : x-mse-tag gray
53+ name : spring-cloud-a-gray
54+ namespace : {{ .Release.Namespace }}
55+ spec :
56+ ingressClassName : mse
57+ rules :
58+ - host : example.com
59+ http :
60+ paths :
61+ - backend :
62+ service :
63+ name : spring-cloud-a-gray
64+ port :
65+ number : 20001
66+ path : /
67+ pathType : ImplementationSpecific
Original file line number Diff line number Diff line change 77 replicas : 1
88 selector :
99 matchLabels :
10- app : spring-cloud-a
10+ app : spring-cloud-a-gray
1111 version : gray
1212 template :
1313 metadata :
1616 msePilotCreateAppName : " spring-cloud-a"
1717 mseNamespace : " {{ .Values.mse.namespace }}"
1818 alicloud.service.tag : gray
19- app : " spring-cloud-a"
19+ app : " spring-cloud-a-gray "
2020 version : gray
2121 spec :
2222 containers :
Original file line number Diff line number Diff line change 1+ apiVersion : v1
2+ kind : Service
3+ metadata :
4+ name : spring-cloud-a-gray
5+ namespace : {{ .Release.Namespace }}
6+ spec :
7+ ports :
8+ - port : 20001
9+ protocol : TCP
10+ targetPort : 20001
11+ selector :
12+ app : spring-cloud-a-gray
13+ type : ClusterIP
Original file line number Diff line number Diff line change 1+ apiVersion : v1
2+ kind : Service
3+ metadata :
4+ name : spring-cloud-a
5+ namespace : {{ .Release.Namespace }}
6+ spec :
7+ ports :
8+ - port : 20001
9+ protocol : TCP
10+ targetPort : 20001
11+ selector :
12+ app : spring-cloud-a
13+ type : ClusterIP
Original file line number Diff line number Diff line change 77 replicas : 1
88 selector :
99 matchLabels :
10- app : spring-cloud-c
10+ app : spring-cloud-c-gray
1111 version : gray
1212 template :
1313 metadata :
1616 msePilotCreateAppName : " spring-cloud-c"
1717 mseNamespace : " {{ .Values.mse.namespace }}"
1818 alicloud.service.tag : gray
19- app : " spring-cloud-c"
19+ app : " spring-cloud-c-gray "
2020 version : gray
2121 spec :
2222 containers :
You can’t perform that action at this time.
0 commit comments