File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9999 - testgrid-api.prow.k8s.io
100100 rules :
101101 - backendRefs :
102- - name : testgrid-api
102+ - name : testgrid-proxy
103103 port : 80
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments