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
name: whoami
ports:
- containerPort: 80
- name: web
containerPort: 80

View File

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

View File

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