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

DO280: ch04s04 - Update oc rsh to oc exec for pod command execution - RHT2533720

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • DO280 - RHOCP4.18-en-1-20251205
    • DO280
    • None
    • False
    • Hide

      None

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

      URL: ch04s04
      Reporter RHNID: szymcto
      Section title: Guided Exercise: Configure Network Policies
      Language: English

      Issue description

      Instead of command:
      [student@workstation ~]$ oc rsh test-c4d74c9d5-5pq9s \
      curl 10.8.0.13:8080 | grep Hello
      Hello, world from nginx!

      we can use:
      [student@workstation ~]$ oc exec test-c4d74c9d5-5pq9s -it
      curl 10.8.0.13:8080 | grep Hello

      Using rsh shell session may be simpler to write, but also results in an unnecessary load. 

       

              gls-curriculum-ocp-core@redhat.com PTL - OCP Platform Team
              carias@redhat.com Carlos Arias
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: