<p>One could just run <code>kubectl apply -f &lt;file&gt;</code>. When one updates an application, one could just run this command. A CI is basically able to run scripts. As GitLab is just a CI and a Git repository one could just run <code>kubectl</code> in a gitlab-ci.yml pipeline.</p>

CC BY-SA 4.0
2018-03-13T22:41:07.820Z
2018-05-20T12:17:33.803Z
2018-05-20T12:17:33.803Z
030
<p>I would use Helm charts (you can write your own) for the CD part.</p>

<p>For the CI part you could install Jenkins and the kubernetes plugin using the Jenkins helm chart as well.</p>

<p>You can find plenty of documentation and tutorials on Helm and Jenkins on Kubenetes</p>

CC BY-SA 4.0
2018-05-21T06:54:53.703Z
Perhaps you could add a simple example.
030
CC BY-SA 4.0
2018-05-19T01:11:54.327Z
2018-05-19T01:11:54.327Z
DevLounge
<p>My company is moving from an architecture of "many projects on a single webserver" to a Kubernetes cluster with multiple different hosted web applications in a single cluster.</p>

<p>In order to make integration of new customers easy, I want an UI to clone a 'template' code repository and give it a new life. When creating a new client from this interface, it would also create a Kubernetes deployment in a staging cluster, clone a database and possibly do other automated tasks.</p>

<p>I thought of rolling my own interface that would manage my Kubernetes deployments so I could tailor it exactly to the requirements, then I looked up GitLab and figured somebody was probably doing just that already.</p>

<p>Having never used GitLab, would it suit my use case?</p>

<p>Once the initial setup is done, I would actually use it for its intended purpose so I know it'll be good for that at least. </p>

<p>Question 2: Can I edit Kubernetes deployment configs from GitLab, such as changing replica count or RAM limit while it's running?</p>

CC BY-SA 3.0
2018-03-14T21:02:32.160Z
Do you currently host your code (either infra or app) in a git repository?
Preston Martin
<kubernetes><gitlab><software-recommendation>
Should I build my own pipeline or use GitLab for Kubernetes?
A_V
# Should I build my own pipeline or use GitLab for Kubernetes?

(Asked by: username_0 on 2018-03-13)

My company is moving from an architecture of "many projects on a single webserver" to a Kubernetes cluster with multiple different hosted web applications in a single cluster.

In order to make integration of new customers easy, I want an UI to clone a 'template' code repository and give it a new life. When creating a new client from this interface, it would also create a Kubernetes deployment in a staging cluster, clone a database and possibly do other automated tasks.

I thought of rolling my own interface that would manage my Kubernetes deployments so I could tailor it exactly to the requirements, then I looked up GitLab and figured somebody was probably doing just that already.

Having never used GitLab, would it suit my use case?

Once the initial setup is done, I would actually use it for its intended purpose so I know it'll be good for that at least.

Question 2: Can I edit Kubernetes deployment configs from GitLab, such as changing replica count or RAM limit while it's running?

**Tags:** kubernetes, gitlab, software-recommendation

> **Comments:**
> **username_1**: Do you currently host your code (either infra or app) in a git repository?  

---

## 2 answers

### Answer by username_2 on 2018-03-13. Score: 2

One could just run `kubectl apply -f` . When one updates an application, one could just run this command. A CI is basically able to run scripts. As GitLab is just a CI and a Git repository one could just run `kubectl` in a gitlab-ci.yml pipeline.


---

### Answer by username_3 on 2018-05-19. Score: 2

I would use Helm charts (you can write your own) for the CD part.

For the CI part you could install Jenkins and the kubernetes plugin using the Jenkins helm chart as well.

You can find plenty of documentation and tutorials on Helm and Jenkins on Kubenetes

> **Comments:**
> **username_2**: Perhaps you could add a simple example.  

---

