Auto renew kubernetes secrets for autodevops

Describe your question in as much detail as possible:

I am using autodevops to deploy my application onto Kubernetes. The deployment is fine but the problem occurs when for one reason or another, the pod has to restart.
The scheduling fails with an imagepullbackoff error because the secret used to pull the image during deployment is now expired. This is a problem cause I must go and redeploy just to pull an already existing image. How can I keep the container secret updated to avoid this?

  • Consider including screenshots, error messages, and/or other helpful visuals
    image

  • What version are you on? Are you using self-managed or GitLab.com?
    Gitlab.com

  • Add the CI configuration from .gitlab-ci.yml and other configuration if relevant (e.g. docker-compose.yml)

  • What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?
    Could not figure a solution from online resources.

Still struggling with this. Any assistance here