HiveBrain v1.2.0
Get Started
← Back to all entries
patternkubernetesMinor

Cost-efficient hosting for CI/CD?

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
costefficienthostingfor

Problem

I'm paying over $300/month for Kubernetes to have CI/CD in GitLab. And it only covers web apps, Android apps and deployment to Google Cloud. Plus some staging environments, that do not require many resources and that I'm using rarely. It doesn't cover CD to Apple App Store though.

I'm curious if there is a way to optimize this? Maybe I should buy some hardware or optimize Google Cloud somehow?

Solution

Given that you mentioned rarely using some k8s resources, you could explore some alternatives:

  • With gcloud SDK you could create scripts to be executed for the periods you want to reduce GKE nodes (even to zero) during periods you're not using it



  • With Google Cloud Functions (GCF) you can create some python/Node.js/Go script to access GKE APIs and also execute the operations to stop/reduce your instances. These GCF could be triggered by schedulers configured by Cloud Scheduler. The cost here for such executions will be really low or even zero.

Context

StackExchange DevOps Q#9361, answer score: 2

Revisions (0)

No revisions yet.