doesn't work

I’m using the following hashicope annotations and these annotations are patched in the application pod using kubectl patch sts app-sts --patch “$(cat template.json)” command. "true" "update" 'vault-injector-secret' 'approle' 'auth/approle' '/vault/custom/.role-id' '/vault/custom/.secret-id' "/" : "/etc/app-secrets" "1m" |

Even if I specify “1m”, the secret file get refreshed after each 5min. But I want to make it refresh after each 1min.

For simplicity, I kept consule template empty here.

Can Anybody help me with this?

I’m not sure this is needed.
You’re patching the StatefulSet which means the Pod will be recreated anyway.

Just curious as to why you’re using AppRole within Kubernetes.
I’ve seen other people doing that before and just want to understand the motivation for doing so.

Has this path been redacted? If so, you should indicate that.

If you want to simplify it altogether then just remove this.

@macmiranda There is no specific reason to use app role authentication within Kubernetes. That’s the design of my project.

1 Like