Comes to measure the containers of code, and cause it to dwindle
Etymology: Supposedly a spirit from local filipino mythology.
Kubernetes Job
s do not complete unless every container within the Pod
has been terminated.
In an attempt to solve this, Ginuudan observes Pod
s 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.
-
linkerd-proxy
- runs in GCP -
cloudsql-proxy
- runs if your app provisions databases throughspec.gcp.sqlInstances
-
secure-logs-fluentd
- runs if your app hasspec.secureLogs.enabled
set to true -
secure-logs-configmap-reload
- runs if your app hasspec.secureLogs.enabled
set to true -
vks-sidecar
- runs if your app hasspec.vault.sidecar
set to true
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
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