reloader
by stakater
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
Reloader v2 is currently a prerelease. The commands below resolve to the latest stable chart, which is still Reloader v1. To install the v2 beta you must opt in explicitly, because Helm skips prerelease versions by default:
# --devel picks up the newest prerelease; add --version to pin a specific beta helm install {{RELEASE_NAME}} stakater/reloader --devel
# 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
| Parameter | Description | Type | Default |
|---|---|---|---|
global.imagePullSecrets | Reference to one or more secrets to be used when pulling images | array | [] |
Common Parameters
| Parameter | Description | Type | Default |
|---|---|---|---|
nameOverride | replace the name of the chart | string | "" |
fullnameOverride | replace the generated name | string | "" |
image | Set container image name, tag and policy. image.tag defaults to the chart appVersion when empty | map | see values.yaml |
Core Reloader Parameters
| Parameter | Description | Type | Default |
|---|---|---|---|
reloader.autoReloadAll | boolean | false | |
reloader.isArgoRollouts | Enable Argo Rollouts. Valid value are either true or false | boolean | false |
reloader.isOpenshift | Enable OpenShift DeploymentConfigs. Valid value are either true or false | boolean | false |
reloader.ignoreSecrets | To ignore secrets. Valid value are either true or false. Either ignoreSecrets or ignoreConfigMaps can be ignored, not both at the same time | boolean | false |
reloader.ignoreConfigMaps | To ignore configmaps. Valid value are either true or false | boolean | false |
reloader.ignoreJobs | To ignore jobs from reload monitoring. Valid value are either true or false. Translates to --ignored-workload-types=jobs | boolean | false |
reloader.ignoreCronJobs | To ignore CronJobs from reload monitoring. Valid value are either true or false. Translates to --ignored-workload-types=cronjobs | boolean | false |
reloader.reloadOnCreate | Enable reload on create events. Valid value are either true or false | boolean | false |
reloader.reloadOnDelete | Enable reload on delete events. Valid value are either true or false | boolean | false |
reloader.syncAfterRestart | Enable sync after Reloader restarts for Add events, works only when reloadOnCreate is true. Valid value are either true or false | boolean | false |
reloader.reloadStrategy | Strategy to trigger resource restart, set to either default, env-vars or annotations | enumeration | default |
reloader.ignoreNamespaces | List 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.namespaceSelector | List 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-selector | string | "" |
reloader.resourceLabelSelector | List of comma separated label selectors, if multiple are provided they are combined with the AND operator | string | "" |
reloader.logFormat | Set type of log format. Value could be either json or "" | string | "" |
reloader.watchGlobally | Allow Reloader to watch in all namespaces (true) or just in a single namespace (false) | boolean | true |
reloader.namespaces | Explicit 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 not watched for reloads unless you list it explicitly; the chart only grants it a minimal Role for Reloader's internal meta-info ConfigMap (and leader-election in HA). Accepts either a YAML list (["team-a","team-b"]) or a comma-separated string ("team-a,team-b"). | list/string | [] |
reloader.enableHA | Enable leadership election allowing you to run multiple replicas | boolean | false |
reloader.leaderElection.id | Name of the Lease Reloader locks on, only applied when reloader.enableHA is true. The RBAC get/update grant is pinned to this name. Empty keeps the binary default of reloader-leader-election | string | "" |
reloader.leaderElection.leaseDuration | Duration non-leader candidates wait before force acquiring leadership, only applied when reloader.enableHA is true. Empty keeps the client-go default of 15s. A Go duration string, for example 30s, and must be greater than renewDeadline | string | "" |
reloader.leaderElection.renewDeadline | Duration the acting leader retries refreshing leadership before giving up, only applied when reloader.enableHA is true. Empty keeps the client-go default of 10s. A Go duration string, for example 10s | string | "" |
reloader.leaderElection.retryPeriod | Duration clients wait between attempting acquisition and renewal of leadership, only applied when reloader.enableHA is true. Empty keeps the client-go default of 2s. A Go duration string, for example 2s | string | "" |
reloader.enablePProf | Enables pprof for profiling | boolean | false |
reloader.pprofAddr | Address to start pprof server on | string | :6060 |
reloader.readOnlyRootFileSystem | Enforce readOnlyRootFilesystem | boolean | false |
reloader.legacy.rbac | boolean | false | |
reloader.matchLabels | Pod labels to match | map | {} |
reloader.enableMetricsByNamespace | Expose an additional Prometheus counter of reloads by namespace (this metric may have high cardinality in clusters with many namespaces) | boolean | false |
Deployment Reloader Parameters
| Parameter | Description | Type | Default |
|---|---|---|---|
reloader.deployment.replicas | Number of replicas, if you wish to run multiple replicas set reloader.enableHA = true. The replicas will be limited to 1 when reloader.enableHA = false | int | 1 |
reloader.deployment.revisionHistoryLimit | Limit the number of revisions retained in the revision history | int | 2 |
reloader.deployment.strategy | Deployment update strategy (e.g. Recreate, or RollingUpdate with custom maxSurge/maxUnavailable) | map | {} |
reloader.deployment.hostUsers | Enable user namespace | boolean | |
reloader.deployment.nodeSelector | Scheduling pod to a specific node based on set labels | map | {} |
reloader.deployment.affinity | Set affinity rules on pod | map | {} |
reloader.deployment.securityContext | Set pod security context | map | {} |
reloader.deployment.containerSecurityContext | Set container security context | map | {} |
reloader.deployment.tolerations | A list of tolerations to be applied to the deployment | array | [] |
reloader.deployment.topologySpreadConstraints | Topology spread constraints for pod assignment | array | [] |
reloader.deployment.annotations | Set deployment annotations | map | {} |
reloader.deployment.labels | Set deployment labels, default to Stakater settings | array | see values.yaml |
reloader.deployment.env | Support for extra environment variables | array | [] |
reloader.deployment.livenessProbe | Set liveness probe timeout values | map | {} |
reloader.deployment.readinessProbe | Set readiness probe timeout values | map | {} |
reloader.deployment.resources | Set container requests and limits (e.g. C |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartreloader is pinned at v3.0.0-beta.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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