Commit Graph

28 Commits

Author SHA1 Message Date
e66c29008a feat: implement real cluster analysis with Kubernetes API data 2025-10-06 15:01:56 -03:00
a4630b786e feat: enhance deploy-complete.sh for cluster-admin privileges with monitoring verification 2025-10-06 14:58:16 -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
067dfaa322 Remove unnecessary rollout-restart.sh script
- Delete rollout-restart.sh as it was just a simple oc command
- Update README.md to show direct oc rollout restart command
- Simplify workflow: git push -> GitHub Actions -> oc rollout restart
- Keep only essential scripts: deploy-complete.sh, build-and-push.sh, undeploy-complete.sh
2025-10-04 12:00:30 -03:00
92834cc8aa Fix scripts: remove duplications, hardcoded credentials, and restore proper workflow
- Remove hardcoded Quay.io credentials from build-and-push.sh
- Create common.sh with shared functions to eliminate duplication
- Create rollout-restart.sh for simple updates (recommended workflow)
- Refactor deploy-complete.sh and rollout-restart.sh to use common functions
- Add comprehensive README.md explaining proper workflow
- Restore correct process: git push -> GitHub Actions -> rollout-restart
- Fix security issues and improve maintainability
2025-10-04 11:59:49 -03:00
4301023a66 Add automatic TLS configuration to routes
- Fix oc expose service not configuring TLS by default
- Add oc patch command to configure TLS after route creation
- Ensures routes work properly with HTTPS in all clusters
- Applied to both deploy-complete.sh and deploy-s2i.sh
2025-10-04 11:35:39 -03:00
018bdc0cc5 Fix route creation to work across different OpenShift clusters 2025-10-04 11:32:50 -03:00
14900fc27f Standardize all scripts to English without emojis 2025-10-04 10:25:53 -03:00
2bb99839ba Add S2I GitHub Actions automation
- Add s2i-deploy.yml workflow for automatic S2I builds
- Update deploy-s2i.sh with --github option for GitHub Actions
- Generic webhook integration for automatic builds
- Maintain existing manual S2I deployment option
2025-10-04 10:00:54 -03:00
1540c40124 Fix S2I deployment to match Container Build resources exactly
- Change APP_NAME from 'oru-analyzer' to 'resource-governance'
- Use correct labels: app.kubernetes.io/name=resource-governance
- Apply service.yaml and route.yaml from manifests instead of oc expose
- Use resource-governance-service and resource-governance-route names
- Ensure S2I generates identical resources as Container Build
- Only deployment approach changes, not application resources
2025-10-04 09:37:07 -03:00
f813261430 Consolidate S2I scripts - single complete script only
- Merge deploy-s2i-complete.sh functionality into deploy-s2i.sh
- Remove duplicate deploy-s2i-complete.sh script
- Update README.md to reference single S2I script
- Always complete deployment - no simple vs complete variants
- Maintain self-service approach with all required resources
- Clean repository with only essential scripts
2025-10-04 09:36:16 -03:00
f80b488949 Implement complete S2I deployment script - fully self-service
- Create deploy-s2i-complete.sh with all required resources
- Automatically applies RBAC, ConfigMap, S2I build, Service, Route
- Configures ServiceAccount, resource limits, and replicas
- Single command deployment - no additional steps needed
- Fix service routing to use correct service created by oc new-app
- Update README.md to highlight complete S2I option
- Ensure application is fully functional after deployment
2025-10-04 09:33:01 -03:00
5ceb421a3c Clean up repository - remove unnecessary files and simplify S2I
- Remove deploy-s2i-simple.sh (duplicate functionality)
- Remove openshift-s2i.yaml template (unnecessary complexity)
- Simplify deploy-s2i.sh to single script approach
- Reduce repository clutter and maintenance overhead
- Keep only essential scripts: deploy-s2i.sh, deploy-complete.sh, build-and-push.sh, undeploy-complete.sh
- Maintain clean, focused codebase
2025-10-04 09:11:36 -03:00
4eec703cba Simplify S2I deployment - remove unnecessary template complexity
- Replace complex template with simple oc new-app command
- Remove dependency on openshift-s2i.yaml template
- Add ultra-simple deploy-s2i-simple.sh script (one command)
- Keep resource configuration via oc patch
- Maintain same functionality with much simpler approach
- Follow OpenShift best practices for S2I deployment
- Reduce maintenance overhead and complexity
2025-10-04 09:10:02 -03:00
04aca2f56e Fix S2I deploy script with optimized resource values
- Update CPU_REQUEST: 100m → 50m
- Update CPU_LIMIT: 500m → 200m
- Update MEMORY_REQUEST: 256Mi → 64Mi
- Update MEMORY_LIMIT: 1Gi → 256Mi
- Align S2I script with deployment.yaml optimizations
- Ensure consistent resource allocation across all deployment methods
2025-10-04 09:07:13 -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
189e8fd1a9 cleanup: remove obsolete scripts and update GitHub Actions for Quay.io
- Remove obsolete deployment scripts outside /scripts folder
- Remove redundant scripts inside /scripts folder
- Remove release.sh as it won't be used in the process
- Update GitHub Actions to use Quay.io instead of Docker Hub
- Update registry references from andersonid to quay.io/rh_ee_anobre
- Simplify deployment instructions to use deploy-complete.sh
- Clean up codebase to maintain only essential scripts
2025-10-03 07:28:05 -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
1bc1a40a02 Fix: Updated deployment files with correct Prometheus URL and RBAC permissions 2025-09-25 22:15:54 -03:00
f38689d9dd Translate all Portuguese text to English 2025-09-25 21:05:41 -03:00
e95f3e3f7c Add: Multiple auto-deploy solutions for OpenShift after GitHub Actions 2025-09-25 18:40:31 -03:00
6f6e4ed19d Enhance: GitHub Actions with smart tagging, release script, and comprehensive guide 2025-09-25 18:34:20 -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
25596e2b3e Add: scripts de deploy completo com ImagePullSecret para cluster-admin 2025-09-25 15:24:31 -03:00
2ca4b468cb Update to use Docker Hub registry
- Change from Quay.io to Docker Hub (andersonid/openshift-resource-governance)
- Update GitHub Actions to use DOCKERHUB_USERNAME and DOCKERHUB_TOKEN
- Update all scripts and documentation to use Docker Hub
- Add DOCKERHUB-SETUP.md with detailed setup instructions
- Update Makefile, deploy scripts, and templates
- Simplify registry references (no quay.io prefix needed)
2025-09-25 14:46:09 -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