apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: jobs
spec:
  replicas: 2
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 0
      maxUnavailable: 50%
  template:
    metadata:
      labels:
        name: jobs
        app: fixtures
    spec:
      containers:
      - name: app
        image: busybox
        command: ["sleep", "40"]
        env:
        - name: GITHUB_REV
          value: <%= current_sha %>
      terminationGracePeriodSeconds: 30

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: jobs
spec:
  replicas: 2
  revisionHistoryLimit: 1
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 0
      maxUnavailable: 50%
  template:
    metadata:
      labels:
        name: jobs
        app: fixtures
    spec:
      containers:
      - name: app
        image: busybox
        command: ["sleep", "40"]
        env:
        - name: GITHUB_REV
          value: <%= current_sha %>
      terminationGracePeriodSeconds: 30

Test long-running pods together with revisionHistoryLimit
Test long-running pods together with revisionHistoryLimit
