title: Disable Istio sidecar injection to the job pod
body: <p>How to disable Istio sidecar injection for the Kubernetes <code>Job</code>?</p>
  <pre><code>apiVersion: batch/v1beta1
  kind: CronJob
  metadata:
    name: pod-restart
  spec:
    concurrencyPolicy: Forbid
    schedule: '0 8 * * *'
    jobTemplate:
      metadata:
        annotations:
          sidecar.istio.io/inject: &quot;false&quot;
      spec:
        backoffLimit: 2
        activeDeadlineSeconds: 600
        template:
          spec:
            serviceAccountName: pod-restart
            restartPolicy: Never
            containers:
              - name: kubectl
                image: bitnami/kubectl
                command: ['kubectl', 'rollout', 'restart', 'deployment/myapp']
  </code></pre>
  <p>Sidecar still gets injected.</p>