a guest Mar 23rd, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- # Create a new project and configure SCCs for istio
- # The privileged SCC is required to ensure changes to the pod’s
- # networking configuration is updated successfully with the
- # istio-init initialization container and the anyuid SCC is required
- # to enable the sidecar container to run with its required user id of 1337.
- # (tested against oc 3.11 - might not work with other versions)
- if [ $# -eq 0 ]
- echo "What's the name of the project you want to create?"
- exit 1
- oc new-project $1
- oc adm policy add-scc-to-user anyuid -z default -n $1
- oc adm policy add-scc-to-user privileged -z default -n $1
RAW Paste Data