How do I enrol already present secret to be managed by secret store #955
-
Hi Team, I have some kubernetes secrets deployed in AKS cluster. I want to know how do I enroll these secrets so that they are managed by secret store driver without impacting the application What I tried: I created a secret provider class that gets the secrets from azure key vault and in the "secretName" I gave the secret name that is already present in the cluster in same namespace where I am deploying the class. To verify all is good, I deleted the secret and restarted the pod and expect the secret to appear again, but it is not. I also tried adding the label secrets-store.csi.k8s.io/managed: "true" to the secret and tried deleting and restarting the pod, still not luck. What am I missing ?? What is expected: The secret should reappear when I am trying to run the pod. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@aramase - Any advise here please ? |
Beta Was this translation helpful? Give feedback.
-
Hello 👋🏻 Here is our quickstart guide - https://azure.github.io/secrets-store-csi-driver-provider-azure/docs/demos/standard-walkthrough/. I would recommend trying it out to see what configuration changes are required. If you're using the driver to sync as Kubernetes secret in addition to mount, then ensure you have set the required flags during installation - https://azure.github.io/secrets-store-csi-driver-provider-azure/docs/configurations/sync-with-k8s-secrets/. Here is our troubleshooting guide - https://azure.github.io/secrets-store-csi-driver-provider-azure/docs/troubleshooting/ |
Beta Was this translation helpful? Give feedback.
Hello 👋🏻 Here is our quickstart guide - https://azure.github.io/secrets-store-csi-driver-provider-azure/docs/demos/standard-walkthrough/. I would recommend trying it out to see what configuration changes are required.
If you're using the driver to sync as Kubernetes secret in addition to mount, then ensure you have set the required flags during installation - https://azure.github.io/secrets-store-csi-driver-provider-azure/docs/configurations/sync-with-k8s-secrets/.
Here is our troubleshooting guide - https://azure.github.io/secrets-store-csi-driver-provider-azure/docs/troubleshooting/