Question
Continuous deployment with k8s, is this right way to manage API token?
I just set CD on DO k8s with github actions.
When I deploy to DO k8s, I get authentication to DO k8s with my API token, which looks like
doctl auth init -t ${{ secrets.DO_TOKEN}}
Although it works like a charm. Everytime I make a deployment, I can see my API token generating in the API token page(cloud.digitalocean.com/account/api/tokens), which means If there would 10 deployments a day, I would got 20 tokens a day.
Is it fine? or am I doing something wrong?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×