---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-test
  namespace: development
  labels:
    app: nginx-test
  annotations:
    flux.weave.works/automated: "true"
    flux.weave.works/tag.init: regexp:^3.*
    flux.weave.works/tag.podinfod: semver:~1.3
spec:
  replicas: 1
  strategy:
    rollingUpdate:
      maxUnavailable: 0
    type: RollingUpdate
  selector:
    matchLabels:
      app: nginx-test
  template:
    metadata:
      annotations:
        prometheus.io/scrape: "true"
      labels:
        app: nginx-test
    spec:
      containers:
      - name: nginx-test
        image: nginx:1-alpine-perl
        imagePullPolicy: IfNotPresent
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
        resources:
          limits:
            cpu: 1000m
            memory: 128Mi
          requests:
            cpu: 10m
            memory: 32Mi
