Code Monkey home page Code Monkey logo

hera_argo's Introduction

Argo Workflows with Hera

Hera is a Python framework for constructing and submitting Argo Workflows.

This is a tool for Machine Learning engineers to experiment,develop and orchestrate their workflows locally using Python and Argo Workflows

Prerequisites

To run this project, you will need to have the following installed:

Devbox || Docker Desktop


Note

Development environments created by Devbox are isolated and portable. No version conflicts, no need to install anything on your host machine.


Quick Start

 git clone https://github.com/J0hn-B/hera_argo.git && cd hera_argo
# Start a new shell to install the project dependencies
devbox shell
# Deploy and configure Argo Workflows on a local k3d cluster, and get the Argo Workflows UI URL
task deploy

How to use

# Install the project dependencies

cd $PWD/src/mlops && poetry install
# Run the example workflows
 poetry run python main.py
  • Check the src/mlops/main.py file and src/mlops/mlops folder for the example workflows.

image


# Access the k3d cluster using kubectl from another terminal

cd hera_argo && devbox shell
# Deploy a yaml example workflow using argo cli

argo submit --watch src/mlops_yaml/first.yaml
  • Permissions:

    hera_argo/kubernetes/cluster/overlays/k3d/kustomization.yaml
    
    # Resources to apply
    resources:
      ###?  dir contains config files for a service account with custom permissions.    Uncomment to apply/adjust/modify based on your needs.
      #- ../../base
    
      ###? file contains a role binding for the default service account in the argo    namespace with admin permissions. NOT recommended for production use.
      - default_admin.yaml

Clean up

# Delete the cluster
task delete
# Exit the shell
exit
# Clean up packages installed by devbox
nix-collect-garbage

hera_argo's People

Contributors

j0hn-b avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.