traefik

by 4ops

Helm chartv1.4.0App 2.5.1MITVerified publisher

A Traefik based Kubernetes ingress controller

About this chart

traefik

A Traefik based Kubernetes ingress controller

Installing the Chart

To install the chart with the release name my-release:

$ helm repo add kube-ops https://charts.kube-ops.io
$ helm repo update
$ helm upgrade my-release kube-ops/traefik --install --namespace my-namespace --create-namespace --wait

Uninstalling the Chart

To uninstall the chart:

$ helm uninstall my-release --namespace my-namespace

Updating CRDs

$ kubectl apply -k https://gitlab.com/kube-ops/helm/apps/traefik

Values

KeyTypeDefaultDescription
accessLog.bufferingSizeint100Log buffering. Only used if filePath is set.
accessLog.fields.defaultModestring"drop"
accessLog.fields.headers.defaultModestring"drop"
accessLog.fields.headers.namesobject{}
accessLog.fields.namesobject{}
accessLog.formatstring"json"Log format (common/json) Common log format: <remote_IP_address> - <client_user_name_if_available> [] "<request_method> <request_path> <request_protocol>" <origin_server_HTTP_status> <origin_server_content_size> "<request_referrer>" "<request_user_agent>" <number_of_requests_received_since_Traefik_started> "<Traefik_router_name>" "<Traefik_server_URL>" <request_duration_in_ms>ms
affinityobject{}
api.dashboardboolfalse
api.debugboolfalse
api.insecureboolfalse
autoscaling.enabledboolfalseSpecifies the horizontal pod autoscaling is enabled. Only used if deploymentType == Deployment.
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
checkNewVersionboolfalse
deploymentTypestring"Deployment"Type of the application controller. Possible values: Deployment, DaemonSet
dnsConfigobject{}
dnsPolicystring""
dynamicConfigstring""Dynamic configuration
entryPoints.http.addressstring":8080"
entryPoints.http.hostPortint8080
entryPoints.http.nodePortint30080
entryPoints.http.servicePortint80
entryPoints.https.addressstring":8443"
entryPoints.https.hostPortint8443
entryPoints.https.nodePortint30443
entryPoints.https.servicePortint443
entryPoints.metrics.addressstring":9042"
entryPoints.ping.addressstring":8001"
entryPoints.traefik.addressstring":8000"
extraArgslist[]
extraEnvVarslist[]
extraPortslist[]
extraVolumeMountslist[]
extraVolumeslist[]
fullnameOverridestring""Overrides the full name
global.imagePullPolicystring"IfNotPresent"Image download policy ref: https://kubernetes.io/docs/concepts/containers/images/#updating-images
global.imagePullSecretslist[]List of the Docker registry credentials ref: https://kubernetes.io/docs/concepts/containers/images/#updating-images
hostAliaseslist[]
hostNetworkboolfalse
hostResolver.cnameFlatteningboolfalseEnable CNAME Flattening.
hostResolver.resolvConfigstring"/etc/resolv.conf"resolv.conf used for DNS resolving
hostResolver.resolvDepthint5The maximal depth of DNS recursive resolving
image.repositorystring"quay.io/kube-ops/traefik"Overrides the image repository
image.tagstring""Overrides the image tag whose default is the chart appVersion.
ingress.annotationsobject{}
ingress.basicAuth.enabledbooltrueCreates basic-auth middleware for securing Traefik dashboard and API
ingress.basicAuth.secretNamestring""Secret name that contains basic-auth users
ingress.basicAuth.userslist[]Creates basic-auth secret with given users.
ingress.enabledboolfalseSpecifies whether a ingress should be created
ingress.labelsobject{}
ingress.tlsobject{}
ingressClass.enabledboolfalse
ingressClass.namestring""
ingressClass.setAsDefaultbooltrue
initContainerslist[]Specifies init containers
installCRDsbooltrue
livenessProbeobject{}
log.formatstring"json"Log format (common/json)
log.levelstring"WARN"Minimal level of the events to write to log. Possible values: DEBUG, PANIC, FATAL, ERROR, WARN, and INFO
metrics.datadogobject{}
metrics.influxDBobject{}
metrics.prometheus.addEntryPointsLabelsbooltrue
metrics.prometheus.addRoutersLabelsbooltrue
metrics.prometheus.addServicesLabelsbooltrue
metrics.prometheus.buckets[0]float0.1
metrics.prometheus.buckets[1]float0.3
metrics.prometheus.buckets[2]float1.2
metrics.prometheus.buckets[3]float5
metrics.prometheus.enabledbooltrue
metrics.prometheus.grafanaDashboard.additionalLabels.grafana_dashboardstring"1"
metrics.prometheus.grafanaDashboard.enabledboolfalseInstall Grafana dashboard as ConfigMap
metrics.prometheus.grafanaDashboard.namespacestring"monitoring"
metrics.prometheus.manualRoutingboolfalse
metrics.prometheus.rules.additionalLabelsobject{}
metrics.prometheus.rules.alertLabelsobject{}
metrics.prometheus.rules.enabledbooltrueInstall PrometheusRule
metrics.prometheus.rules.namespacestring"monitoring"
metrics.prometheus.rules.requestDurationMaxint500Max request duration (in milliseconds) for TraefikRequestDurationTooHigh alert firing
metrics.prometheus.serviceMonitor.additionalLabelsobject{}
metrics.prometheus.serviceMonitor.enabledbooltrueInstall ServiceMonitor
metrics.prometheus.serviceMonitor.intervalstring"30s"
metrics.prometheus.serviceMonitor.namespacestring"monitoring"
metrics.statsDobject{}
nameOverridestring""Overrides the chart name
nodeSelectorobject{}
pdb.enabledboolfalseSpecifies whether a pod disruption budget should be created
ping.entryPointstring"ping"
ping.manualRoutingboolfalse
ping.terminatingStatusCodeint503
podAnnotationsobject{}
podSecurityContextobject{}
podSecurityPolicy.allowedCapabilitieslist[]Linux capabilities, allowed by PodSecurityPolicy. If you run Traefik listened port <1024, you must add the NET_BIND_SERVICE capability. ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/#capabilities
podSecurityPolicy.annotationsobject{}
podSecurityPolicy.createbooltrueSpecifies whether a pod security policy should be created
podSecurityPolicy.enabledbooltrueSpecifies whether a pod security policy should be enabled
podSecurityPolicy.namestring""The name of the pod security policy to use. If not set and create is true, a name is generated using the fullname template
preStopHookobject{}
priorityint0
priorityClassNamestring""Overrides default priority class ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
providers.kubernetesCRD.allowCrossNamespacebooltrue
providers.providersThrottleDurationstring"2s"Duration that Traefik waits for, after a configuration reload, before taking into account any new configuration refresh event.
rbac.createbooltrueSpecifies whether a cluster role should be created
rbac.namestring""The name of the cluster role to use. If not set and create is true, a name is generated using the fullname template
rbac.namespacedboolfalseUsed only when rbac.create == true. If namespaced is set to true, Role will be created. ClusterRole created when namespaced is false.
readinessProbeobject{}
replicaCountint1
resourcesobject{}
runtimeClassNamestring""Overrides default runtime class
schedulerNamestring""Overrides default scheduler
securityContextobject{}
sendAnonymousUsageboolfalseSee example of collected data: https://doc.traefik.io/traefik/contributing/data-collection/
serversTransport.forwardingTimeoutsobject{"dialTimeout":"30s","idleConnTimeout":"90s","responseHeaderTimeout":"0s"}is the list of certificates (as file paths, or data bytes) that will be set as Root Certificate Authorities when using a self-signed TLS certificate. rootCAs: [] - foobar.crt - foobar.crt -- A number of timeouts relevant to when forwarding requests to the backend servers.
serversTransport.forwardingTimeouts.dialTimeoutstring"30s"Maximum duration allowed for a connection to a backend server to be established. Zero means no timeout.
serversTransport.forwardingTimeouts.idleConnTimeoutstring"90s"maximum amount of time an idle (keep-alive) connection will remain idle before closing itself. Zero means no limit.
serversTransport.forwardingTimeouts.responseHeaderTimeoutstring"0s"specifies the amount of time to wait for a server's response headers after fully writing the request (including its body, if any). This time does not include the time to read the response body. Zero means no timeout.
serversTransport.insecureSkipVerifyboolfalseDisables SSL certificate verification.
serversTransport.maxIdleConnsPerHostint2If non-zero, maxIdleConnsPerHost controls the maximum idle (keep-alive) connections to keep per-host.
service.annotationsobject{}Annotations for Service resource
service.clusterIPstring""Exposes the Service on a cluster IP ref: https://kubernetes.io/docs/concepts/services-networking/service/#choosing-your-own-ip-address
service.entrypoints[0]string"http"
service.entrypoints[1]string"https"
service.externalIPslist[]If there are external IPs that route to one or more cluster nodes, Kubernetes Services can be exposed on those externalIPs ref: https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
service.externalNamestring""Services of type ExternalName map a Service to a DNS name ref: https://kubernetes.io/docs/concepts/services-networking/service/#externalname
service.externalTrafficPolicystring"Cluster"If you set service.spec.externalTrafficPolicy to the value Local, kube-proxy only proxies proxy requests to local endpoints, and does not forward traffic to other nodes. This approach preserves the original source IP address. If there are no local endpoints, packets sent to the node are dropped, so you can rely on the correct source-ip in any packet processing rules you might apply a packet that make it through to the endpoint. ref: https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-type-nodeport
service.ipFamilystring""Address family for the Service's cluster IP (IPv4 or IPv6) ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/
service.loadBalancerSourceRangeslist[]If is not set, Kubernetes allows traffic from 0.0.0.0/0 to the Node Security Group(s). ref: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
service.topologyboolfalseenables a service to route traffic based upon the Node topology of the cluster ref: https://kubernetes.io/docs/concepts/services-networking/service-topology/#using-service-topology Kubernetes >= kubeVersion 1.18
service.topologyKeyslist[]
service.typestring"ClusterIP"Kubernetes ServiceTypes allow you to specify what kind of Service you want ref: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
terminationGracePeriodSecondsint30
tmpVolumeobject{}
tolerationslist[]
updateStrategyobject{}

Requirements

RepositoryNameVersion
https://charts.kube-ops.iogenerate~0.2.3

Autogenerated from chart metadata using helm-docs v1.5.0

Deploy traefik with OpenTenant

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