Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.01 KB

README.md

File metadata and controls

38 lines (28 loc) · 1.01 KB

Infrastructure Setup

This repository contains Ansible playbooks for setting up K3s and ArgoCD on a VPS.

Prerequisites

  1. Ansible installed on your local machine
  2. SSH access to the target server
  3. Python 3.x installed on the target server

Setup

  1. Install required collections:

    ansible-galaxy collection install -r ansible/requirements.yml
  2. Update inventory file with your server details:

    • Edit ansible/inventory.yml
    • Update ansible/group_vars/all.yml with your desired configuration
  3. 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

Post-installation

  1. Get the ArgoCD admin password from the playbook output
  2. Access ArgoCD UI through port-forward:
    kubectl port-forward svc/argocd-server -n argocd 8080:443
  3. Login with username: admin and the password from step 1