Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fredrkl/traefik-k8s-setup
Demo on spinning up AKS with GitHub action and setting up Traefik
https://github.com/fredrkl/traefik-k8s-setup
aks cncf cncf-demo demo iac traefik
Last synced: 6 days ago
JSON representation
Demo on spinning up AKS with GitHub action and setting up Traefik
- Host: GitHub
- URL: https://github.com/fredrkl/traefik-k8s-setup
- Owner: fredrkl
- License: mit
- Created: 2022-08-31T14:58:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-07T04:30:47.000Z (3 months ago)
- Last Synced: 2025-01-02T23:53:41.818Z (8 days ago)
- Topics: aks, cncf, cncf-demo, demo, iac, traefik
- Homepage:
- Size: 156 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Traefik v2.8.4 on Kubernetes (K8s) sample
Demo on setting up Traefik in K8s. This demo also spins up a new MS AKS cluster.
## Setup
1. Clone/Fork this repo
2. Create an RG in Azure and note down the name
3. Create a GitHub secret holding an Azure Service Principal following this guide: giving it access to the RG in step 2.
4. Kick off the _Deploy to AKS_ GitHub action to create AKS![Traefik](/images/traefik-logo.png)
## Tips
- If you want to use [middlewares](https://doc.traefik.io/traefik/middlewares/overview/) in K8s, you need to enable the KubernetesCRD provider regardless, even if you use the KubernetesIngress provider for Traefik configuration, e.g.,
- Also, make sure that the middleware name does __not__ include -. Traefik uses - in its naming convention to find the middlewares namespace.
- When using Cert-Manager without Helm, do not add kustomize namespace as the kube-system ns is hardcoded for the leader election role## Workflows
[![Create Traefik demo AKS cluster](https://github.com/fredrkl/traefik-k8s-setup/actions/workflows/createaks.yml/badge.svg)](https://github.com/fredrkl/traefik-k8s-setup/actions/workflows/createaks.yml)
[![Deploy to AKS](https://github.com/fredrkl/traefik-k8s-setup/actions/workflows/deploy-to-aks.yml/badge.svg)](https://github.com/fredrkl/traefik-k8s-setup/actions/workflows/deploy-to-aks.yml)