Skip to content

Infrastructure and Platform Upgrades

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

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

Phase 1: KalmarEnergi Core (Shared Library)

  1. KalmarEnergi Core solution upgraded to .NET 10
  2. All .csproj files in KalmarEnergi Core updated to target net10.0 framework
  3. NuGet package dependencies in KalmarEnergi Core updated to .NET 10 compatible versions
  4. All unit tests for KalmarEnergi Core pass on .NET 10
  5. Integration tests for KalmarEnergi Core pass
  6. KalmarEnergi Core NuGet package published to package registry
  7. 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

Phase 1: KalmarEnergi Core (Shared Library)

  1. Update development environment to .NET 10 SDK
  2. Create feature branch for KalmarEnergi Core upgrade
  3. Update all .csproj files in KalmarEnergi Core: <TargetFramework>net10.0</TargetFramework>
  4. Update NuGet packages to .NET 10 compatible versions
  5. Update CI/CD pipeline for KalmarEnergi Core to use .NET 10 SDK
  6. Build and publish KalmarEnergi Core NuGet package
  7. Document lessons learned and upgrade process

Phase 2: KalmarEnergi API

  1. Create feature branch for KalmarEnergi API upgrade
  2. Update all .csproj files in KalmarEnergi API: <TargetFramework>net10.0</TargetFramework>
  3. Update reference to KalmarEnergi Core package (new .NET 10 version)
  4. Update NuGet packages to .NET 10 compatible versions
  5. Update CI/CD pipeline for KalmarEnergi API to use .NET 10 SDK
  6. Deploy to development environment and test
  7. Deploy to production with monitoring
  8. Document API-specific considerations
  • .NET 10 SDK availability in CI/CD infrastructure
  • Container registry access for new base images
  • Staging environment for testing

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

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
  • 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
  1. Install Gateway API CRDs in RKE2 Kubernetes clusters
  2. Deploy Gateway controller compatible with RKE2 (e.g., NGINX Gateway, Traefik)
  3. Create Gateway resources for external traffic
  4. Convert Ingress manifests to HTTPRoute resources
  5. Configure TLS certificates on Gateway
  6. Test all application routes and endpoints
  7. Update Helm charts to use Gateway API resources
  8. Update CI/CD to deploy Gateway API resources
  9. Monitor traffic patterns after migration
  10. Remove old Ingress resources after validation
  11. Verify compatibility with RKE2 networking (Canal/Calico)
  • 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: 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

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
  1. CrunchyData Postgres Operator upgraded to latest version
  2. PostgreSQL upgraded to version 18 in all environments (dev, staging, production)
  3. All database schemas and data migrated successfully
  4. Zero data loss during upgrade process
  5. All applications verified working with PostgreSQL 18
  6. Backup and restore procedures tested and verified
  7. Monitoring and alerting functional for new version
  8. Performance benchmarks meet or exceed previous version
  9. High availability and replication working correctly
  10. Connection pooling (PgBouncer) compatible with PostgreSQL 18
  11. Documentation updated with PostgreSQL 18 specifics
  1. Review CrunchyData Postgres Operator release notes and PostgreSQL 18 changes
  2. Backup all databases before upgrade
  3. Test upgrade in isolated development environment
  4. Verify application compatibility with PostgreSQL 18
  5. Update Helm charts for CrunchyData Postgres Operator
  6. Plan upgrade strategy (in-place vs blue-green deployment)
  7. Upgrade operator in development environment
  8. Perform PostgreSQL major version upgrade (pg_upgrade or logical replication)
  9. Test all database operations and queries
  10. Verify replication and high availability
  11. Update connection strings and configurations if needed
  12. Upgrade staging environment
  13. Run full regression tests
  14. Schedule production upgrade maintenance window
  15. Upgrade production databases with rollback plan ready
  16. Monitor database performance post-upgrade
  17. Update documentation and runbooks
  • 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: 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


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

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)
  • 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
  1. Audit current server inventory and OS versions
  2. Test Ubuntu 26.04 upgrade in non-production environment
  3. Document upgrade procedure and rollback plan
  4. Backup critical data and configurations
  5. Schedule maintenance windows for each server group
  6. Upgrade storage nodes first (one at a time)
  7. Upgrade Kafka nodes sequentially
  8. Upgrade application nodes
  9. Upgrade master nodes (one at a time, maintain quorum)
  10. Verify RKE2 compatibility with Ubuntu 26.04
  11. Update system packages and kernel
  12. Test application functionality after each upgrade
  13. Update monitoring dashboards and alerts
  • Ubuntu 26.04 ISO images or repositories
  • RKE2 compatibility with Ubuntu 26.04
  • Backup infrastructure for data protection
  • Maintenance window approvals

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


  1. Story 2 (Strimzi v0.50) - Security-critical, should be addressed immediately
  2. Story 1 (.NET 10) - Application framework upgrade, can start in parallel with Strimzi
  3. Story 3 (Gateway API) - Can run in parallel with .NET 10
  4. Story 5 (PostgreSQL 18) - Database upgrade, requires careful planning
  5. Story 4 (Ubuntu 26.04) - Infrastructure foundation, scheduled for later in 2026
  • 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