| # Copyright 2018 Google Inc. All Rights Reserved. |
| apiVersion: apps/v1 |
| kind: Deployment |
| metadata: |
| labels: |
| app: execlog-server |
| annotations: |
| imagetag: $IMAGETAG |
| buildtag: "$TAG" |
| name: execlog-server |
| spec: |
| replicas: 2 |
| selector: |
| matchLabels: |
| app: execlog-server |
| strategy: |
| rollingUpdate: |
| maxSurge: 1 |
| maxUnavailable: 0 |
| type: RollingUpdate |
| template: |
| metadata: |
| labels: |
| app: execlog-server |
| spec: |
| containers: |
| - command: |
| - /opt/goma/bin/execlog_server |
| - --project-id=$PROJECT_ID |
| name: execlog-server |
| image: gcr.io/$CONTAINER_PROJECT_ID/execlog-server:$IMAGETAG |
| ports: |
| - containerPort: 5050 |
| protocol: TCP |
| - containerPort: 8081 |
| protocol: TCP |
| resources: |
| limits: |
| cpu: 200m |
| memory: 256Mi |
| requests: |
| cpu: 100m |
| memory: 128Mi |
| # following could be configured by PodPreset? |
| livenessProbe: |
| httpGet: |
| path: /healthz |
| port: 8081 |
| scheme: HTTP |
| initialDelaySeconds: 5 |
| periodSeconds: 5 |
| readinessProbe: |
| httpGet: |
| path: /healthz |
| port: 8081 |
| scheme: HTTP |
| initialDelaySeconds: 5 |
| periodSeconds: 5 |