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