Prerequisites
- Access to the Fast Foundation manifest repository
- Output values from the AWS Resources step
- Basic understanding of Kubernetes concepts
Step-by-Step Process
1. Add Application to Cluster Configuration
Navigate to your manifest repository and open the fileclusters/<cluster_name>/ruling-app/<environment>/values.yaml.
Add your application configuration under the application: field.Make sure you have the output values from the AWS Resources step ready, since you’ll need them to replace placeholders in the YAML config.
2. Configure Environment-Specific Values
Replace these values with your AWS Resources output:| Field | Description | Source |
|---|---|---|
env.awsSecretId | Secret name for environment variables | Everything after :secret: in static_secret |
image.registry | ECR registry URL | First part of ecr_repository |
image.repository | Image repository path | Remaining part of ecr_repository |
3. Create Application Directory Structure
4. Create values.yaml
Createenvironments/<environment>/apps/<app_name>/values.yaml:
The image tag can be any placeholder like
default-12kmkjas9 or development-application-deployment-6b0f2da7 until a real image is built.5. Create Chart.yaml
Createenvironments/<environment>/apps/<app_name>/Chart.yaml:
6. Configure Dockerfile and Entrypoint
Since a secret is automatically mounted at/mnt/.env, configure your app to load environment variables from that file.
Entrypoint Script (Node.js Example)
Dockerfile Example (Node.js)
7. Deploy to ArgoCD
Push your changes to the main branch:8. Verify Deployment
- Go to your ArgoCD dashboard
- Find your application in the list
- Check the sync status
- Review logs if there are issues
Manifest Fields Reference
Environment Configuration
| Field | Description | Example |
|---|---|---|
env.secretid | AWS Secrets Manager secret name | development/app_name/env-ABC123 |
image.registry | Container registry URL | 123456789.dkr.ecr.us-east-1.amazonaws.com |
image.repository | Image repository path | development/application/app_name |
image.tag | Image tag | latest, v1.0.0, test-6b0f2da7 |
Resource Configuration
| Field | Description | Recommended |
|---|---|---|
resources.requests.memory | Minimum memory required | 256Mi |
resources.requests.cpu | Minimum CPU required | 100m |
resources.limits.memory | Maximum memory allowed | 512Mi |
resources.limits.cpu | Maximum CPU allowed | 500m |
Next Steps
Once manifests are created and ArgoCD has synced them, continue to Configure CI/CD.Troubleshooting
Application Not Appearing in ArgoCD
Application Not Appearing in ArgoCD
- Check that you pushed to the
mainbranch - Verify the directory structure is correct
- Check ArgoCD logs for sync errors
Secret Not Found Error
Secret Not Found Error
- Verify the secret ID matches AWS output
- Confirm the secret exists in AWS Secrets Manager
- Ensure the IAM role can read the secret
Image Pull Errors
Image Pull Errors
- Verify the ECR repository URL is correct
- Check the image tag exists in the repository
- Ensure the service account has ECR pull permissions