Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)