Smart manufacturing efficiency prediction with GitOps
Classifies machine efficiency status from sensor readings, delivered with Jenkins CI and ArgoCD on Minikube.
What it does
Machine telemetry is cleaned (timestamp and machine ID dropped), operation mode and efficiency status are label-encoded and features are standardised. A logistic regression classifier predicts the efficiency status and a Flask app serves it. On a Google Cloud VM, Jenkins builds the image and pushes it to Docker Hub, and ArgoCD syncs the Kubernetes manifests to Minikube, with GitHub webhooks triggering the pipeline.
What was built
- 01
Processing drops Timestamp and Machine_ID, label-encodes Operation_Mode and Efficiency_Status, and standard-scales features.
- 02
LogisticRegression (max_iter 1000) is trained in a training pipeline and saved for the Flask app.
- 03
Jenkins on a GCP VM checks out the repo, builds the image and pushes it to Docker Hub.
- 04
Pipeline installs kubectl and the ArgoCD CLI, logs in and syncs the application to Minikube.
- 05
GitHub webhooks trigger the Jenkins job on push for end-to-end automation.
The pipeline, layer by layer
Five layers, one pipeline.
L1Data
- Machine sensor CSV
- Encoding and scaling
L2Training
- Logistic regression
L3Serving
- Flask app
L4CI
- GitHub webhook
- Jenkins build
- Docker Hub
L5CD
- ArgoCD sync
- Minikube on GCP VM