Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.

Commit c559b69

Browse files
committed
Update doc & deployment.
Signed-off-by: Da K. Ma <[email protected]>
1 parent a369ac5 commit c559b69

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

config/crds/scheduling_v1alpha1_podgroup.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ spec:
2222
minMember:
2323
format: int32
2424
type: integer
25+
queue:
26+
type: string
27+
priorityClassName:
28+
type: string
2529
type: object
2630
status:
2731
properties:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: scheduling.incubator.k8s.io/v1alpha1
2+
kind: Queue
3+
metadata:
4+
name: default
5+
spec:
6+
weight: 1

deployment/kube-batch/templates/scheduling_v1alpha1_podgroup.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ spec:
1919
type: object
2020
spec:
2121
properties:
22-
numMember:
22+
minMember:
2323
format: int32
2424
type: integer
25+
queue:
26+
type: string
27+
priorityClassName:
28+
type: string
2529
type: object
2630
status:
2731
properties:

doc/usage/tutorial.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ To run `kube-batch`, a Kubernetes cluster must start up. Here is a document on [
1111

1212
### (1) kube-batch image
1313

14-
An official kube-batch image is provided and you can download it from [DockerHub](https://hub.docker.com/r/kubesigs/kube-batch/). The version is `v0.4` now.
14+
An official kube-batch image is provided and you can download it from [DockerHub](https://hub.docker.com/r/kubesigs/kube-batch/). The version is `v0.4.1` now.
1515

1616
```bash
17-
# docker pull kubesigs/kube-batch:v0.4
17+
# docker pull kubesigs/kube-batch:v0.4.1
1818
```
1919

2020
### (2) Create a Kubernetes Deployment for kube-batch
@@ -40,7 +40,7 @@ Verify the release
4040
```bash
4141
# helm list
4242
NAME REVISION UPDATED STATUS CHART NAMESPACE
43-
dozing-otter 1 Thu Jun 14 18:52:15 2018 DEPLOYED kube-batch-0.4.0 kube-system
43+
dozing-otter 1 Thu Jun 14 18:52:15 2018 DEPLOYED kube-batch-0.4.1 kube-system
4444
```
4545

4646
NOTE: `kube-batch` need to collect cluster information(such as Pod, Node, CRD, etc) for scheduling, so the service account used by the deployment must have permission to access those cluster resources, otherwise, `kube-batch` will fail to startup. For users who are not familiar with Kubernetes RBAC, please copy the example/role.yaml into `$GOPATH/src/github.com/kubernetes-sigs/kube-batch/deployment/kube-batch/templates/` and reinstall batch.

0 commit comments

Comments
 (0)