Skip to content

Commit a0488a6

Browse files
committed
deploy new testgrid UI + proxy
1 parent 232da31 commit a0488a6

File tree

4 files changed

+215
-0
lines changed

4 files changed

+215
-0
lines changed

dns/zone-configs/k8s.io._0_base.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,16 @@ hooks.prow:
247247
- type: AAAA
248248
ttl: 600 # this has needed to change in the past
249249
value: "2600:1901:0:b465::"
250+
testgrid.prow:
251+
- type: A
252+
value: 34.128.150.99
253+
- type: AAAA
254+
value: "2600:1901:0:b465::"
255+
testgrid-api.prow:
256+
- type: A
257+
value: 34.128.150.99
258+
- type: AAAA
259+
value: "2600:1901:0:b465::"
250260
# prow-certificates in k8s-infra-prow project
251261
_acme-challenge.prow:
252262
type: CNAME

kubernetes/gke-prow/prow/gateway.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,33 @@ spec:
7171
- type: RequestRedirect
7272
requestRedirect:
7373
scheme: https
74+
---
75+
apiVersion: gateway.networking.k8s.io/v1
76+
kind: HTTPRoute
77+
metadata:
78+
name: testgrid-ui
79+
spec:
80+
parentRefs:
81+
- name: prow
82+
sectionName: https
83+
hostnames:
84+
- testgrid.prow.k8s.io
85+
rules:
86+
- backendRefs:
87+
- name: testgrid-ui
88+
port: 80
89+
---
90+
apiVersion: gateway.networking.k8s.io/v1
91+
kind: HTTPRoute
92+
metadata:
93+
name: testgrid-api
94+
spec:
95+
parentRefs:
96+
- name: prow
97+
sectionName: https
98+
hostnames:
99+
- testgrid-api.prow.k8s.io
100+
rules:
101+
- backendRefs:
102+
- name: testgrid-proxy
103+
port: 80

kubernetes/gke-prow/prow/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ resources:
2020
- statusreconciler.yaml
2121
- tide.yaml
2222
- monitoring.yaml
23+
- testgrid.yaml
Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: testgrid-api
5+
labels:
6+
app: testgrid
7+
component: api
8+
spec:
9+
replicas: 1
10+
selector:
11+
matchLabels:
12+
app: testgrid
13+
component: api
14+
template:
15+
metadata:
16+
labels:
17+
app: testgrid
18+
component: api
19+
spec:
20+
serviceAccountName: testgrid-api
21+
containers:
22+
- name: testgrid-api
23+
image: gcr.io/k8s-testgrid/api:v20251223-v0.0.175-2-g0e84967e
24+
args:
25+
- --allowed-origin=*
26+
- --scope=gs://k8s-testgrid
27+
- --port=8080
28+
ports:
29+
- name: http
30+
containerPort: 8080
31+
resources:
32+
requests:
33+
cpu: 200m
34+
memory: 256Mi
35+
limits:
36+
cpu: 500m
37+
memory: 1Gi
38+
---
39+
apiVersion: v1
40+
kind: ServiceAccount
41+
metadata:
42+
name: testgrid-api
43+
---
44+
apiVersion: v1
45+
kind: Service
46+
metadata:
47+
name: testgrid-api
48+
spec:
49+
selector:
50+
app: testgrid
51+
component: api
52+
ports:
53+
- protocol: TCP
54+
port: 80
55+
targetPort: 8080
56+
---
57+
apiVersion: apps/v1
58+
kind: Deployment
59+
metadata:
60+
name: testgrid-ui
61+
labels:
62+
app: testgrid
63+
component: ui
64+
spec:
65+
replicas: 1
66+
selector:
67+
matchLabels:
68+
app: testgrid
69+
component: ui
70+
template:
71+
metadata:
72+
labels:
73+
app: testgrid
74+
component: ui
75+
spec:
76+
serviceAccountName: testgrid-ui
77+
containers:
78+
- name: testgrid-ui
79+
image: gcr.io/k8s-staging-test-infra/testgrid-ui:latest
80+
ports:
81+
- name: http
82+
containerPort: 80
83+
resources:
84+
requests:
85+
cpu: 200m
86+
memory: 256Mi
87+
limits:
88+
cpu: 500m
89+
memory: 1Gi
90+
---
91+
apiVersion: v1
92+
kind: ServiceAccount
93+
metadata:
94+
name: testgrid-ui
95+
---
96+
apiVersion: v1
97+
kind: Service
98+
metadata:
99+
name: testgrid-ui
100+
spec:
101+
selector:
102+
app: testgrid
103+
component: ui
104+
ports:
105+
- protocol: TCP
106+
port: 80
107+
targetPort: 80
108+
---
109+
apiVersion: apps/v1
110+
kind: Deployment
111+
metadata:
112+
name: testgrid-proxy
113+
labels:
114+
app: testgrid-proxy
115+
spec:
116+
replicas: 1
117+
selector:
118+
matchLabels:
119+
app: testgrid-proxy
120+
template:
121+
metadata:
122+
labels:
123+
app: testgrid-proxy
124+
spec:
125+
containers:
126+
- name: nginx
127+
image: cgr.dev/chainguard/nginx
128+
ports:
129+
- name: http
130+
containerPort: 80
131+
resources:
132+
requests:
133+
cpu: 100m
134+
memory: 128Mi
135+
limits:
136+
cpu: 250m
137+
memory: 256Mi
138+
volumeMounts:
139+
- name: nginx-config
140+
mountPath: /etc/nginx/conf.d/nginx.conf
141+
subPath: nginx.conf
142+
volumes:
143+
- name: nginx-config
144+
configMap:
145+
name: nginx-proxy-config
146+
---
147+
apiVersion: v1
148+
kind: ConfigMap
149+
metadata:
150+
name: nginx-proxy-config
151+
data:
152+
nginx.conf: |
153+
server {
154+
listen 80;
155+
server_name localhost;
156+
157+
location / {
158+
proxy_pass http://testgrid-data.k8s.io/;
159+
}
160+
}
161+
162+
---
163+
apiVersion: v1
164+
kind: Service
165+
metadata:
166+
name: testgrid-proxy
167+
spec:
168+
selector:
169+
app: testgrid-proxy
170+
ports:
171+
- protocol: TCP
172+
port: 80
173+
targetPort: 80
174+
type: ClusterIP

0 commit comments

Comments
 (0)