Skip to content

Commit

Permalink
Merge pull request volcano-sh#143 from TommyLike/feature/update_crds
Browse files Browse the repository at this point in the history
Update volcano crds & sample files
  • Loading branch information
volcano-sh-bot authored May 8, 2019
2 parents ed1bdc1 + d70493d commit ad4b733
Show file tree
Hide file tree
Showing 10 changed files with 53 additions and 165 deletions.
1 change: 1 addition & 0 deletions example/integrations/tensorflow/tf-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ spec:
minAvailable: 2
schedulerName: kube-batch
plugins:
env: []
svc: []
policies:
- event: PodEvicted
Expand Down
File renamed without changes.
56 changes: 31 additions & 25 deletions example/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,36 @@ spec:
minAvailable: 3
schedulerName: kube-batch
policies:
- event: PodEvicted
action: RestartJob
- event: PodEvicted
action: RestartJob
plugins:
ssh: []
env: []
svc: []
maxRetry: 5
queue: default
volumes:
- mountPath: "/myinput"
- mountPath: "/myoutput"
volumeClaimName: "testvolumeclaimname"
volumeClaim:
accessModes: [ "ReadWriteOnce" ]
storageClassName: "my-storage-class"
resources:
requests:
storage: 1Gi
- mountPath: "/myinput"
- mountPath: "/myoutput"
volumeClaimName: "testvolumeclaimname"
volumeClaim:
accessModes: [ "ReadWriteOnce" ]
storageClassName: "my-storage-class"
resources:
requests:
storage: 1Gi
tasks:
- replicas: 6
name: "default-nginx"
template:
metadata:
name: web
spec:
containers:
- image: nginx
imagePullPolicy: IfNotPresent
name: nginx
resources:
requests:
cpu: "1"
restartPolicy: OnFailure
- replicas: 6
name: "default-nginx"
template:
metadata:
name: web
spec:
containers:
- image: nginx
imagePullPolicy: IfNotPresent
name: nginx
resources:
requests:
cpu: "1"
restartPolicy: OnFailure
11 changes: 0 additions & 11 deletions example/kube-batch-conf.yaml

This file was deleted.

56 changes: 0 additions & 56 deletions example/openmpi-hello.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions example/role.yaml

This file was deleted.

61 changes: 0 additions & 61 deletions example/tensorflow-benchmark.yaml

This file was deleted.

21 changes: 21 additions & 0 deletions installer/chart/volcano/templates/batch_v1alpha1_job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ spec:
schedulerName:
description: SchedulerName is the default value of `tasks.template.spec.schedulerName`.
type: string
plugins:
description: Enabled task plugins when creating job.
type: object
additionalProperties:
type: array
tasks:
description: Tasks specifies the task specification of Job
items:
Expand Down Expand Up @@ -111,6 +116,13 @@ spec:
type: object
type: object
type: array
queue:
description: The name of the queue on which job should been created
type: string
maxRetry:
description: The limit for retrying submiting job, default is 3
format: int32
type: integer
type: object
status:
description: Current status of Job
Expand Down Expand Up @@ -139,6 +151,15 @@ spec:
description: Job's current version
format: int32
type: integer
retryCount:
description: The number that volcano retried to submit the job.
format: int32
type: integer
ControlledResources:
description: All of the resources that are controlled by this job.
type: object
additionalProperties:
type: string
state:
description: Current state of Job.
properties:
Expand Down

0 comments on commit ad4b733

Please sign in to comment.