Fix some thing
This commit is contained in:
parent
7675d36df1
commit
8dd4b72fc7
|
@ -11,6 +11,9 @@ networking:
|
||||||
domain: riju.example.com # FIXME
|
domain: riju.example.com # FIXME
|
||||||
ip: x.y.z.w # FIXME
|
ip: x.y.z.w # FIXME
|
||||||
|
|
||||||
|
contact:
|
||||||
|
letsEncryptEmail: ops@example.com # FIXME
|
||||||
|
|
||||||
metallb:
|
metallb:
|
||||||
secretkey: "$(pwgen -s 256 1)"
|
secretkey: "$(pwgen -s 256 1)"
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
---
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
namespace: traefik
|
||||||
|
name: traefik-config
|
||||||
|
data:
|
||||||
|
traefik.yaml: |
|
||||||
|
entrypoints:
|
||||||
|
http:
|
||||||
|
address: ":8000/tcp"
|
||||||
|
https:
|
||||||
|
address: ":8443/tcp"
|
||||||
|
http:
|
||||||
|
tls: true
|
||||||
|
healthcheck:
|
||||||
|
address: ":9000/tcp"
|
||||||
|
docker:
|
||||||
|
address: ":31000/tcp"
|
||||||
|
http:
|
||||||
|
tls: true
|
||||||
|
ping:
|
||||||
|
entryPoint: "healthcheck"
|
||||||
|
providers:
|
||||||
|
kubernetescrd: true
|
||||||
|
kubernetesingress: true
|
||||||
|
certificatesResolvers:
|
||||||
|
riju:
|
||||||
|
acme:
|
||||||
|
email: "{{ .contact.letsEncryptEmail }}"
|
||||||
|
storage: acme.json
|
||||||
|
httpChallenge:
|
||||||
|
entryPoint: http
|
|
@ -1,28 +0,0 @@
|
||||||
---
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
namespace: traefik
|
|
||||||
name: traefik-config
|
|
||||||
data:
|
|
||||||
traefik.yaml: |
|
|
||||||
entrypoints:
|
|
||||||
traefik:
|
|
||||||
address: ":9000/tcp"
|
|
||||||
metrics:
|
|
||||||
address: ":9100/tcp"
|
|
||||||
web:
|
|
||||||
address: ":8000/tcp"
|
|
||||||
websecure:
|
|
||||||
address: ":8443/tcp"
|
|
||||||
http:
|
|
||||||
tls: true
|
|
||||||
api:
|
|
||||||
dashboard: true
|
|
||||||
ping: true
|
|
||||||
metrics:
|
|
||||||
prometheus:
|
|
||||||
entrypoint: metrics
|
|
||||||
providers:
|
|
||||||
kubernetescrd: true
|
|
||||||
kubernetesingress: true
|
|
|
@ -55,14 +55,14 @@ spec:
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
timeoutSeconds: 2
|
timeoutSeconds: 2
|
||||||
ports:
|
ports:
|
||||||
- name: traefik
|
- name: http
|
||||||
containerPort: 9000
|
|
||||||
- name: web
|
|
||||||
containerPort: 8000
|
containerPort: 8000
|
||||||
- name: websecure
|
- name: https
|
||||||
containerPort: 8443
|
containerPort: 8443
|
||||||
- name: metrics
|
- name: ping
|
||||||
containerPort: 9100
|
containerPort: 9000
|
||||||
|
- name: docker
|
||||||
|
containerPort: 31000
|
||||||
securityContext:
|
securityContext:
|
||||||
capabilities:
|
capabilities:
|
||||||
drop:
|
drop:
|
||||||
|
@ -101,13 +101,13 @@ spec:
|
||||||
app: traefik
|
app: traefik
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
name: "web"
|
name: http
|
||||||
targetPort: web
|
targetPort: 8000
|
||||||
protocol: TCP
|
|
||||||
- port: 443
|
- port: 443
|
||||||
name: "websecure"
|
name: https
|
||||||
targetPort: websecure
|
targetPort: 8443
|
||||||
protocol: TCP
|
- port: 31000
|
||||||
|
name: docker
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: IngressClass
|
kind: IngressClass
|
||||||
|
@ -118,19 +118,3 @@ metadata:
|
||||||
ingressclass.kubernetes.io/is-default-class: "true"
|
ingressclass.kubernetes.io/is-default-class: "true"
|
||||||
spec:
|
spec:
|
||||||
controller: traefik.io/ingress-controller
|
controller: traefik.io/ingress-controller
|
||||||
---
|
|
||||||
|
|
||||||
kind: IngressRoute
|
|
||||||
apiVersion: traefik.containo.us/v1alpha1
|
|
||||||
metadata:
|
|
||||||
namespace: traefik
|
|
||||||
name: traefik-dashboard
|
|
||||||
spec:
|
|
||||||
entryPoints:
|
|
||||||
- traefik
|
|
||||||
routes:
|
|
||||||
- match: PathPrefix(`/dashboard`) || PathPrefix(`/api`)
|
|
||||||
kind: Rule
|
|
||||||
services:
|
|
||||||
- name: api@internal
|
|
||||||
kind: TraefikService
|
|
||||||
|
|
Loading…
Reference in New Issue