File tree Expand file tree Collapse file tree 16 files changed +136
-855
lines changed Expand file tree Collapse file tree 16 files changed +136
-855
lines changed Original file line number Diff line number Diff line change 20
20
version : v0.11.1
21
21
- name : Install Flux in Kubernetes Kind
22
22
run : flux install
23
+ - name : Set Istio Gateway service type
24
+ run : |
25
+ kubectl -n flux-system create cm istio-version --from-literal=service=NodePort
23
26
- name : Setup cluster reconciliation
24
27
run : |
25
28
flux create source git flux-system \
30
33
--path=./clusters/my-cluster
31
34
- name : Verify cluster reconciliation
32
35
run : |
33
- kubectl -n flux-system wait kustomization/istio-operator --for=condition=ready --timeout=2m
34
36
kubectl -n flux-system wait kustomization/istio-system --for=condition=ready --timeout=2m
37
+ kubectl -n flux-system wait kustomization/istio-gateway --for=condition=ready --timeout=2m
35
38
kubectl -n flux-system wait kustomization/apps --for=condition=ready --timeout=2m
36
39
kubectl -n prod wait canary/frontend --for=condition=promoted --timeout=1m
37
40
kubectl -n prod rollout status deployment/frontend --timeout=1m
Original file line number Diff line number Diff line change 8
8
apiVersion : apps/v1
9
9
kind : Deployment
10
10
name : backend
11
- minReplicas : 2
11
+ minReplicas : 1
12
12
maxReplicas : 4
13
13
metrics :
14
14
- type : Resource
Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ spec:
22
22
port : 9898
23
23
# Istio gateways (optional)
24
24
gateways :
25
- - istio-system/public-gateway
25
+ - istio-system/public-gateway
26
26
# Istio virtual service host names (optional)
27
27
hosts :
28
- - " *"
28
+ - " *"
29
29
analysis :
30
30
# schedule interval (default 60s)
31
31
interval : 15s
72
72
timeout : 15s
73
73
url : http://flagger-loadtester.prod/
74
74
metadata :
75
- cmd : " hey -z 1m -q 10 -c 2 -H 'Cookie: type=insider' http://frontend.prod:9898 /"
75
+ cmd : " hey -z 1m -q 10 -c 2 -H 'Cookie: type=insider' http://istio-gateway.istio-system /"
Original file line number Diff line number Diff line change 63
63
cpu : 2000m
64
64
memory : 512Mi
65
65
requests :
66
- cpu : 100m
67
- memory : 64Mi
66
+ cpu : 10m
67
+ memory : 16Mi
Original file line number Diff line number Diff line change 8
8
apiVersion : apps/v1
9
9
kind : Deployment
10
10
name : frontend
11
- minReplicas : 2
11
+ minReplicas : 1
12
12
maxReplicas : 4
13
13
metrics :
14
14
- type : Resource
Original file line number Diff line number Diff line change 19
19
spec :
20
20
containers :
21
21
- name : loadtester
22
- image : weaveworks/ flagger-loadtester:0.13 .0
22
+ image : ghcr.io/fluxcd/ flagger-loadtester:0.22 .0
23
23
imagePullPolicy : IfNotPresent
24
24
ports :
25
25
- name : http
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : ConfigMap
3
+ metadata :
4
+ name : istio-version
5
+ namespace : flux-system
6
+ annotations :
7
+ kustomize.toolkit.fluxcd.io/ssa : merge
8
+ data :
9
+ version : 1.13.3
Original file line number Diff line number Diff line change 1
- apiVersion : kustomize.toolkit.fluxcd.io/v1beta1
2
- kind : Kustomization
3
- metadata :
4
- name : istio-operator
5
- namespace : flux-system
6
- spec :
7
- interval : 10m0s
8
- sourceRef :
9
- kind : GitRepository
10
- name : flux-system
11
- path : ./istio/operator
12
- prune : true
13
- validation : client
14
- healthChecks :
15
- - apiVersion : apps/v1
16
- kind : Deployment
17
- name : istio-operator
18
- namespace : istio-operator
19
- ---
20
- apiVersion : kustomize.toolkit.fluxcd.io/v1beta1
1
+ apiVersion : kustomize.toolkit.fluxcd.io/v1beta2
21
2
kind : Kustomization
22
3
metadata :
23
4
name : istio-system
24
5
namespace : flux-system
25
6
spec :
26
- dependsOn :
27
- - name : istio-operator
28
7
interval : 10m0s
8
+ path : ./istio/system
9
+ prune : true
10
+ wait : true
29
11
sourceRef :
30
12
kind : GitRepository
31
13
name : flux-system
32
- path : ./istio/system
33
- prune : true
34
- validation : client
35
- healthChecks :
36
- - apiVersion : apps/v1
37
- kind : Deployment
38
- name : istiod
39
- namespace : istio-system
40
- - apiVersion : apps/v1
41
- kind : Deployment
42
- name : prometheus
43
- namespace : istio-system
44
- - apiVersion : apps/v1
45
- kind : Deployment
46
- name : flagger
47
- namespace : istio-system
14
+ postBuild :
15
+ substituteFrom :
16
+ - kind : ConfigMap
17
+ name : istio-version
48
18
---
49
- apiVersion : kustomize.toolkit.fluxcd.io/v1beta1
19
+ apiVersion : kustomize.toolkit.fluxcd.io/v1beta2
50
20
kind : Kustomization
51
21
metadata :
52
22
name : istio-gateway
55
25
dependsOn :
56
26
- name : istio-system
57
27
interval : 10m0s
28
+ path : ./istio/gateway
29
+ prune : true
30
+ wait : true
58
31
sourceRef :
59
32
kind : GitRepository
60
33
name : flux-system
61
- path : ./istio/gateway
62
- prune : true
63
- validation : client
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ metadata:
6
6
spec :
7
7
provider :
8
8
type : prometheus
9
- address : http://prometheus.istio-system:9090
9
+ address : http://flagger- prometheus.istio-system:9090
10
10
query : |
11
11
100 - sum(
12
12
rate(
@@ -38,7 +38,7 @@ metadata:
38
38
spec :
39
39
provider :
40
40
type : prometheus
41
- address : http://prometheus.istio-system:9090
41
+ address : http://flagger- prometheus.istio-system:9090
42
42
query : |
43
43
histogram_quantile(
44
44
0.99,
Original file line number Diff line number Diff line change 1
- apiVersion : networking.istio.io/v1alpha3
1
+ apiVersion : networking.istio.io/v1beta1
2
2
kind : Gateway
3
3
metadata :
4
4
name : public-gateway
5
5
namespace : istio-system
6
6
spec :
7
7
selector :
8
- istio : ingressgateway
8
+ istio : gateway
9
9
servers :
10
10
- port :
11
11
number : 80
You can’t perform that action at this time.
0 commit comments