daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest Mar 23rd, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. # Create a new project and configure SCCs for istio
  4. #
  5. # The privileged SCC is required to ensure changes to the pod’s
  6. # networking configuration is updated successfully with the
  7. # istio-init initialization container and the anyuid SCC is required
  8. # to enable the sidecar container to run with its required user id of 1337.
  9. # (tested against oc 3.11 - might not work with other versions)
  10.  
  11. if [ $# -eq 0 ]
  12.   then
  13.     echo "What's the name of the project you want to create?"
  14.     exit 1
  15. fi
  16.  
  17. oc new-project $1
  18. oc adm policy add-scc-to-user anyuid -z default -n $1
  19. oc adm policy add-scc-to-user privileged -z default -n $1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top