---
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: tkr-resolver-cluster-webhook
  name: tkr-resolver-cluster-webhook-manager
  namespace: tkr-system
spec:
  replicas: 1
  selector:
    matchLabels:
      app: tkr-resolver-cluster-webhook
  template:
    metadata:
      labels:
        app: tkr-resolver-cluster-webhook
    spec:
      containers:
      - image: tkr-resolver-cluster-webhook:latest
        imagePullPolicy: Always
        name: manager
        command:
        - /manager
        resources:
          limits:
            cpu: 100m
            memory: 30Mi
          requests:
            cpu: 100m
            memory: 20Mi
        ports:
        - containerPort: 9443
          name: webhook-server
          protocol: TCP
        volumeMounts:
        - mountPath: /tmp/k8s-webhook-server/serving-certs
          name: cert
          readOnly: true
      serviceAccount: tkr-service-manager-sa
      terminationGracePeriodSeconds: 10
      volumes:
      - name: cert
        secret:
          secretName: tkr-resolver-cluster-webhook-service-cert
