# GitOps Configuration This directory contains GitOps manifests for Flux to manage infrastructure and applications. ## Structure ``` gitops/ ├── infrastructure/ # Base infrastructure (namespaces, RBAC, etc.) └── apps/ # Application deployments ├── besu/ ├── firefly/ ├── chainlink/ ├── blockscout/ ├── cacti/ └── nginx-proxy/ ``` ## Setup Instructions ### Prerequisites 1. Gitea must be configured and accessible 2. Flux must be installed in the K3s cluster 3. Git repository must be created in Gitea ### Steps 1. **Create Git Repository in Gitea:** - Access Gitea: http://192.168.1.121:3000 - Create new repository: `gitops` - Initialize with README 2. **Push GitOps Manifests:** ```bash git clone http://192.168.1.121:3000/hc-stack/gitops.git cd gitops # Copy manifests from this directory git add . git commit -m "Initial GitOps configuration" git push ``` 3. **Configure Flux GitRepository:** ```bash ssh ubuntu@192.168.1.188 export KUBECONFIG=/etc/rancher/k3s/k3s.yaml # Create GitRepository sudo kubectl apply -f - < \ --from-literal=password= \ -n flux-system ``` Then update GitRepository to reference the secret: ```yaml spec: secretRef: name: gitops-repo-auth ```