configure traefik with IngressRoute CRD
This commit is contained in:
parent
e99761bd30
commit
4b5e61e975
@ -15,5 +15,8 @@ spec:
|
||||
- name: traefik-web
|
||||
port: 80
|
||||
targetPort: web
|
||||
- name: traefik-websecure
|
||||
port: 443
|
||||
targetPort: websecure
|
||||
selector:
|
||||
app: traefik
|
||||
|
@ -22,9 +22,15 @@ spec:
|
||||
args:
|
||||
- --api.insecure
|
||||
- --providers.kubernetesingress
|
||||
- --entryPoints.web.Address=:80
|
||||
- --entryPoints.websecure.Address=:443
|
||||
- --entryPoints.traefik.Address=:8080
|
||||
- --providers.kubernetesingress.ingressendpoint.publishedservice=traefik/traefik-service
|
||||
- --providers.kubernetescrd
|
||||
ports:
|
||||
- name: web
|
||||
containerPort: 80
|
||||
- name: websecure
|
||||
containerPort: 443
|
||||
- name: dashboard
|
||||
containerPort: 8080
|
||||
|
@ -12,19 +12,6 @@ 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
|
||||
|
Loading…
Reference in New Issue
Block a user