Some checks failed
Test / test (push) Has been cancelled
Co-authored-by: Cursor <cursoragent@cursor.com>
4.3 KiB
4.3 KiB
Quick Start Guide
Get your Azure Stack HCI infrastructure up and running quickly.
Prerequisites
Before starting, ensure you have:
- Two Proxmox VE hosts with Proxmox VE 7.0+ installed
- Azure subscription with Contributor role
- Azure CLI installed and authenticated
- SSH access to all nodes
- Network connectivity between nodes
See Prerequisites for detailed requirements.
Quick Start Steps
1. Clone and Configure
git clone <repository-url>
cd loc_az_hci
cp .env.example .env
# Edit .env with your credentials
2. Test Connections
# Test Proxmox connections
./scripts/utils/test-proxmox-connection.sh
# Test Cloudflare (if configured)
./scripts/utils/test-cloudflare-connection.sh
3. Configure Proxmox Cluster
On Node 1:
export NODE_IP=192.168.1.10
export NODE_GATEWAY=192.168.1.1
export NODE_HOSTNAME=pve-node-1
./infrastructure/proxmox/network-config.sh
./infrastructure/proxmox/cluster-setup.sh
On Node 2:
export NODE_IP=192.168.1.11
export NODE_GATEWAY=192.168.1.1
export NODE_HOSTNAME=pve-node-2
export CLUSTER_NODE_IP=192.168.1.10
./infrastructure/proxmox/network-config.sh
export NODE_ROLE=join
./infrastructure/proxmox/cluster-setup.sh
4. Onboard to Azure Arc
On each Proxmox node:
export RESOURCE_GROUP=HC-Stack
export TENANT_ID=$(az account show --query tenantId -o tsv)
export SUBSCRIPTION_ID=$(az account show --query id -o tsv)
export LOCATION=eastus
./scripts/azure-arc/onboard-proxmox-hosts.sh
5. Deploy Kubernetes
On K3s VM:
./infrastructure/kubernetes/k3s-install.sh
export RESOURCE_GROUP=HC-Stack
export CLUSTER_NAME=proxmox-k3s-cluster
./infrastructure/kubernetes/arc-onboard-k8s.sh
6. Deploy Git Server
Option A: Gitea (Recommended):
./infrastructure/gitops/gitea-deploy.sh
Option B: GitLab CE:
./infrastructure/gitops/gitlab-deploy.sh
7. Configure GitOps
- Create Git repository in your Git server
- Copy
gitops/directory to repository - Configure GitOps in Azure Portal or using Flux CLI
8. Deploy HC Stack Services
Deploy via GitOps (recommended) or manually:
# Manual deployment
helm install besu ./gitops/apps/besu -n blockchain
helm install firefly ./gitops/apps/firefly -n blockchain
helm install chainlink-ccip ./gitops/apps/chainlink-ccip -n blockchain
helm install blockscout ./gitops/apps/blockscout -n blockchain
helm install cacti ./gitops/apps/cacti -n monitoring
helm install nginx-proxy ./gitops/apps/nginx-proxy -n hc-stack
Service VM Specifications
| VM Name | VM ID | IP Address | CPU | RAM | Disk | Purpose |
|---|---|---|---|---|---|---|
| cloudflare-tunnel | 100 | 192.168.1.60 | 2 | 4GB | 40GB | Cloudflare Tunnel |
| k3s-master | 101 | 192.168.1.188 | 4 | 8GB | 80GB | Kubernetes |
| git-server | 102 | 192.168.1.121 | 4 | 8GB | 100GB | Git Server |
| observability | 103 | 192.168.1.82 | 4 | 8GB | 200GB | Monitoring |
Connection Information
Proxmox
- ML110: https://192.168.1.206:8006
- R630: https://192.168.1.49:8006
- Username: root@pam
- Password: (from
.envfile:PVE_ROOT_PASS)
Cloudflare
- Dashboard: https://dash.cloudflare.com
- Zero Trust: https://one.dash.cloudflare.com
- Tunnel Token: (from
.envfile:CLOUDFLARE_TUNNEL_TOKEN)
Troubleshooting
Proxmox Connection Issues
- Verify IP addresses in
.envfile - Check network connectivity:
ping 192.168.1.206 - Accept self-signed certificate in browser
VM Creation Issues
- Ensure sufficient storage on Proxmox host
- Check VM ID availability
- Verify network bridge configuration
Cloudflare Tunnel Issues
- Verify tunnel token in
.env - Check DNS records in Cloudflare Dashboard
- Review tunnel logs:
journalctl -u cloudflared -f
Next Steps
After completing the quick start:
- Review Deployment Guide for detailed instructions
- Set up monitoring and alerting
- Configure backup and disaster recovery
- Implement security policies
- Plan for scaling and expansion