contour
by rimusz
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.
| Parameter | Description | Default |
|---|---|---|
replicaCount | Default replicaCount | 1 |
annotationsprometheus.io/scrape | Enable Prometheus scrape | true |
annotationsprometheus.io/port | Set Prometheus scrape port | 8002 |
annotationsprometheus.io/path | Set Prometheus scrape path | /stats/prometheus |
controller.image.repository | Set Controller image repository | gcr.io/heptio-images/contour |
controller.image.PullPolicy | Set Controller image pull policy | IfNotPresent |
controller.statsd.enabled | Enable Controller statsd | false |
controller.stats | Set Controller stats | {} |
proxy.image.repository | Set Proxy image repository | docker.io/envoyproxy/envoy-alpine |
proxy.image.tag | Set Proxy image tag | v1.9.1 |
proxy.image.PullPolicy | Set Proxy image pull policy | IfNotPresent |
service.type | Service type | LoadBalancer |
service.loadBalancerIP | Loadbalancer IP | `` |
service.annotations | Service annotations | {} |
service.externalTrafficPolicy | externalTrafficPolicy | Cluster |
ingressRoutes.enabled | If true, Enable ingressRoutes CRD will be created | false |
resources | Set Compute resources | {} |
rbac.enabled | Specifies whether RBAC resources should be created | true |
nodeSelector | Set node selector | {} |
tolerations | Set node tolerations | [] |
podDisruptionBudget.enabled | Enables Pod Disruption Budget | false |
podDisruptionBudget.maxUnavailable | Max unavailable Pods | 1 |
podDisruptionBudget.minAvailable | min 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcontour is pinned at v0.3.2 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