apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: cronjob-name-labels-admission-webhook
  name: cronjob-name-labels-admission-webhook
spec:
  replicas: 1
  selector:
    matchLabels:
      app: cronjob-name-labels-admission-webhook
  template:
    metadata:
      labels:
        app: cronjob-name-labels-admission-webhook
    spec:
      volumes:
      - name: tls
        secret:
          secretName: cronjob-name-labels-admission-webhook-tls-secret
      containers:
      - image: cronjob-name-labels-admission-webhook:develop
        name: cronjob-name-labels-admission-webhook
        command: ["/cronjob-name-labels-admission-webhook"]
        args: 
          [
            "--port=443",
            "--tls-cert-file=/tls/tls.crt",
            "--tls-private-key-file=/tls/tls.key",
          ]
        volumeMounts:
        - name: tls
          mountPath: /tls 
