pod-killer

command module
v0.0.0-...-b4b810c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 13 Imported by: 0

README

pod-killer

pod-killer monitors the pods containing the pod-killer/name and pod-killer/alive and its goal is to delete the unnecessary pods so that only as many pods as are declared in the pod-killer/alive to be running.

Example

As you can see in the example below, the declared replicas are 2 but the pod-killer/alive: "1". So, pod-killer will delete one replica of the nginx deployment.

apiVersion: apps/v1
kind: Deployment
metadata:
  creationTimestamp: null
  labels:
    app: nginx
  name: nginx
spec:
  replicas: 2
  selector:
    matchLabels:
      app: nginx
      pod-killer/name: "nginx"
      pod-killer/alive: "1"
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: nginx
        pod-killer/name: "nginx"
        pod-killer/alive: "1"
    spec:
      containers:
      - image: nginx
        name: nginx

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL