capsize

by joaquinito2051

Helm chartv0.2.0App 1.0

A Helm chart to restart deployments at an interval

About this chart

Chart - capsize

This chart will watch a deployment's pods and restart them if they are older than a specified number of seconds.

Configuration

The following table lists the configurable parameters of the capsize chart and their default values.

ParameterDescriptionDefault
image.repositoryImage repositorypython
image.tagImage tag3.7-alpine
image.pullPolicyImage pull policyIfNotPresent
targetDeployment.namespaceNamespace the deployment is inistio-system
targetDeployment.nameName of the deployment to monitoristio-ingressgateway
targetDeployment.containerName of the container in the pod to add the env to trigger the restartistio-proxy
targetDeployment.maxAgeAmount of time to wait before triggering a restart'2592000' (30 days
scheduleThe cron schedule to run this check on. Make sure it is more often than your maxAge'0 3 */1 * *'
suspendWhether or not to suspend the cron'false'
logLevelLogging level of the script'INFO'
configTypeThe type of config to use. local or clustercluster
rbac.createCreate rbac ClusterRole and RoleBindingtrue
serviceAccount.createCreate the service account for the podtrue
serviceAccount.nameService account to be used. If not set and serviceAccount.create is true, a name is generated using the fullname template

Deploy capsize with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has capsize on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcapsize is pinned at v0.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply