Skip to content

Commit afdd958

Browse files
committed
add a testgrid proxy
1 parent d1616d8 commit afdd958

2 files changed

Lines changed: 61 additions & 1 deletion

File tree

kubernetes/gke-prow/prow/gateway.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,5 @@ spec:
9999
- testgrid-api.prow.k8s.io
100100
rules:
101101
- backendRefs:
102-
- name: testgrid-api
102+
- name: testgrid-proxy
103103
port: 80

kubernetes/gke-prow/prow/testgrid.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,63 @@ spec:
105105
- protocol: TCP
106106
port: 80
107107
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+
volumeMounts:
132+
- name: nginx-config
133+
mountPath: /etc/nginx/conf.d/nginx.conf
134+
subPath: nginx.conf
135+
volumes:
136+
- name: nginx-config
137+
configMap:
138+
name: nginx-proxy-config
139+
---
140+
apiVersion: v1
141+
kind: ConfigMap
142+
metadata:
143+
name: nginx-proxy-config
144+
data:
145+
nginx.conf: |
146+
server {
147+
listen 80;
148+
server_name localhost;
149+
150+
location / {
151+
proxy_pass http://testgrid-data.k8s.io/;
152+
}
153+
}
154+
155+
---
156+
apiVersion: v1
157+
kind: Service
158+
metadata:
159+
name: testgrid-proxy
160+
spec:
161+
selector:
162+
app: testgrid-proxy
163+
ports:
164+
- protocol: TCP
165+
port: 80
166+
targetPort: 80
167+
type: ClusterIP

0 commit comments

Comments
 (0)