CWL runner for Kubernetes
Project description
calrissian
CWL on Kubernetes
Overview
Calrissian is a CWL implementation designed to run individual steps as Pods in a kubernetes cluster
It is in development and includes a simple workflow (revsort single / array) to reverse and sort the contents of text files.
Preparing Openshift
The openshift/ directory contains YAML files that demonstrate the basic functionality. To configure Openshift, do the following:
-
Create a project in openshift (e.g.
calrissian). Note that namespaces must be unique, so ifcalrissianis already in use on the cluster, you will need to choose a different name here and other places where the namespace is referenced.oc new-project calrissian -
Create a role in your project to allow managing
Pods:oc create role pod-manager-role --verb=create,delete,list,watch --resource=pods -
Bind your project's default service account access to these roles. Calrissian running inside the cluster will use this service account to make Kubernetes API calls.
oc create rolebinding pod-manager-default-binding --role=pod-manager-role --serviceaccount=calrissian:default -
Create the BuildConfig - this allows Openshift to build the source code into a Docker image and starts a build automatically. If you wish to build a different branch or repo, edit this file.
oc create -f openshift/BuildConfig.yaml -
Create the VolumeClaims - these are the storage locations that will be shared between pods, and must support read-write many access.
oc create -f openshift/VolumeClaims.yaml
Running the example
With the VolumeClaims and Build processes in place, you can run the example with 2 jobs. These jobs use the docker image built by the BuildConfig, so they cannot be run until the build completes.
-
Stage the input data and workflow onto the
input-datavolume with the StageInputDataJob.oc create -f openshift/StageInputDataJob.yaml -
Run the workflow engine with the CalrissianJob
oc create -f openshift/CalrissianJob-revsort.yaml -
Job pods can be monitored from the openshift web interface or via command-line
oc logs -f job/calrissian-revsort-array
Notes
- Calrissian will delete completed jobs for individual steps, but you may want to delete the
calrissian-revsort-arrayjob manually after running it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file calrissian-0.2.1-py3.6.egg.
File metadata
- Download URL: calrissian-0.2.1-py3.6.egg
- Upload date:
- Size: 31.3 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
030707eb48fdd71d52b67d462585853b1aedcd1c3c8d2e07ced1198bdcb81dc8
|
|
| MD5 |
b33dbc0f4ab1f727bbf2bcfeff85aaf3
|
|
| BLAKE2b-256 |
1008be4a09623720166924ea9e1992cddeb928d54710c06979e0c248abb6b7a8
|
File details
Details for the file calrissian-0.2.1-py2.py3-none-any.whl.
File metadata
- Download URL: calrissian-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5e168af1d90404506178d3e6dcf39607862362f41eaa031d62963f22911e2b6
|
|
| MD5 |
6a09f6748a97ba37a2605f399a53a0ee
|
|
| BLAKE2b-256 |
bff009c1a7affbcab4dd1c0647e68a15f23d2e1919e82aa97c7df8928be1d578
|