Upgrade Advisory

This documentation is for Flux (v1) and Helm Operator (v1). Both projects are in maintenance mode and will soon reach end-of-life. We strongly recommend you familiarise yourself with the newest Flux and start looking at your migration path.

For documentation regarding the latest Flux, please refer to this section.

Operator reference

The Helm Operator deals with Helm chart releases. The operator watches for changes of Custom Resources of kind HelmRelease. It receives Kubernetes Events and acts accordingly.

Responsibilities

When the Helm Operator sees a HelmRelease resource in the cluster, it either installs or upgrades the named Helm release so that the chart is released as specified.

It will also notice when a HelmRelease resource is updated, and take action accordingly.

Setup and configuration

helm-operator requires setup and offers customization though a multitude of flags.

General flags

FlagDefaultPurpose
--log-formatfmtChanges the logging format; fmt or json.
--workers2Number of workers processing releases.
--listen:3030Listen address where /metrics and API will be served.

Reconciliation configuration

FlagDefaultPurpose
--charts-sync-interval3mPeriod on which to reconcile the Helm releases with HelmRelease resources.
--status-update-interval10sPeriod on which to update the Helm release status in HelmRelease resources.
--log-release-diffsfalseLog the diff when a chart release diverges. Potentially insecure due to logging of secret values.

Cluster configuration

FlagDefaultPurpose
--kubeconfigPath to a kubeconfig. Only required if out-of-cluster.
--masterThe address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster.
--allow-namespaceIf set, this limits the scope to a single namespace. if not specified, all namespaces will be watched.

Helm configuration

FlagDefaultPurpose
--enabled-helm-versionsv2,v3The Helm client versions supported by this operator instance.
--helm-repository-importTargeted version and the path of the Helm repository index to import, i.e. v3:/tmp/v3/index.yaml,v2:/tmp/v2/index.yaml.

Tiller configuration

The following option flags are only applicable when support for Helm 2 is enabled and a connection to Tiller needs to be made.

FlagDefaultPurpose
--tiller-ipTiller IP address. Only required if out-of-cluster.
--tiller-portTiller port.
--tiller-namespaceTiller namespace. If not provided, the default is kube-system.
--tiller-tls-enablefalseEnable TLS communication with Tiller. If provided, requires TLSKey and TLSCert to be provided as well.
--tiller-tls-verifyfalseVerify TLS certificate from Tiller. Will enable TLS communication when provided.
--tiller-tls-key-path/etc/fluxd/helm/tls.keyPath to private key file used to communicate with the Tiller server.
--tiller-tls-cert-path/etc/fluxd/helm/tls.crtPath to certificate file used to communicate with the Tiller server.
--tiller-tls-ca-cert-pathPath to CA certificate file used to validate the Tiller server. Required if --tiller-tls-verify is enabled.
--tiller-tls-hostnameThe server name used to verify the hostname on the returned certificates from the Tiller server.

Helm 2to3 convert configurations

FlagDefaultPurpose
--convert-release-storagesecretsv2 release storage type/object. It can be ‘secrets’ or ‘configmaps’. This is only used with the ’tiller-out-cluster’ flag (default ‘secrets’)
--convert-tiller-out-clusterfalseWhen Tiller is not running in the cluster e.g. Tillerless

Git chart source configuration

FlagDefaultPurpose
--git-timeout20sDuration after which Git operations time out.
--git-poll-interval5mPeriod on which to poll Git chart sources for changes.
--update-chart-depstrueUpdate chart dependencies from a Git chart source before installing or upgrading a release.