Deploy Application
Learn how to deploy your application to Kubernetes and understand the deployment process.
Deployment Process
When you click "Deploy Now", ScallerFox performs several automated steps to deploy your application:
Build Docker Image
ScallerFox clones your repository, builds the Docker image using your Dockerfile, and pushes it to our container registry.
Duration: 2-5 minutes
First build is slower due to layer downloads. Subsequent builds are faster with cached layers.
Create Kubernetes Resources
ScallerFox creates Deployment, Service, and HorizontalPodAutoscaler resources in the Kubernetes cluster based on your configuration.
What's created:
- • Deployment: Manages pod replicas
- • Service: Load balancer for pods
- • HPA: Auto-scaling configuration
- • Ingress: Domain and SSL configuration
Start Containers
Kubernetes schedules and starts containers on available nodes. Containers pull the image and start your application.
Duration: 30-60 seconds
Container startup time depends on application initialization.
Health Checks & SSL
ScallerFox performs health checks on your containers and provisions SSL certificates for your domain.
What happens:
- • Health checks verify containers are responding
- • SSL certificates are issued via Let's Encrypt
- • Load balancer routes traffic to healthy pods
Understanding Deployment Status
Not Deployed
Application has been created but never deployed. Click "Deploy Now" to start deployment.
Pending / Building
Deployment is in progress. The system is building your Docker image or starting containers.
Deploy button is disabled during this phase. Monitor progress via build logs.
Success
Deployment completed successfully. Your application is running and accessible.
Check Application Status to see pod details. Monitor resource usage in Resource Usage tab.
Failed
Deployment failed. Check build logs to identify the issue.
Common causes: Dockerfile errors, missing dependencies, port misconfiguration, or insufficient resources.
Monitoring Deployment
Build Logs
Watch the deployment progress in real-time through build logs. Logs show:
- Docker build output (layer downloads, build steps)
- Image push status
- Kubernetes resource creation
- Container startup logs
- Health check results
Build logs auto-refresh every 2 seconds during deployment. You can also manually refresh to see the latest updates.
Redeploying Applications
You can redeploy your application anytime to:
- Deploy new code changes from your repository
- Apply configuration changes (package, pods, environment variables)
- Fix failed deployments after correcting issues
Rolling Update: ScallerFox performs rolling updates by default. New pods are created and health-checked before old pods are terminated, ensuring zero downtime during redeployment.
Deployment Best Practices
Before Deployment
- Test your Dockerfile locally
- Ensure all dependencies are in Dockerfile
- Verify container port matches configuration
- Check environment variables are set
After Deployment
- Verify application is accessible
- Check resource usage charts
- Monitor logs for errors
- Test SSL certificate is working