This repository contains Ansible playbooks for setting up K3s and ArgoCD on a VPS.
- Ansible installed on your local machine
- SSH access to the target server
- Python 3.x installed on the target server
-
Install required collections:
ansible-galaxy collection install -r ansible/requirements.yml
-
Update inventory file with your server details:
- Edit
ansible/inventory.yml
- Update
ansible/group_vars/all.yml
with your desired configuration
- Edit
-
Run the playbooks:
# Install K3s ansible-playbook -i ansible/inventory.yml ansible/playbooks/install_k3s.yml # Install ArgoCD ansible-playbook -i ansible/inventory.yml ansible/playbooks/install_argocd.yml
- Get the ArgoCD admin password from the playbook output
- Access ArgoCD UI through port-forward:
kubectl port-forward svc/argocd-server -n argocd 8080:443
- Login with username: admin and the password from step 1