reloader

by joaquinito2051

Helm chartv2.2.21App v1.4.25

Reloader chart that runs on kubernetes

About this chart

Reloader Helm Chart

If you have configured helm on your cluster, you can add Reloader to helm from our public chart repository and deploy it via helm using below-mentioned commands. Follow the Helm2 to Helm3 guide, in case you have trouble migrating Reloader from Helm2 to Helm3.

Installation

# Add stakater helm repoository
helm repo add stakater https://stakater.github.io/stakater-charts

helm repo update

helm install stakater/reloader # For helm3 add --generate-name flag or set the release name

helm install {{RELEASE_NAME}} stakater/reloader -n {{NAMESPACE}} --set reloader.watchGlobally=false # By default, Reloader watches in all namespaces. To watch in single namespace, set watchGlobally=false

helm install stakater/reloader --set reloader.watchGlobally=false --namespace test --generate-name # Install Reloader in `test` namespace which will only watch `Deployments`, `Daemonsets` `Statefulsets` and `Rollouts` in `test` namespace.

helm install stakater/reloader --set reloader.ignoreJobs=true --set reloader.ignoreCronJobs=true --generate-name # Install Reloader ignoring Jobs and CronJobs from reload monitoring

Uninstalling

helm uninstall {{RELEASE_NAME}} -n {{NAMESPACE}}

Parameters

Global Parameters

ParameterDescriptionTypeDefault
global.imagePullSecretsReference to one or more secrets to be used when pulling imagesarray[]

Common Parameters

ParameterDescriptionTypeDefault
nameOverridereplace the name of the chartstring""
fullnameOverridereplace the generated namestring""
imageSet container image name, tag and policymapsee values.yaml

Core Reloader Parameters

ParameterDescriptionTypeDefault
reloader.autoReloadAllbooleanfalse
reloader.isArgoRolloutsEnable Argo Rollouts. Valid value are either true or falsebooleanfalse
reloader.isOpenshiftEnable OpenShift DeploymentConfigs. Valid value are either true or falsebooleanfalse
reloader.ignoreSecretsTo ignore secrets. Valid value are either true or false. Either ignoreSecrets or ignoreConfigMaps can be ignored, not both at the same timebooleanfalse
reloader.ignoreConfigMapsTo ignore configmaps. Valid value are either true or falsebooleanfalse
reloader.ignoreJobsTo ignore jobs from reload monitoring. Valid value are either true or false. Translates to --ignored-workload-types=jobsbooleanfalse
reloader.ignoreCronJobsTo ignore CronJobs from reload monitoring. Valid value are either true or false. Translates to --ignored-workload-types=cronjobsbooleanfalse
reloader.reloadOnCreateEnable reload on create events. Valid value are either true or falsebooleanfalse
reloader.reloadOnDeleteEnable reload on delete events. Valid value are either true or falsebooleanfalse
reloader.syncAfterRestartEnable sync after Reloader restarts for Add events, works only when reloadOnCreate is true. Valid value are either true or falsebooleanfalse
reloader.reloadStrategyStrategy to trigger resource restart, set to either default, env-vars or annotationsenumerationdefault
reloader.ignoreNamespacesList of comma separated namespaces to ignore, if multiple are provided, they are combined with the AND operator. Only honored when reloader.watchGlobally is true; in single-namespace and scoped (reloader.namespaces) modes the watched set is already explicit and this value is ignored.string""
reloader.namespaceSelectorList of comma separated k8s label selectors for namespaces selection. The parameter only used when reloader.watchGlobally is true. See LIST and WATCH filtering for more details on label-selectorstring""
reloader.resourceLabelSelectorList of comma separated label selectors, if multiple are provided they are combined with the AND operatorstring""
reloader.logFormatSet type of log format. Value could be either json or ""string""
reloader.watchGloballyAllow Reloader to watch in all namespaces (true) or just in a single namespace (false)booleantrue
reloader.namespacesExplicit namespaces to watch (scoped mode). When non-empty and reloader.watchGlobally is false, Reloader watches exactly these namespaces and the chart creates a namespace-scoped Role + RoleBinding in each (no ClusterRole). The release namespace is always included automatically. Accepts either a YAML list (["team-a","team-b"]) or a comma-separated string ("team-a,team-b").list/string[]
reloader.enableHAEnable leadership election allowing you to run multiple replicasbooleanfalse
reloader.leaderElection.leaseDurationDuration non-leader candidates wait before force acquiring leadership, only applied when reloader.enableHA is true. Empty keeps the client-go default of 15s. Must be a whole number of secondsstring""
reloader.leaderElection.renewDeadlineDuration the acting leader retries refreshing leadership before giving up, only applied when reloader.enableHA is true. Empty keeps the client-go default of 10sstring""
reloader.leaderElection.retryPeriodDuration clients wait between attempting acquisition and renewal of leadership, only applied when reloader.enableHA is true. Empty keeps the client-go default of 2sstring""
reloader.enablePProfEnables pprof for profilingbooleanfalse
reloader.pprofAddrAddress to start pprof server onstring:6060
reloader.readOnlyRootFileSystemEnforce readOnlyRootFilesystembooleanfalse
reloader.legacy.rbacbooleanfalse
reloader.matchLabelsPod labels to matchmap{}
reloader.enableMetricsByNamespaceExpose an additional Prometheus counter of reloads by namespace (this metric may have high cardinality in clusters with many namespaces)booleanfalse

Deployment Reloader Parameters

ParameterDescriptionTypeDefault
reloader.deployment.replicasNumber of replicas, if you wish to run multiple replicas set reloader.enableHA = true. The replicas will be limited to 1 when reloader.enableHA = falseint1
reloader.deployment.revisionHistoryLimitLimit the number of revisions retained in the revision historyint2
reloader.deployment.hostUsersEnable user namespaceboolean
reloader.deployment.nodeSelectorScheduling pod to a specific node based on set labelsmap{}
reloader.deployment.affinitySet affinity rules on podmap{}
reloader.deployment.securityContextSet pod security contextmap{}
reloader.deployment.containerSecurityContextSet container security contextmap{}
reloader.deployment.tolerationsA list of tolerations to be applied to the deploymentarray[]
reloader.deployment.topologySpreadConstraintsTopology spread constraints for pod assignmentarray[]
reloader.deployment.annotationsSet deployment annotationsmap{}
reloader.deployment.labelsSet deployment labels, default to Stakater settingsarraysee values.yaml
reloader.deployment.envSupport for extra environment variablesarray[]
reloader.deployment.livenessProbeSet liveness probe timeout valuesmap{}
reloader.deployment.readinessProbeSet readiness probe timeout valuesmap{}
reloader.deployment.resourcesSet container requests and limits (e.g. CPU or memory)map{}
reloader.deployment.pod.annotationsSet annotations for podmap{}
reloader.deployment.priorityClassNameSet priority class for pod in clusterstring""
reloader.deployment.runtimeClassNameSet the runtimeClassName for the podstring""
reloader.deployment.schedulerNameSet the schedulerName for the podstring""
reloader.deployment.volumeMountsMount volume

Deploy reloader with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has reloader 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 chartreloader is pinned at v2.2.21 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