Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-14799

DO316-4.16: ch03s06: network-external: Network Policies affect pod to pod communication within the cluster but They don't affect the ingress controller traffic

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • DO316 - OCP4.16-en-3-20250110
    • DO316
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • 3
    • en-US (English)

      Please fill in the following information:


      URL: https://role.rhu.redhat.com/rol-rhu/app/courses/do316-4.16/pages/ch03s06 
      Reporter RHNID:  fharo@redhat.com 
      Section Title:         Guided Exercise: Configure External Access to a Virtual Machine                                                                

      Issue description: 

      Network Policies affect pod to pod communication within the cluster. They don't affect the ingress controller traffic which is what hitting the route would do. So for ch3 3.6 section it should still
      get a response when hitting the route, and not a timeout.

      So this:
      [student@workstation ~]$ oc rsh $PODNAME curl --max-time 5 \
       hello-web-web-servers.apps.ocp4.example.com | grep Welcome
      command terminated with exit code 28

      should change to this:
      [student@workstation ~]$ oc rsh $PODNAME curl --max-time 5 \
       hello-web-web-servers.apps.ocp4.example.com | grep Welcome

      Hello, World! Welcome to Red Hat Training.

      The latter is what I am getting after creating the NetworkPolicy and I hit the route. The other
      two svc ClusterIP and vmi IP get the timeout as expected. 

       

       

      Steps to reproduce:

       

      Workaround:

       

      Expected result:

              rhn-support-fandrieu Francois Andrieu
              chetan-rhls Chetan Tiwary
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: