Add traefik config for running on a different port
parent
85c8afe072
commit
c2703834f0
@ -1,4 +1,6 @@
|
||||
**/*.tfvars
|
||||
**/.terraform/*
|
||||
**/*.tfstate.*
|
||||
**/*.tfstate
|
||||
**/*.tfstate
|
||||
**/*.auth
|
||||
**/*-secret.yaml
|
@ -0,0 +1,25 @@
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: longhorn-auth
|
||||
namespace: longhorn-system
|
||||
spec:
|
||||
basicAuth:
|
||||
secret: longhorn-secret
|
||||
---
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: longhorn-route
|
||||
namespace: longhorn-system
|
||||
spec:
|
||||
entryPoints:
|
||||
- web
|
||||
routes:
|
||||
- match: Host(`longhorn.trivernis.net`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: longhorn-frontend
|
||||
port: 80
|
||||
middlewares:
|
||||
- name: longhorn-auth
|
@ -0,0 +1,19 @@
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: searxng-route
|
||||
namespace: searxng
|
||||
spec:
|
||||
entryPoints:
|
||||
- web
|
||||
routes:
|
||||
- match: Host(`search.trivernis.dev`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: searxng-srv
|
||||
port: 8080
|
||||
- match: Host(`search.trivernis.net`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: searxng-srv
|
||||
port: 8080
|
@ -0,0 +1,15 @@
|
||||
apiVersion: helm.cattle.io/v1
|
||||
kind: HelmChartConfig
|
||||
metadata:
|
||||
name: traefik
|
||||
namespace: kube-system
|
||||
spec:
|
||||
valuesContent: |-
|
||||
additionalArguments:
|
||||
- "--entryPoints.web.proxyProtocol.trustedIPs=10.0.0.254"
|
||||
- "--entryPoints.web.forwardedHeaders.trustedIPs=10.0.0.254"
|
||||
ports:
|
||||
web:
|
||||
exposedPort: 8000
|
||||
websecure:
|
||||
exposedPort: 8443
|
Loading…
Reference in New Issue