We have an application that makes pod deployments to the Kubernetes cluster, but it started failing a week later saying "Unauthorized". I noticed it's because the config file on DigitalOcean is being reset.
How can I ...
you could make a cronjob once a week downloading the new kubeconfig file trough doctl
with a command like this:
doctl kubernetes cluster kubeconfig show INSERT_CLUSTER_ID > ~/.kube/YOURKUBECONFIGNAME.yaml