apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: preview-operator-test
  name: preview-operator-test
  namespace: default
spec:
  selector:
    matchLabels:
      app: preview-operator-test
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: preview-operator-test
    spec:
      containers:
        - image: nginx/stable-alpine:latest
          imagePullPolicy: Always
          name: preview-operator-test
          ports:
            - name: http
              containerPort: 80
              protocol: TCP
