Infrastructure and Platform Upgrades
Story 1: Upgrade Applications to .NET 10
Section titled “Story 1: Upgrade Applications to .NET 10”As a Platform Engineer
I want to upgrade our .NET applications to .NET 10
So that we can leverage the latest performance improvements, security patches, and language features
Description
Section titled “Description”With the release of .NET 10, we need to upgrade our existing .NET applications to take advantage of:
- Performance improvements and runtime optimizations
- Latest C# language features
- Enhanced security features and latest security patches
- Long-term support (LTS) for stability
- Improved containerization and cloud-native features
Acceptance Criteria
Section titled “Acceptance Criteria”Phase 1: KalmarEnergi Core (Shared Library)
- KalmarEnergi Core solution upgraded to .NET 10
- All
.csprojfiles in KalmarEnergi Core updated to targetnet10.0framework - NuGet package dependencies in KalmarEnergi Core updated to .NET 10 compatible versions
- All unit tests for KalmarEnergi Core pass on .NET 10
- Integration tests for KalmarEnergi Core pass
- KalmarEnergi Core NuGet package published to package registry
- Dependent services verified compatible with new Core package
Phase 2: KalmarEnergi API
8. [ ] KalmarEnergi API solution upgraded to .NET 10
9. [ ] All .csproj files in KalmarEnergi API updated to target net10.0 framework
10. [ ] Reference to upgraded KalmarEnergi Core package updated
11. [ ] NuGet package dependencies in KalmarEnergi API updated to .NET 10 compatible versions
12. [ ] All unit tests for KalmarEnergi API pass on .NET 10
13. [ ] Integration tests for KalmarEnergi API pass in staging environment
14. [ ] Docker images for KalmarEnergi API rebuilt with .NET 10 SDK and runtime
15. [ ] KalmarEnergi API deployed and verified in production
Technical Tasks
Section titled “Technical Tasks”Phase 1: KalmarEnergi Core (Shared Library)
- Update development environment to .NET 10 SDK
- Create feature branch for KalmarEnergi Core upgrade
- Update all
.csprojfiles in KalmarEnergi Core:<TargetFramework>net10.0</TargetFramework> - Update NuGet packages to .NET 10 compatible versions
- Update CI/CD pipeline for KalmarEnergi Core to use .NET 10 SDK
- Build and publish KalmarEnergi Core NuGet package
- Document lessons learned and upgrade process
Phase 2: KalmarEnergi API
- Create feature branch for KalmarEnergi API upgrade
- Update all
.csprojfiles in KalmarEnergi API:<TargetFramework>net10.0</TargetFramework> - Update reference to KalmarEnergi Core package (new .NET 10 version)
- Update NuGet packages to .NET 10 compatible versions
- Update CI/CD pipeline for KalmarEnergi API to use .NET 10 SDK
- Deploy to development environment and test
- Deploy to production with monitoring
- Document API-specific considerations
Dependencies
Section titled “Dependencies”- .NET 10 SDK availability in CI/CD infrastructure
- Container registry access for new base images
- Staging environment for testing
Risk & Mitigation
Section titled “Risk & Mitigation”Risk: Breaking changes in .NET 10 may cause compilation or runtime errors
Mitigation: Start with KalmarEnergi Core (shared library) to identify issues early, thorough testing at each phase, phased rollout per component
Risk: KalmarEnergi Core is a foundational library; issues could break all dependent services
Mitigation: Extensive unit testing, publish as pre-release NuGet package first, test with dependent services before final release
Risk: KalmarEnergi API is critical infrastructure; downtime could impact all client applications
Mitigation: Extensive testing before production, deploy during low-traffic window, have immediate rollback plan ready
Story 2: Migrate from Ingress to Gateway API for RKE2 Kubernetes
Section titled “Story 2: Migrate from Ingress to Gateway API for RKE2 Kubernetes”As a Platform Engineer
I want to migrate from Kubernetes Ingress to Gateway API in our RKE2 clusters
So that we have a more flexible, standardized, and feature-rich routing solution
Description
Section titled “Description”Kubernetes Gateway API is the next-generation replacement for Ingress in our RKE2 clusters, providing:
- Role-oriented design (infrastructure vs. application teams)
- More expressive routing capabilities (header-based, query parameter routing)
- Better support for traffic splitting and canary deployments
- Standardized API across different ingress controllers
- Enhanced security features (HTTPS, mTLS)
- Native integration with RKE2’s networking model
Acceptance Criteria
Section titled “Acceptance Criteria”- Gateway API CRDs installed in all RKE2 clusters
- Gateway resources configured for each application
- HTTPRoute resources replace Ingress resources
- All application endpoints accessible via Gateway API
- TLS/HTTPS certificates configured on Gateway
- Traffic routing rules functional (path-based, host-based)
- Monitoring and logging capture Gateway API metrics
- Old Ingress resources removed after verification
- Documentation updated with Gateway API examples for RKE2
Technical Tasks
Section titled “Technical Tasks”- Install Gateway API CRDs in RKE2 Kubernetes clusters
- Deploy Gateway controller compatible with RKE2 (e.g., NGINX Gateway, Traefik)
- Create Gateway resources for external traffic
- Convert Ingress manifests to HTTPRoute resources
- Configure TLS certificates on Gateway
- Test all application routes and endpoints
- Update Helm charts to use Gateway API resources
- Update CI/CD to deploy Gateway API resources
- Monitor traffic patterns after migration
- Remove old Ingress resources after validation
- Verify compatibility with RKE2 networking (Canal/Calico)
Dependencies
Section titled “Dependencies”- Gateway API CRD installation
- Gateway controller deployment compatible with RKE2
- TLS certificate management solution
- DNS configuration updates if needed
- RKE2 networking configuration (Canal/Calico)
Risk & Mitigation
Section titled “Risk & Mitigation”Risk: Service disruption during migration from Ingress to Gateway API
Mitigation: Run Ingress and Gateway API in parallel, gradual migration per service, extensive testing
Risk: Learning curve for team on Gateway API concepts
Mitigation: Training sessions, documentation, start with non-critical services
Story 3: Upgrade CrunchyData Postgres Operator and PostgreSQL to Version 18
Section titled “Story 3: Upgrade CrunchyData Postgres Operator and PostgreSQL to Version 18”As a Database Administrator
I want to upgrade CrunchyData Postgres Operator and PostgreSQL to version 18
So that we can benefit from the latest PostgreSQL features, performance improvements, and security enhancements
Description
Section titled “Description”Upgrading to PostgreSQL 18 and the latest CrunchyData Postgres Operator will provide:
- Latest PostgreSQL 18 features and performance optimizations
- Enhanced query performance and resource management
- Improved security features and vulnerability patches
- Better monitoring and observability capabilities
- Updated backup and recovery mechanisms
- Support for modern application patterns
- Operator improvements for better Kubernetes integration
Acceptance Criteria
Section titled “Acceptance Criteria”- CrunchyData Postgres Operator upgraded to latest version
- PostgreSQL upgraded to version 18 in all environments (dev, staging, production)
- All database schemas and data migrated successfully
- Zero data loss during upgrade process
- All applications verified working with PostgreSQL 18
- Backup and restore procedures tested and verified
- Monitoring and alerting functional for new version
- Performance benchmarks meet or exceed previous version
- High availability and replication working correctly
- Connection pooling (PgBouncer) compatible with PostgreSQL 18
- Documentation updated with PostgreSQL 18 specifics
Technical Tasks
Section titled “Technical Tasks”- Review CrunchyData Postgres Operator release notes and PostgreSQL 18 changes
- Backup all databases before upgrade
- Test upgrade in isolated development environment
- Verify application compatibility with PostgreSQL 18
- Update Helm charts for CrunchyData Postgres Operator
- Plan upgrade strategy (in-place vs blue-green deployment)
- Upgrade operator in development environment
- Perform PostgreSQL major version upgrade (pg_upgrade or logical replication)
- Test all database operations and queries
- Verify replication and high availability
- Update connection strings and configurations if needed
- Upgrade staging environment
- Run full regression tests
- Schedule production upgrade maintenance window
- Upgrade production databases with rollback plan ready
- Monitor database performance post-upgrade
- Update documentation and runbooks
Dependencies
Section titled “Dependencies”- CrunchyData Postgres Operator compatible with PostgreSQL 18
- Kubernetes cluster resources for database migration
- Backup infrastructure with sufficient storage
- Maintenance window approvals for production upgrade
- Application compatibility testing completed
Risk & Mitigation
Section titled “Risk & Mitigation”Risk: Data loss or corruption during major version upgrade
Mitigation: Multiple backups before upgrade, test upgrade in non-production first, use PostgreSQL upgrade tools (pg_upgrade), have verified rollback procedure
Risk: Application incompatibility with PostgreSQL 18 breaking changes
Mitigation: Review PostgreSQL 18 release notes for breaking changes, test applications thoroughly in staging, gradual rollout
Risk: Extended downtime during production upgrade
Mitigation: Consider blue-green deployment strategy, use logical replication for minimal downtime, schedule during low-traffic window
Risk: Performance degradation after upgrade
Mitigation: Run performance benchmarks before and after, tune PostgreSQL 18 configuration, monitor query performance closely
Story 4: Upgrade Servers to Ubuntu 26.04
Section titled “Story 4: Upgrade Servers to Ubuntu 26.04”As a Infrastructure Engineer
I want to upgrade our servers to Ubuntu 26.04 LTS
So that we benefit from the latest security patches, kernel updates, and long-term support
Description
Section titled “Description”Ubuntu 26.04 LTS provides:
- Latest security patches and kernel updates
- Long-term support (5 years) for stability
- Improved hardware support
- Updated system libraries and tools
- Better container runtime performance
- Enhanced security features (AppArmor, SELinux improvements)
Acceptance Criteria
Section titled “Acceptance Criteria”- All servers upgraded to Ubuntu 26.04 LTS
- All system packages updated to compatible versions
- RKE2/Kubernetes agents running on Ubuntu 26.04
- Application workloads verified operational after upgrade
- System monitoring and logging functional
- Security hardening applied (firewall, SSH config)
- Backup of critical data completed before upgrade
- Zero data loss during upgrade process
- Documentation updated with Ubuntu 26.04 specifics
Technical Tasks
Section titled “Technical Tasks”- Audit current server inventory and OS versions
- Test Ubuntu 26.04 upgrade in non-production environment
- Document upgrade procedure and rollback plan
- Backup critical data and configurations
- Schedule maintenance windows for each server group
- Upgrade storage nodes first (one at a time)
- Upgrade Kafka nodes sequentially
- Upgrade application nodes
- Upgrade master nodes (one at a time, maintain quorum)
- Verify RKE2 compatibility with Ubuntu 26.04
- Update system packages and kernel
- Test application functionality after each upgrade
- Update monitoring dashboards and alerts
Dependencies
Section titled “Dependencies”- Ubuntu 26.04 ISO images or repositories
- RKE2 compatibility with Ubuntu 26.04
- Backup infrastructure for data protection
- Maintenance window approvals
Risk & Mitigation
Section titled “Risk & Mitigation”Risk: Incompatibility between RKE2/Kubernetes and Ubuntu 26.04
Mitigation: Verify RKE2 version compatibility, test in staging first
Risk: Application failures due to library version changes
Mitigation: Container-based applications isolated from OS changes, test thoroughly
Risk: Extended downtime if upgrade fails
Mitigation: Upgrade one node at a time, have tested rollback procedure, maintain backups
Priority and Dependencies
Section titled “Priority and Dependencies”Recommended Order
Section titled “Recommended Order”- Story 2 (Strimzi v0.50) - Security-critical, should be addressed immediately
- Story 1 (.NET 10) - Application framework upgrade, can start in parallel with Strimzi
- Story 3 (Gateway API) - Can run in parallel with .NET 10
- Story 5 (PostgreSQL 18) - Database upgrade, requires careful planning
- Story 4 (Ubuntu 26.04) - Infrastructure foundation, scheduled for later in 2026
Cross-Story Dependencies
Section titled “Cross-Story Dependencies”- Strimzi upgrade is independent and should be prioritized due to security concerns
- .NET 10 and Gateway API can be done in parallel
- PostgreSQL 18 upgrade should coordinate with application upgrades to ensure compatibility
- Ubuntu 26.04 upgrade is scheduled for later and should be tested with all upgraded components
- All changes should be tested together in staging before production rollout