Deployment
This guide walks through deploying Krakend, a high-performance open-source API Gateway, on Fly.io at no cost.
Prerequisites
- A Fly.io account
- Flyctl command-line tool installed
- Krakend configuration files ready
Steps
1. Prepare Krakend Configuration
Ensure your Krakend configuration is ready and the necessary files are in the configs directory.
2. cd to krakenD
cd krakend
3. Initialize Fly.io Application
Login to Fly.io and create a new application:
flyctl auth login
flyctl launch
4. Destroy Previous Instance (If needed)
If an old version exists, remove it:
fly apps destroy krakend
Confirm with your application name when prompted.
5. Deploy the New Image
Deploy your new Docker image to Fly.io:
flyctl deploy
6. Verify Deployment
Ensure the deployment was successful and the application is running:
flyctl status
7. Accessing Logs
To check logs for debugging:
flyctl logs
8. Additional Management
For direct console access:
flyctl ssh console -C /bin/sh