Hello from Python App - CI/CD is success and successfully deployed!
This project demonstrates:
- Building a Python Flask app
- Dockerizing the application
- CI/CD with Jenkins pipeline
- Scanning Docker images using Trivy
- Deploying to Kubernetes (K3s cluster)
- Flask app running on port 5000
- CI/CD pipeline triggered on GitHub push
- Automated Docker build and push to Docker Hub
- Kubernetes deployment with NodePort service
- Prometheus and Grafana monitoring support
- Clone: Pull source code from GitHub
- Build Docker Image: Build
python_app:dev - Scan with Trivy: Security scan for CRITICAL vulnerabilities
- Push Image: Push image to Docker Hub using personal access token
- Deploy to Kubernetes: Apply
deployment.yamlandservice.yaml
Kubernetes Service:
kubectl get all