prole/infrastructure/roles/k3s/templates/prole-kubeconfig.yaml.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

20 lines
488 B
Django/Jinja

apiVersion: v1
kind: Config
{% set server = (k3s_server_url | default('') | length > 0) | ternary(k3s_server_url, 'https://' ~ inventory_hostname ~ ':6443') %}
{% set token = prole_port_forward_token | default(k3s_token) %}
clusters:
- cluster:
server: {{ server }}
insecure-skip-tls-verify: true
name: prole-k3s
contexts:
- context:
cluster: prole-k3s
user: prole-k3s
name: prole-k3s
current-context: prole-k3s
users:
- name: prole-k3s
user:
token: {{ token }}