This is a Flask application that lists the latest articles within the cloud-native ecosystem.
To run this application there are 2 steps required:
- Initialize the database by using the
python init_db.py
command. This will create or overwrite thedatabase.db
file that is used by the web application. - Run the TechTrends application by using the
python app.py
command. The application is running on port3111
and you can access it by querying thehttp://127.0.0.1:3111/
endpoint.
To run this application in a Docker container, you can use the following commands:
- Build the Docker image by using the
make build
command. This will create a Docker image with thetechtrends:latest
tag. - Run the Docker container by using the
make run
command. This will start a Docker container with thetechtrends
image and expose the application on port7111
.
To run this application in a Kubernetes cluster, you can use the following commands:
- Apply the Kubernetes deployment by using the
make k_apply
command. This will create a deployment and a service in thesandbox
namespace (after creating the namespace if it doesn't exist). - Check that the app is running by shelling into a pod within the
sandbox
namespace and running thewget -qO- http://{CLUSTER_IP}:4111/healthz
command. (or thecurl
equivalent)
- Add the ArgoCD manifests
- Document the ArgoCD commands
- Added Helm chart for the application
- Added K8s deployment files
- Added CI step to build the image & push to Docker Hub
- Dockerize the application
- Added the /healthz endpoint
- Added the /metrics endpoint
- Added logging