mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 15:04:31 +00:00
- k3s_sync: choose any server as sync source fallback; refresh kubeconfig and validate nodes\n- fetch_kubeconfig: save to prole-k3s.kubeconfig and etc/secrets/k3s.kubeconfig\n- k3s sync: sync server URL into config.yaml; restore TLS bundle only on servers\n- cert-manager/ACME: wait for CNI/webhook readiness; retry ClusterIssuer/Certificate apply\n- inventory: tune myrddin control-plane timing args; add render test\n- misc: update port mappings and prole-db manifests/version Co-authored-by: Junie <junie@jetbrains.com>
29 lines
712 B
YAML
29 lines
712 B
YAML
---
|
|
- name: Reset k3s nodes and reinstall with vault token
|
|
hosts: k3s_hosts
|
|
become: true
|
|
serial: 1
|
|
tasks:
|
|
- name: Ensure cgroup kernel params are set
|
|
ansible.builtin.import_role:
|
|
name: cgroups
|
|
|
|
- name: Remove existing k3s installation and data
|
|
ansible.builtin.import_role:
|
|
name: k3s
|
|
tasks_from: cleanup
|
|
|
|
- name: Reinstall and configure k3s
|
|
ansible.builtin.import_role:
|
|
name: k3s
|
|
|
|
- name: Refresh kubeconfig on controller after reset
|
|
hosts: k3s_hosts
|
|
gather_facts: false
|
|
run_once: true
|
|
tasks:
|
|
- name: Fetch and save kubeconfig on controller
|
|
ansible.builtin.import_role:
|
|
name: k3s
|
|
tasks_from: fetch_kubeconfig
|