forked from k-space/kube
99 lines
4.6 KiB
YAML
99 lines
4.6 KiB
YAML
apiVersion: traefik.containo.us/v1alpha1
|
|
kind: IngressRoute
|
|
metadata:
|
|
name: proxmox
|
|
spec:
|
|
entryPoints:
|
|
- https
|
|
routes:
|
|
- kind: Rule
|
|
match: Host(`pve.k-space.ee`)
|
|
priority: 10
|
|
middlewares:
|
|
- name: proxmox-redirect
|
|
- name: traefik-sso@kubernetescrd
|
|
- name: traefik-proxmox-redirect@kubernetescrd
|
|
services:
|
|
- kind: Service
|
|
name: pve1
|
|
passHostHeader: true
|
|
port: 8006
|
|
responseForwarding:
|
|
flushInterval: 1ms
|
|
scheme: https
|
|
serversTransport: proxmox-servers-transport
|
|
tls:
|
|
secretName: pve
|
|
domains:
|
|
- main: pve.k-space.ee
|
|
sans:
|
|
- "*.k-space.ee"
|
|
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
kind: ServersTransport
|
|
metadata:
|
|
name: proxmox-servers-transport
|
|
spec:
|
|
rootCAsSecrets:
|
|
- pve
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: pve
|
|
data:
|
|
# This is not actually secret, this is CA certificate of the key
|
|
# used to sign Proxmox HTTPS endpoint keypairs.
|
|
# This makes sure Traefik is talking to the real Proxmox machines,
|
|
# and not arbitrary machines that have hijacked the Proxmox machine IP-s.
|
|
# To inspect current value:
|
|
# kubectl get secret -n traefik pve -o=json | jq '.data ."pve.pem"' -r | base64 -d | openssl x509 -text -inform PEM -noout
|
|
pve.pem: |
|
|
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUZ6VENDQTdXZ0F3SUJBZ0lVUGk5SFNhQlp0
|
|
ZG5JL01NREFBb05DT3ZpaGJjd0RRWUpLb1pJaHZjTkFRRUwKQlFBd2RqRWtNQ0lHQTFVRUF3d2JV
|
|
SEp2ZUcxdmVDQldhWEowZFdGc0lFVnVkbWx5YjI1dFpXNTBNUzB3S3dZRApWUVFMR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xZNnY5OCtVK3gK
|
|
U0RxdUFKU0tIanF5RzRDdjZlL2toamNLMzJpcENuZmYzb2plblpTZlFtN3l3OXpCQjFSc1Z3TU9k
|
|
aTBCOW44cApDWHpRcHdHTERiNjB1VCtycTJ4eHJici9yT3VtQU5GbXByd1oxbi9yWE45bndxUktW
|
|
VVBRU1lQdVVKa2xCTktLCnNVL1dTSHBzMGF4dTRUMElFUk0zZHVCWEJ5Yms0TXJXSTBCZ2ptNXZz
|
|
NFNPNHVGSU96d2RBVkdIQ09lRWhQQzIKMzRiSW9ES09tZDFNcmtjYTQyTWw4bDFtb0hTUFd3djZ4
|
|
dVo1U1I0UXhPaXdWa0tJRHdvSmg2M2swTmxwUzZFUwp4N253ekZIc01rNTRFTWNMMjJjRk9YK3Rh
|
|
Q1JtTDVRVVdDMGQ3bEFCMElXQS9UTkRXU3lQbHlRN1VCcjRIZGoxClh2NU43Yks0SUN5NWRhN25h
|
|
RWRmRHIzNTBpZkRCQkVuL3RvL3JUczFOVjhyOGpjcG14a2MzNjlSQXp3TmJiRVkKMVE9PQotLS0t
|
|
LUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
|
|
---
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
kind: Middleware
|
|
metadata:
|
|
name: proxmox-redirect
|
|
spec:
|
|
redirectRegex:
|
|
regex: ^https://proxmox.k-space.ee/(.*)$
|
|
replacement: https://pve.k-space.ee/$1
|
|
permanent: false
|