apiVersion: apps/v1
kind: Deployment
metadata:
  name: pxbackup-${VERSIONS_TAG}
  labels:
    app: pxbackup-${VERSIONS_TAG}
  namespace: pxdocs-backup
spec:
  replicas: 3
  selector:
    matchLabels:
      app: pxbackup-${VERSIONS_TAG}
  strategy:
    rollingUpdate:
      maxUnavailable: 1
  template:
    metadata:
      labels:
        app: pxbackup-${VERSIONS_TAG}
    spec:
      containers:
        - name: nginx
          image: ${DEPLOYMENT_IMAGE}
          ports:
            - containerPort: 80
          livenessProbe:
            httpGet:
              path: /
              port: 80
            initialDelaySeconds: 10
            timeoutSeconds: 1
          readinessProbe:
            httpGet:
              path: /
              port: 80
            initialDelaySeconds: 10
            timeoutSeconds: 1
