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

DO280-309: IG Tips Unit 3

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Major Major
    • DO280 - OSE 3.0 2 20160126
    • DO280
    • None
    • 3
    • ILT
    • en-US (English)

      URL:
      Reporter RHNID:
      Section: -
      Language: en-US (English)
      Workaround:

      Description: Configuring Resources with the CLI (content, section 2 of unit 3)
      Useful commands
      Add info for oc exec (used in the GE) and also compare to oc rsh

      Managing Security Policies (content, section 3 of unit 3)
      Add demo:
      On master: add a user:
      htpasswd -b /etc/origin/openshift-passwd newuser redhat

      On workstation: have student create a project
      oc whoami
      oc login -u student
      oc new-project demo

      On workstation: change to newuser and try to access the project demo
      oc login -u newuser
      (password)
      oc project demo
      (display permission denied error)

      Grant admin rights to newuser for the project demo
      oadm policy add-role-to-user admin newuser -n demo

      As newuser, switch to the demo project
      oc whoami
      (show that you are newuser or login as needed)
      oc project demo
      oc get all
      Show policy:
      oc describe policyindings :default -n demo

      [All this needs a hands on practice as well,
      either GE or LAB - see DO280-128]

              rht-rsriniva Ravishankar Srinivasan
              lauber Susan Lauber
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: