-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f28e7d9
commit d34c484
Showing
4 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## Creating Namespace and Roles | ||
|
||
`calrissian` executes CWL workflows by running steps as Pods in a kubernetes cluster. | ||
|
||
To support this requirement, we create a role with the necessary privileges and bind it to a service account. | ||
|
||
### Create the Namespace | ||
|
||
``` | ||
NAMESPACE_NAME=calrissian-demo-project | ||
kubectl create namespace "$NAMESPACE_NAME" | ||
``` | ||
|
||
### Create the Roles and RoleBindings | ||
|
||
``` | ||
kubectl --namespace="$NAMESPACE_NAME" create role pod-manager-role \ | ||
--verb=create,patch,delete,list,watch --resource=pods | ||
kubectl --namespace="$NAMESPACE_NAME" create role log-reader-role \ | ||
--verb=get,list --resource=pods/log | ||
kubectl --namespace="$NAMESPACE_NAME" create rolebinding pod-manager-default-binding \ | ||
--role=pod-manager-role --serviceaccount=${NAMESPACE_NAME}:default | ||
kubectl --namespace="$NAMESPACE_NAME" create rolebinding log-reader-default-binding \ | ||
--role=log-reader-role --serviceaccount=${NAMESPACE_NAME}:default | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters