You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Welcome to the GitHub repository for Volcano's public website. The docs are
6
6
hosted at https://volcano.sh.
7
7
@@ -11,7 +11,7 @@ is an open-source static site generator that provides us with templates, content
11
11
organisation in a standard directory structure, and a website generation engine.
12
12
You write the pages in Markdown, and Hugo wraps them up into a website.
13
13
14
-
* Please see [How to contributing](https://github.com/volcano-sh/volcano/blob/master/contribute.md) for instructions on how to contribute, if you are not familiar with the
14
+
* Please see [How to contribute](https://github.com/volcano-sh/volcano/blob/master/contribute.md) for instructions on how to contribute, if you are not familiar with the
15
15
GitHub workflow
16
16
17
17
## Quickstart
@@ -21,19 +21,19 @@ GitHub workflow and you're happy to use the automated preview of your doc
21
21
updates:
22
22
23
23
1. Fork the repo on GitHub.
24
-
1. Make your changes and send a pull request (PR).
25
-
1. If you're not yet ready for a review, add a comment to the PR saying it's a
26
-
work in progress or add `[WIP]` in your PRs title. You can also add `/hold` in a comment to mark the PR as not
27
-
ready for merge. (**Don't** add the Hugo declarative "draft = true" to the
28
-
page front matter, because that will prevent the auto-deployment of the
29
-
content preview described in the next point.)
30
-
1. Wait for the automated PR workflow to do some checks. When it's ready,
31
-
you should see a comment like this: **deploy/netlify — Deploy preview ready!**
32
-
1. Click **Details** to the right of "Deploy preview ready" to see a preview
33
-
of your updates.
34
-
1. Continue updating your doc until you're happy with it.
35
-
1. When you're ready for a review, add a comment to the PR and assign a
36
-
reviewer/approver.
24
+
2. Make your changes and send a pull request (PR).
25
+
3. If you're not yet ready for a review, add a comment to the PR saying it's a
26
+
work in progress or add `[WIP]` in your PRs title. You can also add `/hold` in a comment to mark the PR as not
27
+
ready for merge. (**Don't** add the Hugo declarative "draft = true" to the
28
+
page front matter, because that will prevent the auto-deployment of the
29
+
content preview described in the next point.)
30
+
4. Wait for the automated PR workflow to do some checks. When it's ready,
31
+
you should see a comment like this: **deploy/netlify — Deploy preview ready!**
32
+
5. Click **Details** to the right of "Deploy preview ready" to see a preview
33
+
of your updates.
34
+
6. Continue updating your doc until you're happy with it.
35
+
7. When you're ready for a review, add a comment to the PR and assign a
36
+
reviewer/approver.
37
37
38
38
## Previewing your changes on a local website server
39
39
@@ -46,7 +46,7 @@ See the [Hugo installation guide][hugo-install]. Here are some examples:
46
46
47
47
#### Mac OS X:
48
48
49
-
```
49
+
```bash
50
50
brew install hugo
51
51
```
52
52
@@ -55,17 +55,17 @@ brew install hugo
55
55
1. Download the Debian package from the [Hugo website][hugo-install].
56
56
Make sure to install the Hugo version specified by the `HUGO_VERSION` environment variable in the [`netlify.toml`](netlify.toml#L6) file.
57
57
For example, [hugo_0.57.2_Linux-64bit.deb][hugo_0.57.2_Linux-64bit.deb].
58
-
1. Install the package using `dpkg`:
58
+
2. Install the package using `dpkg`:
59
59
60
-
```
61
-
sudo dpkg -i hugo_0.57.2_Linux-64bit.deb
62
-
```
60
+
```bash
61
+
sudo dpkg -i hugo_0.57.2_Linux-64bit.deb
62
+
```
63
63
64
-
1. Verify your installation:
64
+
3. Verify your installation:
65
65
66
-
```
67
-
hugo version
68
-
```
66
+
```bash
67
+
hugo version
68
+
```
69
69
70
70
### Run a local website server
71
71
@@ -74,33 +74,34 @@ local machine, then use your local repo as input to your Hugo web server:
74
74
75
75
1. Ensure you are in your target branch:
76
76
77
-
```
78
-
git branch
79
-
```
77
+
```bash
78
+
git branch
79
+
```
80
80
81
-
1. Start your website server. Make sure you run this command from the
81
+
2. Start your website server. Make sure you run this command from the
82
82
`/website/` directory, so that Hugo can find the config files it needs:
83
83
84
-
```
85
-
hugo server -D
86
-
```
84
+
```bash
85
+
hugo server -D
86
+
```
87
87
88
-
1. Your website is at [http://localhost:1313/](http://localhost:1313/).
88
+
3. Your website is at [http://localhost:1313/](http://localhost:1313/).
89
89
90
-
1. Continue with the usual GitHub workflow to edit files, commit them, push the
91
-
changes up to your fork, and create a pull request. (See the GitHub workflow)
90
+
4. Continue with the usual GitHub workflow to edit files, commit them, push the
91
+
changes up to your fork, and create a pull request. See [GitHub's documentation on creating pull requests](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork) for more details.
92
92
93
-
1. While making the changes, you can preview them on your local version of the
94
-
website at [http://localhost:1313/](http://localhost:1313/). Note that if you
95
-
have more than one local git branch, when you switch between git branches the
96
-
local website reflects the files in the current branch.
93
+
5. While making the changes, you can preview them on your local version of the
94
+
website at [http://localhost:1313/](http://localhost:1313/). Note that if you
95
+
have more than one local git branch, when you switch between git branches the
96
+
local website reflects the files in the current branch.
When a user creates a job, if there is no `PriorityClassName` specified in the template of the task, the task will use the `PriorityClassName` specified by the job. The user can specify `PriorityClassName` in each task's template to override the configuration of job, so that priority can be configured separately for each task.
14
+
15
+
## Key Points
16
+
- If the task does not specify `PriorityClassName` but the job does, the task will use the job's PriorityClass, and the `PreemptionPolicy` and priority value will also be the same as the job.
17
+
- When user needs to allow task in job to preempt other tasks if the resources are insufficient, a separate `PriorityClassName` must be set in the task's template, and **it is important to note that if there are multiple tasks that need to be set to different priorities, then user need to set the `PriorityClassName` for all of them**, otherwise the task that does not specify `PriorityClassName` will use the PriorityClass of the job it belongs to.
18
+
19
+
## Example
20
+
```yaml
21
+
apiVersion: scheduling.k8s.io/v1
22
+
kind: PriorityClass
23
+
metadata:
24
+
name: job-priority
25
+
value: 1
26
+
preemptionPolicy: Never
27
+
---
28
+
apiVersion: scheduling.k8s.io/v1
29
+
kind: PriorityClass
30
+
metadata:
31
+
name: task-priority
32
+
value: 10
33
+
---
34
+
apiVersion: batch.volcano.sh/v1alpha1
35
+
kind: Job
36
+
metadata:
37
+
name: job
38
+
spec:
39
+
schedulerName: volcano
40
+
priorityClassName: job-priority
41
+
minAvailable: 1
42
+
tasks:
43
+
- replicas: 1
44
+
name: preempt-task
45
+
template:
46
+
spec:
47
+
priorityClassName: task-priority # The priorityclass is specified individually for this task
48
+
containers:
49
+
- image: alpine
50
+
command: ["/bin/sh", "-c", "sleep 1000"]
51
+
name: preempt
52
+
resources:
53
+
requests:
54
+
cpu: 1
55
+
- replicas: 1
56
+
name: non-preempt-task # This task does not specify PriorityClassName, so it will use the "job-priority" priorityclass specified by job
0 commit comments