67 lines
1.8 KiB
YAML
67 lines
1.8 KiB
YAML
|
|
---
|
||
|
|
apiVersion: apps/v1
|
||
|
|
kind: Deployment
|
||
|
|
metadata:
|
||
|
|
name: traefik
|
||
|
|
namespace: kube-system
|
||
|
|
spec:
|
||
|
|
template:
|
||
|
|
spec:
|
||
|
|
containers:
|
||
|
|
- name: traefik
|
||
|
|
args:
|
||
|
|
- --entryPoints.metrics.address=:9100/tcp
|
||
|
|
- --entryPoints.traefik.address=:8080/tcp
|
||
|
|
- --entryPoints.web.address=:8000/tcp
|
||
|
|
- --entryPoints.websecure.address=:8443/tcp
|
||
|
|
- --entryPoints.pasarguard-api.address=:62051/tcp
|
||
|
|
- --api.dashboard=true
|
||
|
|
- --ping=true
|
||
|
|
- --metrics.prometheus=true
|
||
|
|
- --metrics.prometheus.entrypoint=metrics
|
||
|
|
- --providers.kubernetescrd
|
||
|
|
- --providers.kubernetescrd.allowEmptyServices=true
|
||
|
|
- --providers.kubernetesingress
|
||
|
|
- --providers.kubernetesingress.allowEmptyServices=true
|
||
|
|
- --providers.kubernetesingress.ingressendpoint.publishedservice=kube-system/traefik
|
||
|
|
- --entryPoints.websecure.http.tls=true
|
||
|
|
- --log.level=INFO
|
||
|
|
- --entryPoints.web.transport.respondingTimeouts.readTimeout=0s
|
||
|
|
- --entryPoints.websecure.transport.respondingTimeouts.readTimeout=0s
|
||
|
|
ports:
|
||
|
|
- containerPort: 9100
|
||
|
|
name: metrics
|
||
|
|
protocol: TCP
|
||
|
|
- containerPort: 8080
|
||
|
|
name: traefik
|
||
|
|
protocol: TCP
|
||
|
|
- containerPort: 8000
|
||
|
|
name: web
|
||
|
|
protocol: TCP
|
||
|
|
- containerPort: 8443
|
||
|
|
name: websecure
|
||
|
|
protocol: TCP
|
||
|
|
- containerPort: 62051
|
||
|
|
name: pasarguard-api
|
||
|
|
protocol: TCP
|
||
|
|
---
|
||
|
|
apiVersion: v1
|
||
|
|
kind: Service
|
||
|
|
metadata:
|
||
|
|
name: traefik
|
||
|
|
namespace: kube-system
|
||
|
|
spec:
|
||
|
|
ports:
|
||
|
|
- name: web
|
||
|
|
port: 80
|
||
|
|
protocol: TCP
|
||
|
|
targetPort: web
|
||
|
|
- name: websecure
|
||
|
|
port: 443
|
||
|
|
protocol: TCP
|
||
|
|
targetPort: websecure
|
||
|
|
- name: pasarguard-api
|
||
|
|
port: 62051
|
||
|
|
protocol: TCP
|
||
|
|
targetPort: pasarguard-api
|