Deploy Foundry to a Kubernetes Cluster
-
Clone the repo
git clone [email protected]:boop-ninja/iac-foundry.git
-
Create a
terraform.tfvars.json
file -
Add the following contents to the file
{ "kube_host": "https://your.kube.host:6443", "kube_crt": "your-kube-crt", "kube_key": "your-kube-key" }
-
Run a
terraform init
-
Change the workspace to be the domain you wish to deploy to, ex:
dnd.example.com
terraform workspace new dnd.example.com
-
Run a
terraform plan
and review that it is acceptable -
If acceptable run
terraform apply -y
-
Add two CNAME records to point to your root (if your root domain is pointing to your cluster)
-
If not, add two A records to point to your cluster.
dnd.example.com dnd-admin.example.com
It creates two containers with two services:
- Foundry container at https://dnd.exampe.com
- Syncthing at https://dnd-admin.example.com
- Access your foundry server and follow the setup instructions.
- Install Syncthing locally and add your foundry server.
- Secure your syncthing instance.
- Secure your foundry instance.