-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* few improvement changes for eks * minor changes to plugin * plugin improvement for k8s * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * minor code changes MANIFEST.in * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * minor pre-commit changes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
d990e89
commit c823b81
Showing
13 changed files
with
100 additions
and
82 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,3 +119,4 @@ ipython_config.py | |
*.terraform.lock.hcl | ||
covalent-eks-cluster_config | ||
*.tfvars | ||
!default.tfvars |
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
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
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,10 @@ | ||
name = "covalent-eks" | ||
aws_region = "us-east-1" | ||
aws_ecr_repo = "covalent-eks-task" | ||
aws_s3_bucket = "covalent-eks-task" | ||
vpc_cidr = "10.0.0.0/16" | ||
instance_types = ["t2.medium"] | ||
disk_size = 8 | ||
min_size = 1 | ||
max_size = 6 | ||
desired_size = 2 |
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.
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
covalent>=0.232.0 | ||
docker>=6.0.0 | ||
kubernetes>=24.2.0 | ||
docker>=7.0.0 | ||
kubernetes>=29.0.0 |
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,31 @@ | ||
import covalent as ct | ||
|
||
from covalent_kubernetes_plugin.k8s import KubernetesExecutor | ||
|
||
local_k8s_executor = KubernetesExecutor( | ||
k8s_context="minikube", vcpu="100m", memory="500Mi", data_store="/tmp" | ||
) | ||
|
||
|
||
# Run on a local cluster | ||
@ct.electron(executor=local_k8s_executor) | ||
def join_words(a, b): | ||
return ", ".join([a, b]) | ||
|
||
|
||
# Run on the cloud | ||
@ct.electron(executor=local_k8s_executor) | ||
def excitement(a): | ||
return f"{a}!" | ||
|
||
|
||
# Construct a workflow | ||
@ct.lattice | ||
def simple_workflow(a, b): | ||
phrase = join_words(a, b) | ||
return excitement(phrase) | ||
|
||
|
||
# Dispatch the workflow | ||
dispatch_id = ct.dispatch(simple_workflow)("Hello", "World") | ||
print(dispatch_id) |