apiVersion: apps/v1
kind: Deployment
metadata:
  name: multicluster-scheduler-agent
  labels:
    app: multicluster-scheduler-agent
spec:
  selector:
    matchLabels:
      app: multicluster-scheduler-agent
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app: multicluster-scheduler-agent
    spec:
      containers:
      - image: quay.io/admiralty/multicluster-scheduler-agent
        imagePullPolicy: Always
        name: controller
        resources:
          limits:
            cpu: 100m
            memory: 30Mi
          requests:
            cpu: 100m
            memory: 20Mi
        securityContext:
          runAsUser: 1000
      serviceAccountName: multicluster-scheduler-agent
      terminationGracePeriodSeconds: 10
