github.com/GoogleCloudPlatform/testgrid@v0.0.174/cluster/canary/api.yaml (about) 1 --- 2 apiVersion: apps/v1 3 kind: Deployment 4 metadata: 5 name: testgrid-api 6 namespace: testgrid-canary 7 labels: 8 app: testgrid 9 channel: stable 10 component: api 11 spec: 12 replicas: 1 13 selector: 14 matchLabels: 15 app: testgrid 16 channel: stable 17 component: api 18 template: 19 metadata: 20 labels: 21 app: testgrid 22 channel: stable 23 component: api 24 spec: 25 serviceAccountName: api 26 containers: 27 - name: api 28 image: gcr.io/k8s-testgrid/api:v20230926-v0.0.165-24-ge8c030e5 29 args: 30 - --allowed-origin=* 31 - --scope=gs://k8s-testgrid-canary 32 - --port=8080 33 --- 34 apiVersion: v1 35 kind: ServiceAccount 36 metadata: 37 annotations: 38 iam.gke.io/gcp-service-account: testgrid-canary-api@k8s-testgrid.iam.gserviceaccount.com 39 name: api 40 namespace: testgrid-canary 41 --- 42 apiVersion: v1 43 kind: Service 44 metadata: 45 name: api 46 namespace: testgrid-canary 47 spec: 48 type: NodePort 49 selector: 50 app: testgrid 51 component: api 52 ports: 53 - protocol: TCP 54 port: 80 55 targetPort: 8080 56 --- 57 apiVersion: networking.k8s.io/v1 58 kind: Ingress 59 metadata: 60 name: testgrid-api-ingress 61 namespace: testgrid-canary 62 annotations: 63 kubernetes.io/ingress.class: "gce" 64 spec: 65 rules: 66 - http: 67 paths: 68 - path: /* 69 pathType: ImplementationSpecific 70 backend: 71 service: 72 name: api 73 port: 74 number: 80