<p>I have a AzureKeyVaultSecret object yaml. I don't want to use output tag to sync my secret from Azure Key Vault to Kubernetes.
How can I automatically get my pod/Deployment/StatefulSet to restart when the secret in AKV(Azure key vault) is changed/updated.</p>

the_eagle
<p>This is going to be a multi-step scenario.  Key Vault can be configured to send a message to an Event Hub when a secret changes:</p>
<p><a href="https://learn.microsoft.com/en-us/azure/key-vault/general/event-grid-overview" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/azure/key-vault/general/event-grid-overview</a></p>
<p>You can configure a Function App or a Logic App to listen to the event hub and respond accordingly.</p>
<p><a href="https://learn.microsoft.com/en-us/azure/connectors/connectors-create-api-azure-event-hubs" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/azure/connectors/connectors-create-api-azure-event-hubs</a></p>
<p><a href="https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-hubs" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-hubs</a></p>
<p>The responding app can then perform the actions that you need to have happen - restart the pod/deployment/statefulset using powershell/CLI/ARM or whatever the correct method is.</p>
<p><a href="https://learn.microsoft.com/en-us/azure/aks/start-stop-cluster" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/azure/aks/start-stop-cluster</a></p>
