Go to file
Jeroen Vermeulen 9218d5e300
Cluster configs
2023-10-23 14:12:51 +02:00
.config Generate and apply Talso configs 2023-08-29 00:33:17 +02:00
.githooks Submodule change 2023-08-28 17:58:15 +02:00
configs Finally Ansible run completed 2023-10-16 22:26:37 +02:00
inventory Cluster configs 2023-10-23 14:12:51 +02:00
playbooks Cluster configs 2023-10-23 14:12:51 +02:00
test Fixed Mayastor DiskPool, K8S upgrade. 2023-09-25 18:36:03 +02:00
.gitignore Talos using DCI works 2023-09-25 14:52:02 +02:00
.gitmodules Submodule change 2023-08-28 17:58:15 +02:00
.yamllint Generate and apply Talso configs 2023-08-29 00:33:17 +02:00
INSTALL.md Readme 2023-10-23 12:18:35 +02:00
README.md Cluster configs 2023-10-23 14:12:51 +02:00
ansible.cfg Generate and apply Talso configs 2023-08-29 00:33:17 +02:00
requirements.txt Added README 2023-08-28 16:58:46 +02:00
requirements.yml Added README 2023-08-28 16:58:46 +02:00
site.yml Rancher is working, including Vaultwarden password 2023-09-04 18:13:20 +02:00

README.md

Snel.com Ansible Playbooks

Preparation

Make sure you followed the instructions in INSTALL.md

Step 1: Customer order

Customer orders cluster using the special order page

Step 2: Create inventory

In this repo:

  • Create a copy of the inventory file inventory/cluster_[NAME].yml.tpl.
    • Replace [NAME] with the name of the cluster and remove te .tpl suffix.
  • Inside this file replace all [NAME] and update the IPs
    • In the package the customer will have one new Cloud VPS Bucket, this IP is used for control.[NAME].k8s.snel.com
    • In the package the customer will have 6 new Talos VPSses.
      • The first 3 IPs need to be used for the talos_control_nodes
      • The remaining 3 IPs need to be used for the talos_worker_nodes
    • Attach 2 extra IPs to the VPS which will become c1.[NAME].k8s.snel.com, the first control node.
      • Use these IPs in the inventory file as ingress_ips
      • These will be floating IPs for MetalLB

Step 3: Execute playbook - VPSses

Your Vaultwarden vault password will be asked.

cd  ~/repos/snel.ansible
git  pull  --recurse-submodules
bw  sync
BW_SESSION=$(bw unlock --raw)  ansible-playbook  site.yml  --limit cluster_[NAME]

Execute playbook - (Re)install Talos on Hardware

Your Vaultwarden vault password will be asked.

cd  ~/repos/snel.ansible
bw  sync
BW_SESSION=$(bw unlock --raw)  ansible-playbook  ./playbooks/snel.kubernetes-cluster/dci_reinstall_talos.yml  --limit cluster_[NAME]