Traefik is a modern HTTP reverse proxy and load balancer made to deploy microservices with ease. Fore more detials about Traefik can be found here
Add Helm repo for Traefik Ingress Controller
helm repo add traefik https://helm.traefik.io/traefik
https://github.com/traefik/traefik-helm-chart/blob/v9.18.1/traefik/values.yaml
https://artifacthub.io/packages/helm/traefik/traefik
Step1: Get the latest docker image from this link
https://github.com/traefik/traefik
Step2: Download the docker image to your local Mac/Laptop
$ docker pull traefik:v2.4.8
Step3: Retrieve an authentication token and authenticate your Docker client to your registry. Use the AWS CLI:
$ aws ecr get-login-password --region eu-west-1 | docker login --username AWS --password-stdin <account id>.dkr.ecr.eu-west-1.amazonaws.com
Step4: Create an ECR repo for traefik controller if you don't have one
$ aws ecr create-repository \
--repository-name traefik \
--image-scanning-configuration scanOnPush=true
Step5: After the build completes, tag your image so, you can push the image to this repository:
$ docker tag traefik:v2.4.8 <accountid>.dkr.ecr.eu-west-1.amazonaws.com/traefik:v2.4.8
Step6: Run the following command to push this image to your newly created AWS repository:
$ docker push <accountid>.dkr.ecr.eu-west-1.amazonaws.com/traefik:v2.4.8
Once the Traefik deployment is successful then run the below command from your mac where you have acces to EKS cluster using kubectl
$ kubectl port-forward svc/traefik -n kube-system 9000:9000
Now open the browser from your mac and enter the below URL to access Traefik Web UI
http://127.0.0.1:9000/dashboard/
Here is the link to get the AWS ELB service annotations for Traefik Ingress controller
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: MIT-0
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No requirements.
Name | Version |
---|---|
helm | 2.2.0 |
No modules.
Name | Type |
---|---|
helm_release.traefik | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
account_id | n/a | any |
n/a | yes |
image_repo_name | n/a | string |
"traefik" |
no |
private_container_repo_url | n/a | any |
n/a | yes |
public_docker_repo | variable "tls_cert_arn" {} | any |
n/a | yes |
s3_nlb_logs | n/a | any |
n/a | yes |
traefik_helm_chart_version | n/a | string |
"10.0.0" |
no |
traefik_image_tag | n/a | string |
"v2.4.9" |
no |
No outputs.