Skip to content

Commit 20baf5d

Browse files
Merge pull request #189 from volcano-sh/copilot/add-installation-guide-readme
Add installation guide to README and restructure contributing documentation
2 parents 81a4cd8 + deb2d29 commit 20baf5d

File tree

2 files changed

+58
-16
lines changed

2 files changed

+58
-16
lines changed

CONTRIBUTING.md

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,35 @@ There are various ways in which you can contribute to this project such as `upda
66

77
When making any critical change to this repository, please first discuss the change you wish to make via issue, email, or any other method with the [owners](https://github.com/volcano-sh/dashboard/blob/main/OWNERS) of this repository before making a change.
88

9-
## Getting Started
10-
11-
Make sure [`node.js`](https://nodejs.org/en/download) is installed on your system and we prefer [`visual-studio-code`](https://code.visualstudio.com/download) as IDE.
9+
## Before You Get Started
1210

1311
### Prerequisites
1412

15-
Please follow the [guide](https://github.com/volcano-sh/volcano#quick-start-guide) to install volcano first.
13+
To contribute to the volcano dashboard project, you need:
1614

17-
### Install volcano dashboard
15+
- [`node.js`](https://nodejs.org/en/download) installed on your system
16+
- A running Kubernetes cluster with [Volcano](https://github.com/volcano-sh/volcano#quick-start-guide) installed
17+
- Volcano dashboard deployed (see [Installation Guide](README.md#installation) in the main README)
1818

19-
Login one node of your kubernetes cluster and execute the following command to install volcano dashboard.
19+
## Your First Contribution
2020

21-
```bash
22-
kubectl create ns volcano-system
21+
We are always in need of help, be it fixing documentation, reporting bugs, or writing code. Look at places where you feel best coding practices aren't followed, code refactoring is needed, or tests are missing.
2322

24-
kubectl apply -f https://raw.githubusercontent.com/volcano-sh/dashboard/main/deployment/volcano-dashboard.yaml
25-
```
23+
### Find Something to Work On
2624

27-
Then use the following command to map the traffic to node.
25+
Check out the [issues](https://github.com/volcano-sh/dashboard/issues) in this repository. Issues labeled [good first issue](https://github.com/volcano-sh/dashboard/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) are great starting points for new contributors.
2826

29-
```bash
30-
kubectl port-forward svc/volcano-dashboard 8080:80 -n volcano-system --address 0.0.0.0
31-
```
27+
### Work on an Issue
3228

33-
Access the dashboard by navigate to `http://$YOUR_NODE_IP:8080` in your browser.
29+
When you are willing to take on an issue, you can assign it to yourself. Just reply with `/assign` or `/assign @yourself` on an issue, and the robot will assign the issue to you.
3430

35-
If running locally navigate to `http://localhost:8080`
31+
### File an Issue
32+
33+
While we encourage everyone to contribute code, it is also appreciated when someone reports an issue.
34+
35+
Please follow the prompted submission guidelines while opening an issue.
36+
37+
## Contributor Workflow
3638

3739
### Development
3840

@@ -139,3 +141,10 @@ git commit --amend -s
139141
```bash
140142
git push origin <your-branch>
141143
```
144+
145+
4. Create a pull request
146+
147+
Submit a pull request to the [volcano-sh/dashboard](https://github.com/volcano-sh/dashboard) repository. The PR should:
148+
- Have a clear and descriptive title
149+
- Include a detailed description of the changes
150+
- Reference any related issues

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,39 @@ The volcano dashboard provides a basic dashboard that can be easily deployed in
1010

1111
You can follow the [design doc](docs/design.md) to learn more about the design details.
1212

13+
## Installation
14+
15+
### Prerequisites
16+
17+
Before installing the volcano dashboard, please ensure you have:
18+
- A running Kubernetes cluster
19+
- `kubectl` configured to access your cluster
20+
- Volcano installed on your cluster (follow the [Volcano Quick Start Guide](https://github.com/volcano-sh/volcano#quick-start-guide))
21+
22+
### Install Volcano Dashboard
23+
24+
1. Create the volcano-system namespace (if it doesn't exist):
25+
26+
```bash
27+
kubectl create ns volcano-system
28+
```
29+
30+
2. Deploy the volcano dashboard:
31+
32+
```bash
33+
kubectl apply -f https://raw.githubusercontent.com/volcano-sh/dashboard/main/deployment/volcano-dashboard.yaml
34+
```
35+
36+
3. Access the dashboard by port-forwarding the service:
37+
38+
```bash
39+
kubectl port-forward svc/volcano-dashboard 8080:80 -n volcano-system --address 0.0.0.0
40+
```
41+
42+
4. Open your browser and navigate to:
43+
- For local access: `http://localhost:8080`
44+
- For remote access: `http://<NODE_IP>:8080` (replace `<NODE_IP>` with your Kubernetes node's IP address)
45+
1346
## Contributing
1447

1548
You can follow our [CONTRIBUTING.md](CONTRIBUTING.md).

0 commit comments

Comments
 (0)