rollingpodset

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

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

Go to latest
Published: Dec 26, 2021 License: MIT Imports: 12 Imported by: 0

README

rollingpodset

Kubernetes Operator to manage and cycle Pods. It is completely unnecessary.

Acts a bit like a ReplicaSet rather than a Deployment, in terms of guaranteeing the right number of Pods running at any time (but no rolling update strategy). On top of that it also deletes and recreates Pods once they have been running for longer than CycleTime, a value specified on the Custom Resource.

It's very basic, some more functioanily may be added at some point.

Built using Kubebuilder

Try it out

Fairly straightforward to demo this operator and custom resource.

Having a local running cluster (eg Kind), install the CRD and Roles with

make install

Then build and deploy the Manager/Operator (this will deploy it into the namespace rollingpodset-system)

make docker-build
kind load docker-image mdiggin/controller:v1
make deploy

Finally deploy a sample CR

kubectl apply -f config/samples/apps_v1_rollingpodset.yaml 

Watching the pods in the default namespace will show they being terminated and recreated every cycleTime seconds (60 in the sample CR yaml)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1
Package v1 contains API Schema definitions for the apps v1 API group +kubebuilder:object:generate=true +groupName=apps.michael-diggin.github.io
Package v1 contains API Schema definitions for the apps v1 API group +kubebuilder:object:generate=true +groupName=apps.michael-diggin.github.io

Jump to

Keyboard shortcuts

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