<p>I'd like to know if I could set up that a pod restarts when a secret is changed?</p>

<p>I'm using openshift 3.7.</p>

<p>There is currently no mechanism for this. You could mount the secret as a volume and watch the file for changes and kill the process when that happens, requiring you to bake in specific logic to your application. This is probably not the best idea.</p>

<p>Alternatively you could write a controller as a sidecar and watch for changes on the resource or take a look at <a href="https://github.com/mfojtik/k8s-trigger-controller" rel="nofollow noreferrer">https://github.com/mfojtik/k8s-trigger-controller</a></p>
