-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds the ability to run generic (not just python based) services in beta9. For example, you can run a golang webserver. For now, it's restricted to HTTP based applications (or anything that runs over HTTP, like websockets). The model for deployment is mostly the same as the rest of the platform, however deployments are by default unable to scale to zero - for now. There are two modes of operation: 1. Create a `Pod` programmatically: app.py ``` from beta9 import Pod pod = Pod( ports=[8080], entrypoint=["sh", "-c", "python -m http.server 8080"], secrets=["MY_SECRET"], ) pod.create() ``` 2. Via CLI: app.py ``` from beta9 import Pod pod = Pod( ports=[8080], entrypoint=["sh", "-c", "python -m http.server 8080"], secrets=["MY_SECRET"], ) ``` - To run a one-off container: `beta9 run app.py:pod` - To deploy a stateful, scalable set of containers (load balanced behind a common name): `beta9 deploy app.py:pod --name some-pod` --------- Co-authored-by: jsun-m <[email protected]> Co-authored-by: John <[email protected]> Co-authored-by: Luke Lombardi <[email protected]> Co-authored-by: Luke Lombardi <[email protected]> Co-authored-by: Luke Lombardi <[email protected]>
- Loading branch information
1 parent
e116c2b
commit 846607c
Showing
72 changed files
with
4,798 additions
and
1,658 deletions.
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
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 |
---|---|---|
|
@@ -29,3 +29,4 @@ oci* | |
okteto.yaml | ||
.vscode/launch.json | ||
pyrightconfig.json | ||
.go-version |
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
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
Oops, something went wrong.