Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # 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 ]
- then
- echo "What's the name of the project you want to create?"
- exit 1
- fi
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement