| # Copyright 2022 The Go Authors. All rights reserved. | |
| # Use of this source code is governed by a BSD-style | |
| # license that can be found in the LICENSE file. | |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| namespace: prod | |
| name: coordinator-deployment | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: coordinator | |
| template: | |
| metadata: | |
| labels: | |
| app: coordinator | |
| spec: | |
| serviceAccountName: coordinator | |
| containers: | |
| - name: coordinator | |
| image: gcr.io/symbolic-datum-552/coordinator:latest | |
| imagePullPolicy: Always | |
| command: ["/coordinator", "-listen-http=:80", "-listen-https-autocert=:443", "-autocert-bucket=farmer-golang-org-autocert-cache", "-listen-https-selfsigned=:444"] | |
| securityContext: | |
| seccompProfile: | |
| type: RuntimeDefault | |
| appArmorProfile: | |
| type: RuntimeDefault | |
| ports: | |
| - containerPort: 80 | |
| - containerPort: 443 | |
| - containerPort: 444 | |
| - containerPort: 8123 # module proxy port (internal, not accessible directly from public) | |
| resources: | |
| requests: | |
| cpu: "2" | |
| memory: "2Gi" | |
| limits: | |
| cpu: "4" | |
| memory: "4Gi" | |
| --- | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| namespace: prod | |
| name: coordinator | |
| spec: | |
| ports: | |
| - port: 80 | |
| targetPort: 80 | |
| name: http | |
| - port: 443 | |
| targetPort: 443 | |
| name: https | |
| selector: | |
| app: coordinator | |
| type: LoadBalancer | |
| loadBalancerIP: 107.178.219.46 | |
| externalTrafficPolicy: Local | |
| --- | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| namespace: prod | |
| name: coordinator-internal-iap | |
| annotations: | |
| cloud.google.com/backend-config: '{"default": "coordinator-iap-backend"}' | |
| cloud.google.com/neg: '{"ingress": false}' | |
| cloud.google.com/app-protocols: '{"https":"HTTP2"}' | |
| spec: | |
| ports: | |
| - port: 444 | |
| targetPort: 444 | |
| name: https | |
| selector: | |
| app: coordinator | |
| type: NodePort | |
| --- | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| namespace: prod | |
| name: coordinator-internal | |
| annotations: | |
| cloud.google.com/neg: '{"ingress": false}' | |
| cloud.google.com/app-protocols: '{"https":"HTTP2"}' | |
| spec: | |
| ports: | |
| - port: 444 | |
| targetPort: 444 | |
| name: https | |
| selector: | |
| app: coordinator | |
| type: NodePort | |
| --- | |
| apiVersion: cloud.google.com/v1 | |
| kind: BackendConfig | |
| metadata: | |
| namespace: prod | |
| name: coordinator-iap-backend | |
| spec: | |
| iap: | |
| enabled: true | |
| oauthclientCredentials: | |
| secretName: iap-oauth |