Report this

What is the reason for this report?

How to Auto Deploy ready deployment files through gitlab

Posted on November 5, 2021

I have a own business running and started to develop my corporate site using django. I have a private repo in my docker hub which i pull in my deployment through regcred secret.

i have this files which i need to make my deployment:

deployment.yaml,ingress.yaml,service.yaml,configmap.yaml

so from cli point of view with kubectl I have understood how to deploy and expose services to the internet through ingress.

what is important for my workflow is, that I want to have multiple versions (using gitlab tags) and deployments through .gitlab-ci.yaml.

i have succesfully connected my kubernetes cluster from digital ocean with my self-managed gitlab instance which has metrics installed on it so i can see the cpu usage etc. so i know its working properly.

how would i proceed now, does anyone have experience with it ? is it possible to just copy paste this files into my repo and process it through a runner ? i think its not possible, isn’t it ?

I would need some help or tips how to proceed.

thank you and a nice weekend to everybody.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hi @brunsScubaDiver,

To automate deployments to your DigitalOcean Kubernetes from your code on a private GitLab repo can be achieved by following steps in the below articles:

https://www.digitalocean.com/community/tutorials/how-to-automate-deployments-to-digitalocean-kubernetes-with-circleci

I hope it helps!

Best Regards, Purnima Kumari

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.