From 471338b9dd3e3cd255bb9f43d7e7d3754f1b1999 Mon Sep 17 00:00:00 2001 From: clyhtsuriva Date: Mon, 24 Mar 2025 20:28:59 +0100 Subject: k8s: add traefik and test app "whoami" --- kubernetes/traefik/02-traefik.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 kubernetes/traefik/02-traefik.yml (limited to 'kubernetes/traefik/02-traefik.yml') diff --git a/kubernetes/traefik/02-traefik.yml b/kubernetes/traefik/02-traefik.yml new file mode 100644 index 0000000..2a6a4d1 --- /dev/null +++ b/kubernetes/traefik/02-traefik.yml @@ -0,0 +1,31 @@ +--- +kind: Deployment +apiVersion: apps/v1 +metadata: + name: traefik-deployment + labels: + app: traefik + +spec: + replicas: 1 + selector: + matchLabels: + app: traefik + template: + metadata: + labels: + app: traefik + spec: + serviceAccountName: traefik-account + containers: + - name: traefik + image: traefik:v3.3 + args: + - --api.insecure + - --providers.kubernetesingress + ports: + - name: web + containerPort: 80 + - name: dashboard + containerPort: 8080 +... -- cgit v1.2.3