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

docs: add argo workflow example for jobset #612

Merged

Conversation

googs1025
Copy link
Member

Since this PR #594 has been merged and we discussed it in the issue #545, it can now be integrated into argo-workflow. This PR provides some yaml examples for integrating argo workflow

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 1, 2024
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 1, 2024
Copy link

netlify bot commented Jul 1, 2024

Deploy Preview for kubernetes-sigs-jobset canceled.

Name Link
🔨 Latest commit 220e997
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-jobset/deploys/6682504149cc0100082b8aa9

@googs1025
Copy link
Member Author

hi ! @shrinandj maybe you could add more practical use cases

@danielvegamyhre danielvegamyhre self-assigned this Jul 1, 2024
@danielvegamyhre
Copy link
Contributor

This is great! Did you manually test the example and confirm it works as expected?

@googs1025
Copy link
Member Author

googs1025 commented Jul 2, 2024

This is great! Did you manually test the example and confirm it works as expected?

yes, I use the local environment for testing.
we can see more detail : https://argo-workflows.readthedocs.io/en/latest/walk-through/kubernetes-resources/
as follows:

root@VM-0-3-ubuntu:/home/ubuntu/example# kubectl apply -f rbac.yaml
serviceaccount/argo-jobset unchanged
role.rbac.authorization.k8s.io/argo-jobset-role unchanged
rolebinding.rbac.authorization.k8s.io/argo-jobset-binding unchanged

root@VM-0-3-ubuntu:/home/ubuntu/example# kubectl create -f workflow.yaml
workflow.argoproj.io/argo-workflow-jobset-2bxrh created

root@VM-0-3-ubuntu:/home/ubuntu/example# kubectl get workflow -nargo
NAME                         STATUS    AGE   MESSAGE
argo-workflow-jobset-2bxrh   Running   8s

root@VM-0-3-ubuntu:/home/ubuntu/example# kubectl get pods -nargo
NAME                                   READY   STATUS    RESTARTS   AGE
argo-server-8577c7c558-lh6t7           1/1     Running   0          23h
argo-workflow-jobset-2bxrh             1/1     Running   0          18s
httpbin-6c989cbc8c-f86wr               1/1     Running   0          23h
minio-6b665ffb45-gq9n6                 1/1     Running   0          23h
paralleljobs-driver-0-0-s6ztn          1/1     Running   0          16s
paralleljobs-workers-0-0-95g48         1/1     Running   0          16s
paralleljobs-workers-0-1-vlcnq         1/1     Running   0          16s
paralleljobs-workers-0-2-b24kk         1/1     Running   0          16s
paralleljobs-workers-0-3-7qvhs         1/1     Running   0          16s
workflow-controller-76ffbdcf8f-vlwwc   1/1     Running   0          23h

root@VM-0-3-ubuntu:/home/ubuntu/example# kubectl get pods -nargo
NAME                                   READY   STATUS    RESTARTS   AGE
argo-server-8577c7c558-lh6t7           1/1     Running   0          23h
argo-workflow-jobset-2bxrh             1/1     Running   0          71s
httpbin-6c989cbc8c-f86wr               1/1     Running   0          23h
minio-6b665ffb45-gq9n6                 1/1     Running   0          23h
paralleljobs-driver-0-0-s6ztn          1/1     Running   0          69s
paralleljobs-workers-0-0-95g48         1/1     Running   0          69s
paralleljobs-workers-0-1-vlcnq         1/1     Running   0          69s
paralleljobs-workers-0-2-b24kk         1/1     Running   0          69s
paralleljobs-workers-0-3-7qvhs         1/1     Running   0          69s
workflow-controller-76ffbdcf8f-vlwwc   1/1     Running   0          23h

root@VM-0-3-ubuntu:/home/ubuntu/example# kubectl get jobset -nargo
NAME           TERMINALSTATE   RESTARTS   COMPLETED   SUSPENDED   AGE
paralleljobs                                                      99s

root@VM-0-3-ubuntu:/home/ubuntu/example# kubectl get jobset -nargo
NAME           TERMINALSTATE   RESTARTS   COMPLETED   SUSPENDED   AGE
paralleljobs   Completed                  True                    110s

root@VM-0-3-ubuntu:/home/ubuntu/example# kubectl get pods -nargo
NAME                                   READY   STATUS      RESTARTS   AGE
argo-server-8577c7c558-lh6t7           1/1     Running     0          23h
argo-workflow-jobset-2bxrh             0/1     Completed   0          116s
httpbin-6c989cbc8c-f86wr               1/1     Running     0          23h
minio-6b665ffb45-gq9n6                 1/1     Running     0          23h
paralleljobs-driver-0-0-s6ztn          0/1     Completed   0          114s
paralleljobs-workers-0-0-95g48         0/1     Completed   0          114s
paralleljobs-workers-0-1-vlcnq         0/1     Completed   0          114s
paralleljobs-workers-0-2-b24kk         0/1     Completed   0          114s
paralleljobs-workers-0-3-7qvhs         0/1     Completed   0          114s
workflow-controller-76ffbdcf8f-vlwwc   1/1     Running     0          23h

root@VM-0-3-ubuntu:/home/ubuntu/example# kubectl get workflow -nargo
NAME                         STATUS      AGE    MESSAGE
argo-workflow-jobset-2bxrh   Succeeded   2m7s

@danielvegamyhre
Copy link
Contributor

/lgtm
/approve

Thanks!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 2, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: danielvegamyhre, googs1025

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 2, 2024
@k8s-ci-robot k8s-ci-robot merged commit fb65e01 into kubernetes-sigs:main Jul 2, 2024
13 checks passed
@danielvegamyhre danielvegamyhre mentioned this pull request Aug 19, 2024
20 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants