From 79537bfc385e94f449eb9f667b59d47e920b4d05 Mon Sep 17 00:00:00 2001 From: Mikhail Goncharov Date: Tue, 21 Jul 2020 17:42:02 +0200 Subject: [PATCH] updated deployment --- kubernetes/buildkite/deployment.yaml | 89 ++++++++++++++-------------- 1 file changed, 45 insertions(+), 44 deletions(-) diff --git a/kubernetes/buildkite/deployment.yaml b/kubernetes/buildkite/deployment.yaml index 6078bfe..3b08b11 100644 --- a/kubernetes/buildkite/deployment.yaml +++ b/kubernetes/buildkite/deployment.yaml @@ -19,56 +19,57 @@ metadata: namespace: buildkite spec: replicas: 4 + strategy: + rollingUpdate: + maxSurge: 25% + maxUnavailable: 25% + type: RollingUpdate + selector: + matchLabels: + app: agent-premerge-debian template: metadata: labels: app: agent-premerge-debian spec: - strategy: - rollingUpdate: - maxSurge: 25% - maxUnavailable: 25% - type: RollingUpdate containers: - - name: buildkite-premerge-debian - image: gcr.io/llvm-premerge-checks/buildkite-premerge-debian - resources: - limits: - cpu: 30 - memory: 45Gi - requests: - cpu: 30 - memory: 45Gi - volumeMounts: - - name: ssd - mountPath: /mnt/disks/ssd0 - - name: github-ssh - mountPath: /mnt/ssh - terminationMessagePath: /dev/termination-log - terminationMessagePolicy: File - env: - - name: BUILDKITE_AGENT_TOKEN - valueFrom: - secretKeyRef: - name: buildkite-agent-token - key: token - - name: BUILDKITE_AGENT_TAGS - value: "queue=linux" - - name: BUILDKITE_BUILD_PATH - value: "/mnt/disks/ssd0/agent" - - name: CONDUIT_TOKEN - valueFrom: - secretKeyRef: - name: conduit-api-token - key: token + - name: buildkite-premerge-debian + image: gcr.io/llvm-premerge-checks/buildkite-premerge-debian + resources: + limits: + cpu: 30 + memory: 45Gi + requests: + cpu: 30 + memory: 45Gi + volumeMounts: + - name: ssd + mountPath: /mnt/disks/ssd0 + - name: github-ssh + mountPath: /mnt/ssh + env: + - name: BUILDKITE_AGENT_TOKEN + valueFrom: + secretKeyRef: + name: buildkite-agent-token + key: token + - name: BUILDKITE_AGENT_TAGS + value: "queue=linux" + - name: BUILDKITE_BUILD_PATH + value: "/mnt/disks/ssd0/agent" + - name: CONDUIT_TOKEN + valueFrom: + secretKeyRef: + name: conduit-api-token + key: token volumes: - - name: ssd - hostPath: - # directory location on host - path: /mnt/disks/ssd0 - type: Directory - - name: github-ssh - secret: - secretName: github-ssh + - name: ssd + hostPath: + # directory location on host + path: /mnt/disks/ssd0 + type: Directory + - name: github-ssh + secret: + secretName: github-ssh nodeSelector: cloud.google.com/gke-nodepool: jenkins-agents \ No newline at end of file