Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.
/ ginuudan Public archive

Comes to measure the containers of code, and cause it to dwindle

Notifications You must be signed in to change notification settings

nais/ginuudan

Repository files navigation

Ginuudan

Comes to measure the containers of code, and cause it to dwindle

Etymology: Supposedly a spirit from local filipino mythology.

Kubernetes Jobs do not complete unless every container within the Pod has been terminated. In an attempt to solve this, Ginuudan observes Pods with the annotation ginuudan.nais.io/dwindle set to "true". When the Pod's main application completed, Ginuudan goes through each of the Pod's sidecars to shut them down.

Sidecars that Ginuudan can handle

  • linkerd-proxy - runs in GCP
  • cloudsql-proxy - runs if your app provisions databases through spec.gcp.sqlInstances
  • secure-logs-fluentd - runs if your app has spec.secureLogs.enabled set to true
  • secure-logs-configmap-reload - runs if your app has spec.secureLogs.enabled set to true
  • vks-sidecar - runs if your app has spec.vault.sidecar set to true

Run locally

Requires poetry.

First, install dependencies with

poetry install

Assuming that your kubectl-configuration is set to where you want to observe, to invoke Ginuudan run:

poetry run ginuudan

Development

It is required to run black to format before committing new changes. black is included as a development dependency.To run it, run

poetry run format

About

Comes to measure the containers of code, and cause it to dwindle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages