Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugins or command snippets #20

Open
vsoch opened this issue Aug 1, 2024 · 0 comments
Open

plugins or command snippets #20

vsoch opened this issue Aug 1, 2024 · 0 comments

Comments

@vsoch
Copy link
Member

vsoch commented Aug 1, 2024

support for custom (commonly used) snippets

As part of work for usernetes, I am also anticipating wanting to make plugins or "ready to go" additions you can add on to a particular instance. For example, to make an instance "kubernetes ready" we would need to manually put all the commands in some bash script before using kubectl. If we are going to expose those easily to the user to interact with, we'd do better off having the tool set it up for is.
Something like:

groups:
 - name: ml-work
   resources: ml-group
   tasks:

   - name: start
     plugins: [start-usernetes]
     command: kubectl apply -f ./database.yaml

   - name: train
     depends_on: ["start"]
     replicas: 100
     resources: single-node
     command:
      - bash
      - -c
      - |
        ml-train ... -o train.json
        compspec save-artifact ./train.json --host http://localhost:8080

  - name: delete
    depends_on: ["test"]
    plugins: [stop-usernetes]
    command: kubectl delete -f ./database.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant