contour

by rimusz

Helm chartv0.3.2App v0.12.0

A Helm chart for Heptio Contour

About this chart

Heptio Contour

Heptio Contour is an Ingress controller for Kubernetes that works by deploying the Envoy proxy as a reverse proxy and load balancer. Unlike other Ingress controllers, Contour supports dynamic configuration updates out of the box while maintaining a lightweight profile.

Prerequisites

  • Kubernetes 1.10+
  • RBAC must be enabled.

Installing the Chart

To install the chart with the release name contour:

$ helm upgrade --install contour --namespace heptio-contour rimusz/contour

By default contour uses LoadBalancer to expose ports 80/443. You can change the service type via --set or in values.yaml file.

Tip: List all releases using helm list

Configuration

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

ParameterDescriptionDefault
replicaCountDefault replicaCount1
annotationsprometheus.io/scrapeEnable Prometheus scrapetrue
annotationsprometheus.io/portSet Prometheus scrape port8002
annotationsprometheus.io/pathSet Prometheus scrape path/stats/prometheus
controller.image.repositorySet Controller image repositorygcr.io/heptio-images/contour
controller.image.PullPolicySet Controller image pull policyIfNotPresent
controller.statsd.enabledEnable Controller statsdfalse
controller.statsSet Controller stats{}
proxy.image.repositorySet Proxy image repositorydocker.io/envoyproxy/envoy-alpine
proxy.image.tagSet Proxy image tagv1.9.1
proxy.image.PullPolicySet Proxy image pull policyIfNotPresent
service.typeService typeLoadBalancer
service.loadBalancerIPLoadbalancer IP``
service.annotationsService annotations{}
service.externalTrafficPolicyexternalTrafficPolicyCluster
ingressRoutes.enabledIf true, Enable ingressRoutes CRD will be createdfalse
resourcesSet Compute resources{}
rbac.enabledSpecifies whether RBAC resources should be createdtrue
nodeSelectorSet node selector{}
tolerationsSet node tolerations[]
podDisruptionBudget.enabledEnables Pod Disruption Budgetfalse
podDisruptionBudget.maxUnavailableMax unavailable Pods1
podDisruptionBudget.minAvailablemin unavailable Pods``

Specify each parameter using the --set key=value[,key=value] argument to helm install/upgrade.

Alternatively, a YAML file that specifies the values for the configurable parameters can be provided while installing the chart. For example:

$ helm upgrade --install contour --namespace heptio-contour rimusz/contour -f values.yaml .

Tip: You can use the default values.yaml

Uninstalling the Chart

To uninstall/delete the contour deployment:

$ helm delete --purge contour

The command removes all the Kubernetes components associated with the chart and deletes the release.

Deploy contour with OpenTenant

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