update traefik config

This commit is contained in:
Mans Ziesel 2024-10-12 20:26:13 +02:00
parent 4b5e61e975
commit c9e0be4fcb
3 changed files with 19 additions and 5 deletions

View File

@ -17,4 +17,5 @@ spec:
- image: ghcr.io/traefik/whoami:v1.10.3 - image: ghcr.io/traefik/whoami:v1.10.3
name: whoami name: whoami
ports: ports:
- containerPort: 80 - name: web
containerPort: 80

View File

@ -24,8 +24,8 @@ spec:
- match: Host(`whoami.mziesel.nl`) - match: Host(`whoami.mziesel.nl`)
kind: Rule kind: Rule
services: services:
- name: whoami - name: whoami-traefik
port: 80 port: web
--- ---
apiVersion: traefik.io/v1alpha1 apiVersion: traefik.io/v1alpha1
@ -39,5 +39,5 @@ spec:
- match: Host(`whoami.mziesel.nl`) - match: Host(`whoami.mziesel.nl`)
kind: Rule kind: Rule
services: services:
- name: whoami - name: whoami-traefik
port: 80 port: web

View File

@ -12,6 +12,19 @@ spec:
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata:
name: whoami-traefik
namespace: whoami
spec:
ports:
- name: web
port: 80
targetPort: 80
selector:
app: whoami
---
apiVersion: v1
kind: Service
metadata: metadata:
name: whoami-np name: whoami-np
namespace: whoami namespace: whoami