All Projects → CargoXio → drone-cleanup

CargoXio / drone-cleanup

Licence: Apache-2.0 license
Clean up completed drone.io jobs and pods from the Kubernetes cluster

Programming Languages

shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to drone-cleanup

deploy-drone
Deploy Drone CI to enable continuous integration ⚡️ on your product
Stars: ✭ 88 (+252%)
Mutual labels:  continuous-integration, drone-ci
kahoy
Simple Kubernetes raw manifests deployment tool
Stars: ✭ 33 (+32%)
Mutual labels:  continuous-integration, kubernetes-deployment
k3ai-core
K3ai-core is the core library for the GO installer. Go installer will replace the current bash installer
Stars: ✭ 23 (-8%)
Mutual labels:  continuous-integration, kubernetes-deployment
landkid
Your friendly neighborhood async merging robot goat.
Stars: ✭ 80 (+220%)
Mutual labels:  continuous-integration
hasura-action
GitHub Action wrapping the Hasura CLI
Stars: ✭ 39 (+56%)
Mutual labels:  continuous-integration
multitenant-microservices-demo
Full Isolation in Multi-Tenant SaaS with Kubernetes + Istio
Stars: ✭ 57 (+128%)
Mutual labels:  kubernetes-deployment
setup-julia
This action sets up a Julia environment for use in actions by downloading a specified version of Julia and adding it to PATH.
Stars: ✭ 56 (+124%)
Mutual labels:  continuous-integration
workr
Simple and easy to setup job runner for any kind of automation
Stars: ✭ 15 (-40%)
Mutual labels:  continuous-integration
Project
Infrastructure
Stars: ✭ 43 (+72%)
Mutual labels:  kubernetes-deployment
python-test-reporter
DEPRECATED Uploads Python test coverage data to Code Climate
Stars: ✭ 18 (-28%)
Mutual labels:  continuous-integration
docker flutter
Alpine Linux image for Flutter & Dart with helpful utils and web build support.
Stars: ✭ 33 (+32%)
Mutual labels:  continuous-integration
fabric-beta-publisher-plugin
DEPRECATED: A Jenkins plugin that lets you publish Android apps to Fabric Beta
Stars: ✭ 24 (-4%)
Mutual labels:  continuous-integration
prettier
🔨 Native, blazingly-fast Prettier CLI on Github Actions
Stars: ✭ 19 (-24%)
Mutual labels:  continuous-integration
drone-golang-example
Golang example with drone service
Stars: ✭ 21 (-16%)
Mutual labels:  drone-ci
k3s-on-prem-production
Playbooks needed to set up an on-premises K3s cluster and securize it
Stars: ✭ 108 (+332%)
Mutual labels:  kubernetes-deployment
reframe
A powerful Python framework for writing and running portable regression tests and benchmarks for HPC systems.
Stars: ✭ 154 (+516%)
Mutual labels:  continuous-integration
link-snitch
GitHub Action to scan your site for broken links so you can fix them 🔗
Stars: ✭ 50 (+100%)
Mutual labels:  continuous-integration
sbt-kubeyml
Sbt plugin to help deploy Scala applications to Kubernetes
Stars: ✭ 37 (+48%)
Mutual labels:  kubernetes-deployment
flow-platform-x
Continuous Integration Platform
Stars: ✭ 21 (-16%)
Mutual labels:  continuous-integration
go-microepoch
A complete DevOps cycle for Building and Deploying a Go Application to Kubernetes cluster.
Stars: ✭ 34 (+36%)
Mutual labels:  kubernetes-deployment

Remove finished drone jobs and pods from cluster

Why

We've created this simple image and corresponding files to deal with the fact that Drone does not clean up jobs after itself.

Official documentation will tell you to enable TTLAfterFinished feature gate.

However, for some, that's simply not possible, as the TTL controller is available only from Kubernetes v1.12 on. And it's alpha so it's bound to change.

If you're on older version (e.g. kops only supports 1.11), you're left out in the dark.

How

This is a simple script which should be scheduler to run on your cluster every now and then - suggested timeout is 10 minutes, but you can set it to anything you like. Please see the attached example for more info.

Please note that you'll need to deploy a service account with this tool to access your cluster from inside the pod, if you have RBAC enabled.

Configuration

Nothing much to configure. Defaults should work in most cases. However, if you have any specifics, you can set up the following environment variables:

  • TTL_TIMEOUT timeout after which completed jobs and pods are deleted. By default it's set to 3600 seconds - so jobs and pods get cleared out after one hour.

Installation

kubectl apply -f drone-cleanup.yml

Please make sure that you set an appropriate namespace (drone, by default) in drone-cleanup.yml as the script will look for jobs in the current namespace only.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].