prole/infrastructure/roles/k3s/templates/prole-port-forwards.service.j2
chrisfu f47c18fef7 feat(infrastructure): enhance k3s automation and OpenTofu integration
- Infrastructure:
    - Updated k3s Ansible role with mountpoint preflight checks and better permission management.
    - Automated deployment of prole configuration and port-forwarding scripts to cluster hosts.
    - Added systemd service for managing port forwards on k3s nodes.
    - Added prole-installer service account token automation.
- K8s Manifests:
    - Renamed and added Persistent Volumes in iscsi-pvs.yaml (including OpenBao support).
    - Updated StatefulSets for garage and openbao.
    - Migrated prole-db to CloudNativePG-based configuration.
    - Added comprehensive OpenTofu manifests for cluster deployment.
- Configuration:
    - Added cluster-specific configurations (k3d, k3s-hosts).
    - Added PostgreSQL configuration templates.
    - Updated .gitignore to track the conf/ directory.
- Tools:
    - Updated install.py and port-forwarding scripts.
    - Added render_manifest.py for manifest generation.
2026-02-07 22:53:18 -08:00

24 lines
676 B
Django/Jinja

[Unit]
Description=Prole Port Forwards (k3s)
After=network-online.target k3s.service k3s-agent.service
Wants=network-online.target
[Service]
Type=oneshot
User=root
Group=root
Environment=PROLE_HOME={{ prole_home }}
Environment=PROLE_CONF={{ prole_conf }}
Environment=PROLE_MODE=k3s
Environment=KUBECONFIG={{ prole_port_forward_kubeconfig }}
ExecStartPre=/usr/bin/test -f {{ prole_conf }}/prole.cfg
ExecStartPre=/usr/bin/test -f {{ prole_port_forward_kubeconfig }}
ExecStart={{ prole_home }}/etc/init_port_forwards.sh start
ExecStop={{ prole_home }}/etc/init_port_forwards.sh stop
RemainAfterExit=yes
TimeoutStartSec=60
TimeoutStopSec=30
[Install]
WantedBy=multi-user.target