Bootstrap servers
General information
These are the steps you need to perform after receiving a server IP address and an SSH user before you can run the provisioning scripts for any given environment. E.G: qa, backup, staging, production (1, 2, 3 or 5 server cluster).
Use command produced by create environment script (`yarn environment:init) to bootstrap servers:
Bootstrap Kubernetes single node / master node
SSH into your server as a user with sudo access or as root
Run the following command on the VM:
curl -sfL https://raw.githubusercontent.com/opencrvs/infrastructure/refs/heads/develop/scripts/bootstrap/opencrvs-bootstrap.sh \ -o opencrvs-bootstrap.sh && \ bash opencrvs-bootstrap.sh --owner <org name> \ --repo <repo name> \ --env <env name> \ --token <github token> \ --enable-runner
Checklist for script execution
Verify
provisionuser was created:Example output:
In your GitHub repository, navigate to Settings → Actions → Runners and verify that the runner appears as a self-hosted runner.
Bootstrap Kubernetes worker nodes / backup server
SSH into your server as a user with sudo access or as root
Run following command to bootstrap server
Last updated