How to Auto Deploy ready deployment files through gitlab

Posted November 5, 2021 175 views

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:


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.

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.

Submit an Answer
1 answer

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:

I hope it helps!

Best Regards,
Purnima Kumari

by Jonathan Cardoso
Having an automated deployment process is a requirement for a scalable and resilient application, and it's especially important to apply CI/CD concepts to Kubernetes. In this article you will use CircleCI to automatically deploy a sample application to a DigitalOcean Kubernetes (DOKS) cluster.