File tree 6 files changed +89
-0
lines changed
6 files changed +89
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : source.toolkit.fluxcd.io/v1beta2
3
+ kind : OCIRepository
4
+ metadata :
5
+ name : capacitor
6
+ namespace : flux-system
7
+ spec :
8
+ interval : 12h
9
+ url : oci://ghcr.io/gimlet-io/capacitor-manifests
10
+ ref :
11
+ semver : " >=0.1.0"
12
+ ---
13
+ apiVersion : kustomize.toolkit.fluxcd.io/v1
14
+ kind : Kustomization
15
+ metadata :
16
+ name : capacitor
17
+ namespace : flux-system
18
+ spec :
19
+ targetNamespace : flux-system
20
+ interval : 1h
21
+ retryInterval : 2m
22
+ timeout : 5m
23
+ wait : true
24
+ prune : true
25
+ path : " ./"
26
+ sourceRef :
27
+ kind : OCIRepository
28
+ name : capacitor
29
+ ---
30
+ apiVersion : " cilium.io/v2"
31
+ kind : CiliumNetworkPolicy
32
+ metadata :
33
+ name : allow-ingress-to-capacitor
34
+ namespace : flux-system
35
+ spec :
36
+ endpointSelector :
37
+ matchLabels :
38
+ app.kubernetes.io/name : onechart
39
+ app.kubernetes.io/instance : capacitor
40
+ ingress :
41
+ - fromEntities :
42
+ - ingress
43
+ - toPorts :
44
+ - ports :
45
+ - port : " 9000"
46
+ protocol : TCP
Original file line number Diff line number Diff line change @@ -8,5 +8,6 @@ resources:
8
8
- nix2container-image-info.yaml
9
9
- trigger.yaml
10
10
- update-image-tags.yaml
11
+ - capacitor.yaml
11
12
# - nativelink-gateways.yaml # Gateways are handled in Pulumi via the
12
13
# NativeLinkGateways resource.
Original file line number Diff line number Diff line change 57
57
- name : tkn-gateway
58
58
protocol : HTTP
59
59
port : 80
60
+ ---
61
+ apiVersion : gateway.networking.k8s.io/v1beta1
62
+ kind : Gateway
63
+ metadata :
64
+ name : capacitor-gateway
65
+ namespace : flux-system
66
+ spec :
67
+ gatewayClassName : cilium
68
+ listeners :
69
+ - name : capacitor-gateway
70
+ protocol : HTTP
71
+ port : 80
Original file line number Diff line number Diff line change 49
49
backendRefs :
50
50
- name : tekton-dashboard
51
51
port : 9097
52
+ ---
53
+ apiVersion : gateway.networking.k8s.io/v1
54
+ kind : HTTPRoute
55
+ metadata :
56
+ name : capacitor-route
57
+ namespace : flux-system
58
+ spec :
59
+ parentRefs :
60
+ - sectionName : capacitor-gateway
61
+ name : capacitor-gateway
62
+ rules :
63
+ - matches :
64
+ - path :
65
+ value : /
66
+ backendRefs :
67
+ - name : capacitor
68
+ port : 9000
Original file line number Diff line number Diff line change @@ -310,6 +310,7 @@ func (component *Loadbalancer) Install(
310
310
"el-gateway" : false ,
311
311
"hubble-gateway" : false ,
312
312
"tkn-gateway" : false ,
313
+ "capacitor-gateway" : false ,
313
314
},
314
315
), component .Gateways )
315
316
if err != nil {
Original file line number Diff line number Diff line change @@ -155,6 +155,17 @@ func ProgramForLocalCluster(ctx *pulumi.Context) error {
155
155
},
156
156
}
157
157
158
+ capacitorGateway := components.Gateway {
159
+ ExternalPort : 9000 , //nolint:mnd
160
+ InternalPort : 9000 , //nolint:mnd
161
+ Routes : []components.RouteConfig {
162
+ {
163
+ Prefix : "/" ,
164
+ Cluster : "capacitor-gateway" ,
165
+ },
166
+ },
167
+ }
168
+
158
169
nativelinkGateway := components.Gateway {
159
170
ExternalPort : 8082 , //nolint:mnd
160
171
InternalPort : 8089 , //nolint:mnd
@@ -184,6 +195,7 @@ func ProgramForLocalCluster(ctx *pulumi.Context) error {
184
195
"kind-loadbalancer" ,
185
196
& components.Loadbalancer {
186
197
Gateways : []components.Gateway {
198
+ capacitorGateway ,
187
199
nativelinkGateway ,
188
200
hubbleGateway ,
189
201
tknGateway ,
You can’t perform that action at this time.
0 commit comments