apiVersion: apps/v1
kind: Deployment
metadata:
  name: kube-downscaler
  namespace: kube-system
  labels:
    application: kube-downscaler
    version: v0.5
spec:
  replicas: 1
  selector:
    matchLabels:
      application: kube-downscaler
  template:
    metadata:
      labels:
        application: kube-downscaler
        version: v0.5
    spec:
      serviceAccountName: system
      containers:
      - name: downscaler
        # see https://github.com/hjacobs/kube-downscaler/releases
        image: registry.opensource.zalan.do/teapot/kube-downscaler:0.5
        args:
          - --interval=30
          - --exclude-namespaces=kube-system,visibility
          - --exclude-deployments=kube-downscaler,downscaler,postgres-operator
          - "--default-uptime={{ .ConfigItems.downscaler_default_uptime }}"
        resources:
          limits:
            memory: 150Mi
          requests:
            cpu: 5m
            memory: 150Mi
        securityContext:
          readOnlyRootFilesystem: true
          runAsNonRoot: true
          runAsUser: 1000

apiVersion: apps/v1
kind: Deployment
metadata:
  name: kube-downscaler
  namespace: kube-system
  labels:
    application: kube-downscaler
    version: v0.6
spec:
  replicas: 1
  selector:
    matchLabels:
      application: kube-downscaler
  template:
    metadata:
      labels:
        application: kube-downscaler
        version: v0.6
    spec:
      serviceAccountName: system
      containers:
      - name: downscaler
        # see https://github.com/hjacobs/kube-downscaler/releases
        image: registry.opensource.zalan.do/teapot/kube-downscaler:0.6
        args:
          - --interval=30
          - --exclude-namespaces=kube-system,visibility
          - --exclude-deployments=kube-downscaler,downscaler,postgres-operator
          - "--default-uptime={{ .ConfigItems.downscaler_default_uptime }}"
          - --kind=stackset
          - --kind=deployment
        resources:
          limits:
            memory: 150Mi
          requests:
            cpu: 5m
            memory: 150Mi
        securityContext:
          readOnlyRootFilesystem: true
          runAsNonRoot: true
          runAsUser: 1000

Update kube-downscaler to 0.6 (stackset support)
Update kube-downscaler to 0.6 (stackset support)

Signed-off-by: Mikkel Oscar Lyderik Larsen <81479e3d2d1e6902cb05f938ea9a734a092b1af3@zalando.de>
