Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevin-bates/gateway_provisioners
https://github.com/kevin-bates/gateway_provisioners
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kevin-bates/gateway_provisioners
- Owner: kevin-bates
- License: other
- Fork: true (jupyter-server/gateway_provisioners)
- Created: 2022-10-21T19:08:48.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-27T15:14:53.000Z (10 months ago)
- Last Synced: 2024-08-08T18:22:14.601Z (4 months ago)
- Language: Python
- Size: 1020 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-starred - kevin-bates/gateway_provisioners - (others)
README
# Gateway Provisioners
[![Build Status](https://github.com/jupyter-server/gateway_provisioners/actions/workflows/build.yml/badge.svg?query=branch%3Amain++)](https://github.com/jupyter-server/gateway_provisioners/actions/workflows/build.yml/badge.svg?query=branch%3Amain++)
[![Documentation Status](https://readthedocs.org/projects/gateway_provisioners/badge/?version=latest)](https://gateway-provisioners.readthedocs.io/en/latest/?badge=latest)Gateway Provisioners provides [kernel provisioners](https://jupyter-client.readthedocs.io/en/latest/provisioning.html)
that interact with kernels launched into resource-managed clusters or otherwise run remotely from the launching server.
This functionality derives from [Jupyter Enterprise Gateway's](https://github.com/jupyter-server/enterprise_gateway)
_process proxy_ architecture. However, unlike [process proxies](https://jupyter-enterprise-gateway.readthedocs.io/en/latest/contributors/system-architecture.html#process-proxy),
you do not need to use a gateway server to use these provisioners - although, in certain cases,
it is recommended (for example when the launching server does not reside within the same network as the launched kernel).Here is the current set of provisioners provided by this package, many of which have their requirements conditionally
installed:- `KubernetesProvisioner` - Kernels (residing in images) are launched as pods within a Kubernetes cluster
- `pip install gateway_provisioners[k8s]`
- `DockerSwarmProvisioner` - Kernels (residing in images) are launched as containers within a DockerSwarm cluster
- `DockerProvisioner` - Kernels (residing in images) are launched as containers on the local server
- `pip install gateway_provisioners[docker]`
- `YarnProvisioner` - Kernels are launched into a Hadoop YARN cluster (primarily Spark)
- `pip install gateway_provisioners[yarn]`
- `DistributedProvisioner` - Kernels are launched across a set of hosts using SSH, round-robin
- `pip install gateway_provisioners`This package also includes command-line utilities that can be used to create kernel specifications or inject bootstrap
files into docker images relative to the desired provisioner:- `jupyter-k8s-spec` - for building kernel specifications relative to the `KubernetesProvisioner`
- `jupyter-docker-spec` - for building kernel specifications relative to `DockerProvisioner` and `DockerSwarmProvisioner`
- `jupyter-yarn-spec` - for building kernel specifications relative to the `YarnProvisioner`
- `jupyter-ssh-spec` - for building kernel specifications relative to the `DistributedProvisioner`
- `jupyter-image-bootstrap` - for injecting bootstrap support when building kernel-based images**Note:** The container-based provisioners (`KubernetesProvisioner`, `DockerSwarmProvisioner`, and `DockerProvisioner`)
require that the hosting server also be running within the same environment/network. As a result, these provisioners
may be better suited for use by a Gateway Server (e.g., [Jupyter Kernel Gateway](https://github.com/jupyter-server/kernel_gateway))
so as to not require the Notebook/Lab server also be deployed in a container.______________________________________________________________________
## Installation
Detailed deployment instructions are located in the
[Operators Guide](https://gateway-provisioners.readthedocs.io/en/latest/operators/index.html)
of the project docs. Here's a quick start using `pip`:```bash
# install from pypi
pip install --upgrade gateway-provisioners# options for the command-line utilities can be viewed using '--help-all'
jupyter yarn-spec install --help-all# run it with default options to install a Python-based kernelspec for Hadoop Yarn
jupyter yarn-spec install
```## Contributing
The [Contribution page](https://gateway-provisioners.readthedocs.io/en/latest/contributors/contrib.html) includes
information about how to contribute to Gateway Provisioners. We encourage you to explore the other topics in our
[Contributors Guide](https://gateway-provisioners.readthedocs.io/en/latest/contributors/index.html)
like how to [set up a development environment](https://gateway-provisioners.readthedocs.io/en/latest/contributors/devinstall.html),
or gaining an understanding of the [system architecture](https://gateway-provisioners.readthedocs.io/en/latest/contributors/system-architecture.html),
among other things.