• Comments
  • Unable to Expose .NET 7 Pods in OpenShift Sandbox

    Posted on

    Hello everyone,

    I'm not sure if this is the appropriate forum for my issue, but if it's not, I'd appreciate guidance on where to seek help.

    I'm currently using OpenShift's sandbox environment, and I'm facing difficulties with exposing .NET 7 pods. The local route from OpenShift to my host machine works perfectly. Interestingly, when I switch from .NET 7 to .NET 6, everything functions as expected.

    Given these circumstances, I suspect the issue is specifically related to .NET 7's compatibility with OpenShift. To further diagnose the problem, I followed this example:
    https://github.com/redhat-developer/s2i-dotnetcore-ex

    After deploying the example in OpenShift and attempting to expose the service, I find that I can't access the route. However, when I modify the app.csproj file and change the target framework from:

    net7.0
    

    to:

    net6.0
    

    everything works as expected.

    I also tried following this tutorial using .NET 7 and encountered the same issue:
    https://cloud.redhat.com/blog/run-.net-7-code-on-red-hat-openshift-container-platform-on-macos

    Is it possible that I've somehow broken my sandbox, or is this an issue related to .NET 7 and OpenShift?

    Thank you for your assistance.

    by

    points

    Responses

    Red Hat
    © 2025 Red Hat, Inc.