title: Kubernetes: Triggering a Rollout Restart via Configuration/AdmissionControllers
body: <p>In Kubernetes, I can trigger a rolling restart of a deployment using the <code>kubectl rollout</code> command.</p>
  <pre><code>% kubectl rollout restart deployment my-deployment-name
  </code></pre>
  <p>Is it possible to issue the same command via a configuration change?</p>
  <p>More specifically, is it possible for a mutating <a href="https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/" rel="nofollow noreferrer">admission controller</a> to trigger one of these rollouts?</p>
  <p>I will accept answers in form of:</p>
  <blockquote>
  <p>Yes, here's how you do it.</p>
  </blockquote>
  <p>or</p>
  <blockquote>
  <p>Yes, here's how you do it but here's why it is a Very Bad Idea™.</p>
  </blockquote>