Commit Graph

24 Commits

Author SHA1 Message Date
32c074f9b8 fix: correct endpoint default to exclude system namespaces and revert configmap to proper user namespace filtering 2025-10-06 16:33:23 -03:00
0d6622ebfc fix: enable system namespaces in configmap to include all user namespaces like resource-governance 2025-10-06 16:19:11 -03:00
c963879739 fix: update Celery task to return real cluster data instead of mock data 2025-10-06 15:31:47 -03:00
ea1dae9e09 fix: disable SSL verification and add auth token for ThanosClient 2025-10-06 13:48:15 -03:00
8c616652af feat: implement ThanosClient for historical data queries and hybrid Prometheus+Thanos architecture 2025-10-06 12:14:40 -03:00
6f8ffe1e49 feat: implement Phase 2 - Sequential Pipeline with Celery Workers 2025-10-06 10:44:43 -03:00
bf06ae190a fix: correct KubernetesClient import to K8sClient in Celery tasks 2025-10-06 10:40:20 -03:00
1e447903aa Fix: increase pod memory limits to prevent OOM kills 2025-10-06 10:13:42 -03:00
018bdc0cc5 Fix route creation to work across different OpenShift clusters 2025-10-04 11:32:50 -03:00
4330df5054 Optimize application resource requests/limits based on real usage
- Reduce replicas from 2 to 1 (single instance sufficient)
- Adjust CPU requests: 100m → 50m (based on actual usage)
- Adjust CPU limits: 500m → 200m (4x headroom for spikes)
- Adjust memory requests: 128Mi → 64Mi (realistic baseline)
- Adjust memory limits: 512Mi → 256Mi (2x headroom for 160MB peak usage)
- Update S2I template with same optimized values
- Maintain proper resource ratios (4:1 CPU, 4:1 Memory)
- Eliminate resource waste and improve cluster efficiency
2025-10-04 09:05:59 -03:00
34f4993510 Add S2I support and cleanup unused files
- Add complete Source-to-Image (S2I) deployment support
- Create .s2i/ directory with assemble/run scripts and environment config
- Add openshift-s2i.yaml template for S2I deployment
- Add scripts/deploy-s2i.sh for automated S2I deployment
- Add README-S2I.md with comprehensive S2I documentation
- Update README.md and AIAgents-Support.md with S2I information
- Clean up unused files: Dockerfile.simple, HTML backups, daemonset files
- Remove unused Makefile and openshift-git-deploy.yaml
- Update kustomization.yaml to use deployment instead of daemonset
- Update undeploy-complete.sh to remove deployment instead of daemonset
- Maintain clean and organized codebase structure
2025-10-04 08:38:55 -03:00
2e9ed3e7b3 fix: format Resource Utilization to show only 1 decimal place
- Update resource utilization display to use .toFixed(1) for better readability
- Apply formatting to both main dashboard and modal details
- Change from 266.04049998033537% to 266.0% for human readability
- Improve user experience with cleaner number formatting
2025-10-03 07:18:45 -03:00
756cc43997 cleanup: remove all Docker Hub references and update to Quay.io
- Update deployment.yaml to reference Quay.io instead of Docker Hub
- Remove Docker Hub references from README.md
- Update build-and-push.sh to show Quay.io registry info
- Update release.sh to reference Quay.io repository
- Update push-to-internal-registry.sh to use Quay.io image
- Clean up all Docker Hub comments and references
- Registry is now exclusively Quay.io: quay.io/rh_ee_anobre/resource-governance
2025-10-03 07:04:58 -03:00
c81ba36b26 fix: correct route name and health check endpoints in deployment
- Fix route name mismatch: script was looking for 'resource-governance' but route is named 'resource-governance-route'
- Fix health check endpoints: use /health instead of /api/v1/health for liveness/readiness probes
- Add better error handling and route verification in deploy script
- Add sleep delay to ensure route is ready before URL extraction
- Show available routes if expected route is not found
2025-10-03 06:37:35 -03:00
0e7d2c7900 Fix: Remove hardcoded hostname from route to make it cluster-agnostic 2025-09-29 11:55:02 -03:00
2a582e1936 Fix: SSL connection to Kubernetes API and make deployment cluster-agnostic 2025-09-29 10:44:08 -03:00
6c01527b5e Fix: modal initialization to prevent empty modal on page load 2025-09-26 09:16:24 -03:00
1bc1a40a02 Fix: Updated deployment files with correct Prometheus URL and RBAC permissions 2025-09-25 22:15:54 -03:00
9f8cdbda7a Fix: GitHub Actions for public clusters + deployment guide for colleagues 2025-09-25 18:26:05 -03:00
071ffefef7 Add system namespace filtering
- Add configuration to exclude system namespaces by default
- Add UI checkbox to include system namespaces when needed
- Update API endpoints to accept include_system_namespaces parameter
- Update Kubernetes client to apply namespace filtering
- Update ConfigMap and deployment with new environment variables
- Fix Dockerfile to install dependencies globally
- Test functionality with both filtered and unfiltered results
2025-09-25 17:39:33 -03:00
3a6875a80e Add CI/CD with GitHub Actions and migrate to Deployment
- Migrate from DaemonSet to Deployment for better efficiency
- Add GitHub Actions for automatic build and deploy
- Add Blue-Green deployment strategy with health checks
- Add scripts for development and production workflows
- Update documentation with CI/CD flow
2025-09-25 17:20:38 -03:00
92b902135c Fix: ConfigMap CRITICAL_NAMESPACES format and complete deployment test 2025-09-25 15:32:02 -03:00
25596e2b3e Add: scripts de deploy completo com ImagePullSecret para cluster-admin 2025-09-25 15:24:31 -03:00
4d60c0e039 Initial commit: OpenShift Resource Governance Tool
- Implementa ferramenta completa de governança de recursos
- Backend Python com FastAPI para coleta de dados
- Validações seguindo best practices Red Hat
- Integração com Prometheus e VPA
- UI web interativa para visualização
- Relatórios em JSON, CSV e PDF
- Deploy como DaemonSet com RBAC
- Scripts de automação para build e deploy
2025-09-25 14:26:24 -03:00