apiVersion: apps/v1
kind: Deployment
metadata:
  name: stackset-controller
  namespace: kube-system
  labels:
    application: stackset-controller
    version: "v1.2.1"
spec:
  replicas: 1
  selector:
    matchLabels:
      application: stackset-controller
  template:
    metadata:
      labels:
        application: stackset-controller
        version: "v1.2.1"
    spec:
{{- if eq .Cluster.ConfigItems.system_pods_critical "true" }}
      priorityClassName: system-cluster-critical
{{- end }}
      serviceAccountName: stackset-controller
      containers:
      - name: stackset-controller
        image: "registry.opensource.zalan.do/teapot/stackset-controller:v1.2.1"
        args:
        - "--interval={{ .Cluster.ConfigItems.stackset_controller_sync_interval }}"
        - "--migrate-to=stackset"
        env:
          - name: CLUSTER_DOMAIN
            value: "{{ .Cluster.Alias }}.zalan.do"
        resources:
          limits:
            cpu: 10m
            memory: 100Mi
          requests:
            cpu: 10m
            memory: 100Mi
        livenessProbe:
          failureThreshold: 10
          httpGet:
            path: /healthz
            port: 7979
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /healthz
            port: 7979
        securityContext:
          runAsNonRoot: true
          runAsUser: 65534
          readOnlyRootFilesystem: true
          capabilities:
            drop: ["ALL"]

apiVersion: apps/v1
kind: Deployment
metadata:
  name: stackset-controller
  namespace: kube-system
  labels:
    application: stackset-controller
    version: "v1.2.3"
spec:
  replicas: 1
  selector:
    matchLabels:
      application: stackset-controller
  template:
    metadata:
      labels:
        application: stackset-controller
        version: "v1.2.3"
    spec:
{{- if eq .Cluster.ConfigItems.system_pods_critical "true" }}
      priorityClassName: system-cluster-critical
{{- end }}
      serviceAccountName: stackset-controller
      containers:
      - name: stackset-controller
        image: "registry.opensource.zalan.do/teapot/stackset-controller:v1.2.3"
        args:
        - "--interval={{ .Cluster.ConfigItems.stackset_controller_sync_interval }}"
        - "--migrate-to=stackset"
        env:
          - name: CLUSTER_DOMAIN
            value: "{{ .Cluster.Alias }}.zalan.do"
        resources:
          limits:
            cpu: 10m
            memory: 100Mi
          requests:
            cpu: 10m
            memory: 100Mi
        livenessProbe:
          failureThreshold: 10
          httpGet:
            path: /healthz
            port: 7979
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /healthz
            port: 7979
        securityContext:
          runAsNonRoot: true
          runAsUser: 65534
          readOnlyRootFilesystem: true
          capabilities:
            drop: ["ALL"]

Fix RPS based scaling with stackset
Fix RPS based scaling with stackset

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