apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app.kubernetes.io/managed-by: karavel
    app.kubernetes.io/name: external-secrets
    app.kubernetes.io/part-of: external-secrets
    app.kubernetes.io/version: 0.3.10
    karavel.io/component-name: external-secrets
    karavel.io/component-version: 0.1.0-SNAPSHOT
  name: external-secrets
  namespace: external-secrets
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/managed-by: karavel
      app.kubernetes.io/name: external-secrets
      app.kubernetes.io/part-of: external-secrets
      karavel.io/component-name: external-secrets
  template:
    metadata:
      labels:
        app.kubernetes.io/managed-by: karavel
        app.kubernetes.io/name: external-secrets
        app.kubernetes.io/part-of: external-secrets
        app.kubernetes.io/version: 0.3.10
        karavel.io/component-name: external-secrets
        karavel.io/component-version: 0.1.0-SNAPSHOT
    spec:
      containers:
      - args:
        - --enable-leader-election=true
        - --loglevel=info
        - --metrics-addr=:8080
        image: ghcr.io/external-secrets/external-secrets:v0.3.10
        imagePullPolicy: IfNotPresent
        name: external-secrets
        ports:
        - containerPort: 8080
          name: metrics
        resources:
          limits:
            cpu: 100m
            memory: 128Mi
          requests:
            cpu: 10m
            memory: 32Mi
        securityContext:
          capabilities:
            drop:
            - ALL
          readOnlyRootFilesystem: true
      priorityClassName: system-cluster-critical
      securityContext:
        fsGroup: 65534
        runAsNonRoot: true
        runAsUser: 1000
      serviceAccountName: external-secrets
