traefik-hub

by Traefik Labs

Helm chartv5.0.0-rc.1App v2.10.0Apache-2.0Verified publisher

Traefik Hub Ingress Controller

About this chart

Introduction

This chart installs the Traefik Hub agent in Ingress Controller mode on a Kubernetes cluster.

Installation

Prerequisites

  1. [x] Helm v3 installed: helm version
  2. [x] Traefik Labs chart repository: helm repo add traefik https://traefik.github.io/charts

Deploying Hub Ingres Controller for Kubernetes

kubectl create secret generic hub-agent-token --from-literal=token=XXXX

helm upgrade --install traefik-hub traefik/traefik-hub

You can customize the installation with a values file. Find the complete documentation on all parameters in the default value file.

Upgrading Hub Agent for Kubernetes

One can check what has changed in the release overview page.

Update the repository:

helm repo update

Check the current Chart & Traefik Hub version:

helm search repo traefik/traefik-hub

Upgrade Traefik Hub:

helm upgrade traefik-hub traefik/traefik-hub

Upgrading CRDs

With Helm v3, CRDs created by this chart can not be updated, consult the Helm Documentation on CRDs for more information.

Please read carefully the release notes of this chart before upgrading CRDs!

kubectl apply --server-side --force-conflicts -k https://github.com/traefik/traefik-hub-helm-chart/traefik-hub/crds/

Upgrading from v1.x.x

To upgrade from v1.x.x, a secret needs to be manually removed first:

kubectl delete secret hub-agent-cert -n traefik-hub

Uninstall

helm uninstall traefik-hub

If Traefik Hub was installed in a specific namespace:

helm uninstall traefik-hub --namespace my-namespace

Contributing

Versioning

We use Semantic Versioning.

Pull requests must bump the version of the chart specified in the Chart.yaml file:

  • The new version must be an alpha pre-release (e.g. 1.6.0-alpha.1)
  • The new version must reflect the nature of the change, according to the SemVer specification

A chart can be made available publicly by removing the pre-release suffix, this must be done on a separate PR by a maintainer.

Every version bump is published on the Helm Chart Registry.

The latest pre-release version of the Chart can be used by specifying --devel on the install and upgrade commands.

Launch unit tests

make test

License

Distributed under the Apache v2 License. See LICENSE for more information.

Deploy traefik-hub with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has traefik-hub 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 charttraefik-hub is pinned at v5.0.0-rc.1 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