Move API canary to GKE Ingress
Also pins API to version to be updated with other canary services
@@ -25,9 +25,9 @@ spec:
serviceAccountName: api
containers:
- name: api
- image: gcr.io/k8s-testgrid/api:latest # TODO(chases2): tag to version
+ image: gcr.io/k8s-testgrid/api:v20210803-v0.0.87-10-g07789ec
args:
- - --scope=gs://testgrid-canary
+ - --scope=gs://k8s-testgrid-canary
- --port=8080
---
apiVersion: v1
@@ -38,17 +38,35 @@ metadata:
name: api
namespace: testgrid-canary
---
-kind: Service
apiVersion: v1
+kind: Service
metadata:
name: api
namespace: testgrid-canary
spec:
+ type: NodePort
selector:
- app: api
+ app: testgrid
+ component: api
ports:
- protocol: TCP
- targetPort: 8080
port: 80
- name: http
- type: LoadBalancer
+ targetPort: 8080
+---
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: testgrid-api-ingress
+ annotations:
+ kubernetes.io/ingress.class: "gce"
+spec:
+ rules:
+ - http:
+ paths:
+ - path: /*
+ pathType: ImplementationSpecific
+ backend:
+ service:
+ name: api
+ port:
+ number: 80
\ No newline at end of file
