<p>I'm trying to set the <code>minimum-container-ttl-duration</code> property on a Kubernetes CronJob. I see a bunch of properties like this that appear to be configurable, but the documentation doesn't appear to show where, in the yml file, they can actually be set.</p>

<p>In this example yml, where would I put this property?</p>

<pre><code>apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: hello
spec:
  schedule: "*/1 * * * *"
  jobTemplate:
    spec:
      template:
        spec:
          containers:
          - name: hello
            image: busybox
            args:
            - /bin/sh
            - -c
            - date; echo Hello from the Kubernetes cluster
          restartPolicy: OnFailure
</code></pre>

<p><code>minimum-container-ttl-duration</code> is not a property on <code>CronJob</code> but <strong>is a Node-level property</strong> set via a command line parameter: <code>kubelet ... --minimum-container-ttl-duration=x</code>.</p>

<p><a href="https://kubernetes.io/docs/concepts/cluster-administration/kubelet-garbage-collection/#user-configuration" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/cluster-administration/kubelet-garbage-collection/#user-configuration</a>:</p>

<blockquote>
  <p><code>minimum-container-ttl-duration</code>, minimum age for a finished container before it is garbage collected. Default is 0 minute, which means every finished container will be garbage collected.</p>
</blockquote>

<p>The usage of this flag is deprecated.</p>
