| # Copyright 2018 Google Inc. All Rights Reserved. |
| apiVersion: apps/v1 |
| kind: Deployment |
| metadata: |
| labels: |
| app: exec-server |
| annotations: |
| imagetag: $IMAGETAG |
| buildtag: $TAG |
| name: exec-server |
| spec: |
| replicas: 2 |
| selector: |
| matchLabels: |
| app: exec-server |
| template: |
| metadata: |
| labels: |
| app: exec-server |
| spec: |
| containers: |
| - command: |
| - /opt/goma/bin/exec_server |
| - --trace-project-id=$PROJECT_ID |
| - --file-addr=passthrough:///file-server:5050 |
| - --cmd-cache-addr=cmd-cache-server:5050 |
| name: exec-server |
| image: gcr.io/$CONTAINER_PROJECT_ID/exec-server:$IMAGETAG |
| ports: |
| - containerPort: 5050 |
| protocol: TCP |
| - containerPort: 8081 |
| protocol: TCP |
| resources: |
| limits: |
| cpu: 1500m |
| memory: 1500Mi |
| requests: |
| cpu: 100m |
| memory: 1024Mi |
| # following could be configured by PodPreset? |
| livenessProbe: |
| failureThreshold: 20 |
| httpGet: |
| path: /healthz |
| port: 8081 |
| scheme: HTTP |
| initialDelaySeconds: 60 |
| periodSeconds: 15 |
| timeoutSeconds: 5 |
| readinessProbe: |
| failureThreshold: 20 |
| httpGet: |
| path: /healthz |
| port: 8081 |
| scheme: HTTP |
| initialDelaySeconds: 60 |
| periodSeconds: 15 |
| timeoutSeconds: 5 |
| terminationGracePeriodSeconds: 300 |