Files
traefik-proxmox-plugin/README.md
2025-11-17 17:00:15 +07:00

52 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Traefik with proxmox plugin
[полная дока](https://github.com/NX211/traefik-proxmox-provider)
## Установка
1. на proxmox хосте создаем токен и роль
```bash
pveum role add traefik-provider -privs "VM.Audit,VM.Monitor,Sys.Audit,Datastore.Audit"
pveum user token add root@pam traefik_prod
pveum acl modify / -token 'root@pam!traefik_prod' -role traefik-provider
```
2. в traefik.yaml
```yaml
...
experimental:
plugins:
traefik-proxmox-provider:
moduleName: "github.com/NX211/traefik-proxmox-provider"
version: "v0.7.0"
...
providers:
plugin:
traefik-proxmox-provider:
pollInterval: "30s"
apiEndpoint: "https://pve-host.ru:8006"
apiTokenId: "root@pam!traefik_prod"
apiToken: "token"
apiLogging: "info"
apiValidateSSL: "true"
```
3. в ВМ или LXC в Notes прописываем записи
```yaml
traefik.enable: true
traefik.http.routers.secure.entrypoints: http,https
traefik.http.routers.secure.tls: true
traefik.http.routers.secure.tls.certresolver: letsEncrypt
traefik.http.services.testapp.loadbalancer.server.url: http://192.168.23.63:80
```
### Дополнительно
- курс по Traefik, который не потерял актуальность с примерами и том числе по кубу [тут](https://promo.realmanual.ru/traefik)
- до 10.01.2026 на него будет промик TRAPROX