Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

268
Views
Refreshing PODs automatically when mounted secrets gets updated, but it looks not happening

We are creating secrets for DB and mounting them as volume to POD, but when we update pod is not refreshing to pick up the new changes. but document says it does refresh automatically

https://kubernetes.io/docs/concepts/configuration/secret/

are we missing anything here? does it require any specific logic from Code side.

Thanks in advance

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Kubernetes does not itself support this feature at the moment and there is feature in the works (https://github.com/kubernetes/kubernetes/issues/22368).

You can use custom solution available to achieve the same and one of the popular ones include Reloader.

The doc you linked describes that the secret values inside the mounted volume will get updated when you update the Kubernetes Secret object. The application running inside the pod will need to re-read the secret after it is updated though and a new pod is not created on updating the secret itself.

Also, note that there can be some delay between the actual update of the secret and getting those values reflected in the volume.

As a result, the total delay from the moment when the Secret is updated to the moment when new keys are projected to the Pod can be as long as the kubelet sync period + cache propagation delay, where the cache propagation delay depends on the chosen cache type (it equals to watch propagation delay, ttl of cache, or zero correspondingly)

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!