-
Notifications
You must be signed in to change notification settings - Fork 984
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2339 from BoCloud/jobflow-desgin
add jobflow desgin docs
- Loading branch information
Showing
9 changed files
with
582 additions
and
0 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
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,22 @@ | ||
apiVersion: flow.volcano.sh/v1alpha1 | ||
kind: JobFlow | ||
metadata: | ||
name: test | ||
namespace: default | ||
spec: | ||
jobRetainPolicy: delete # After jobflow runs, keep the generated job. Otherwise, delete it. | ||
flows: | ||
- name: a | ||
- name: b | ||
dependsOn: | ||
targets: ['a'] | ||
- name: c | ||
dependsOn: | ||
targets: ['b'] | ||
- name: d | ||
dependsOn: | ||
targets: ['b'] | ||
- name: e | ||
dependsOn: | ||
targets: ['c','d'] | ||
|
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,184 @@ | ||
apiVersion: flow.volcano.sh/v1alpha1 | ||
kind: JobTemplate | ||
metadata: | ||
name: a | ||
spec: | ||
minAvailable: 1 | ||
schedulerName: volcano | ||
priorityClassName: high-priority | ||
policies: | ||
- event: PodEvicted | ||
action: RestartJob | ||
plugins: | ||
ssh: [] | ||
env: [] | ||
svc: [] | ||
maxRetry: 5 | ||
queue: default | ||
tasks: | ||
- replicas: 1 | ||
name: "default-nginx" | ||
template: | ||
metadata: | ||
name: web | ||
spec: | ||
containers: | ||
- image: nginx:1.14.2 | ||
command: | ||
- sh | ||
- -c | ||
- sleep 10s | ||
imagePullPolicy: IfNotPresent | ||
name: nginx | ||
resources: | ||
requests: | ||
cpu: "1" | ||
restartPolicy: OnFailure | ||
--- | ||
apiVersion: flow.volcano.sh/v1alpha1 | ||
kind: JobTemplate | ||
metadata: | ||
name: b | ||
spec: | ||
minAvailable: 1 | ||
schedulerName: volcano | ||
priorityClassName: high-priority | ||
policies: | ||
- event: PodEvicted | ||
action: RestartJob | ||
plugins: | ||
ssh: [] | ||
env: [] | ||
svc: [] | ||
maxRetry: 5 | ||
queue: default | ||
tasks: | ||
- replicas: 1 | ||
name: "default-nginx" | ||
template: | ||
metadata: | ||
name: web | ||
spec: | ||
containers: | ||
- image: nginx:1.14.2 | ||
command: | ||
- sh | ||
- -c | ||
- sleep 10s | ||
imagePullPolicy: IfNotPresent | ||
name: nginx | ||
resources: | ||
requests: | ||
cpu: "1" | ||
restartPolicy: OnFailure | ||
--- | ||
apiVersion: flow.volcano.sh/v1alpha1 | ||
kind: JobTemplate | ||
metadata: | ||
name: c | ||
spec: | ||
minAvailable: 1 | ||
schedulerName: volcano | ||
priorityClassName: high-priority | ||
policies: | ||
- event: PodEvicted | ||
action: RestartJob | ||
plugins: | ||
ssh: [] | ||
env: [] | ||
svc: [] | ||
maxRetry: 5 | ||
queue: default | ||
tasks: | ||
- replicas: 1 | ||
name: "default-nginx" | ||
template: | ||
metadata: | ||
name: web | ||
spec: | ||
containers: | ||
- image: nginx:1.14.2 | ||
command: | ||
- sh | ||
- -c | ||
- sleep 10s | ||
imagePullPolicy: IfNotPresent | ||
name: nginx | ||
resources: | ||
requests: | ||
cpu: "1" | ||
restartPolicy: OnFailure | ||
--- | ||
apiVersion: flow.volcano.sh/v1alpha1 | ||
kind: JobTemplate | ||
metadata: | ||
name: d | ||
spec: | ||
minAvailable: 1 | ||
schedulerName: volcano | ||
priorityClassName: high-priority | ||
policies: | ||
- event: PodEvicted | ||
action: RestartJob | ||
plugins: | ||
ssh: [] | ||
env: [] | ||
svc: [] | ||
maxRetry: 5 | ||
queue: default | ||
tasks: | ||
- replicas: 1 | ||
name: "default-nginx" | ||
template: | ||
metadata: | ||
name: web | ||
spec: | ||
containers: | ||
- image: nginx:1.14.2 | ||
command: | ||
- sh | ||
- -c | ||
- sleep 10s | ||
imagePullPolicy: IfNotPresent | ||
name: nginx | ||
resources: | ||
requests: | ||
cpu: "1" | ||
restartPolicy: OnFailure | ||
--- | ||
apiVersion: flow.volcano.sh/v1alpha1 | ||
kind: JobTemplate | ||
metadata: | ||
name: e | ||
spec: | ||
minAvailable: 1 | ||
schedulerName: volcano | ||
priorityClassName: high-priority | ||
policies: | ||
- event: PodEvicted | ||
action: RestartJob | ||
plugins: | ||
ssh: [] | ||
env: [] | ||
svc: [] | ||
maxRetry: 5 | ||
queue: default | ||
tasks: | ||
- replicas: 1 | ||
name: "default-nginx" | ||
template: | ||
metadata: | ||
name: web | ||
spec: | ||
containers: | ||
- image: nginx:1.14.2 | ||
command: | ||
- sh | ||
- -c | ||
- sleep 10s | ||
imagePullPolicy: IfNotPresent | ||
name: nginx | ||
resources: | ||
requests: | ||
cpu: "1" | ||
restartPolicy: OnFailure |