cluster/canary/api.yaml (74 lines of code) (raw):
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: testgrid-api
namespace: testgrid-canary
labels:
app: testgrid
channel: stable
component: api
spec:
replicas: 1
selector:
matchLabels:
app: testgrid
channel: stable
component: api
template:
metadata:
labels:
app: testgrid
channel: stable
component: api
spec:
serviceAccountName: api
containers:
- name: api
image: gcr.io/k8s-testgrid/api:v20241218-v0.0.174-12-ga809d62a
args:
- --allowed-origin=*
- --scope=gs://k8s-testgrid-canary
- --port=8080
---
apiVersion: v1
kind: ServiceAccount
metadata:
annotations:
iam.gke.io/gcp-service-account: testgrid-canary-api@k8s-testgrid.iam.gserviceaccount.com
name: api
namespace: testgrid-canary
---
apiVersion: v1
kind: Service
metadata:
name: api
namespace: testgrid-canary
spec:
type: NodePort
selector:
app: testgrid
component: api
ports:
- protocol: TCP
port: 80
targetPort: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: testgrid-api-ingress
namespace: testgrid-canary
annotations:
kubernetes.io/ingress.class: "gce"
spec:
rules:
- http:
paths:
- path: /*
pathType: ImplementationSpecific
backend:
service:
name: api
port:
number: 80