Skip to content

Commit

Permalink
Feat: gpu schedule (#21)
Browse files Browse the repository at this point in the history
* feat: add GPU support in CRD and scheduling
* feat: add gpu support in dispatcher
* feat: add Gpu pod creation
* feat: remove old deploy folder content
* feat: add gpu integration in allocation algorithm
* feat: simple-dispatcher
* feat: add simple-dispatcher to gitignore

Co-authored-by: DragonBanana <[email protected]>
  • Loading branch information
lterrac and DragonBanana authored Oct 27, 2021
1 parent a9e63f0 commit 02d08a2
Show file tree
Hide file tree
Showing 49 changed files with 636 additions and 1,617 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pkg/*/system-controller
pkg/*/edge-scheduler
pkg/*/function-deployment-webhook
pkg/*/cpu-monitoring
pkg/*/simple-dispatcher

.idea/
*.pem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.3.0
controller-gen.kubebuilder.io/version: v0.6.2
creationTimestamp: null
name: communityconfigurations.edgeautoscaler.polimi.it
spec:
Expand Down
30 changes: 25 additions & 5 deletions config/crd/bases/edgeautoscaler.polimi.it_communityschedules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.3.0
controller-gen.kubebuilder.io/version: v0.6.2
creationTimestamp: null
name: communityschedules.edgeautoscaler.polimi.it
spec:
Expand Down Expand Up @@ -38,13 +38,31 @@ spec:
properties:
algorithm-service:
type: string
allocations:
cpu-allocations:
additionalProperties:
additionalProperties:
type: boolean
type: object
type: object
routing-rules:
cpu-routing-rules:
additionalProperties:
additionalProperties:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
type: object
type: object
type: object
gpu-allocations:
additionalProperties:
additionalProperties:
type: boolean
type: object
type: object
gpu-routing-rules:
additionalProperties:
additionalProperties:
additionalProperties:
Expand All @@ -58,8 +76,10 @@ spec:
type: object
required:
- algorithm-service
- allocations
- routing-rules
- cpu-allocations
- cpu-routing-rules
- gpu-allocations
- gpu-routing-rules
type: object
required:
- spec
Expand Down
2 changes: 1 addition & 1 deletion config/deploy/monitoring.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
serviceAccountName: sa-monitoring
containers:
- name: monitoring
image: systemautoscaler/system-autoscaler-monitoring:dev.1
image: systemautoscaler/system-autoscaler-monitoring:dev
imagePullPolicy: Always
- name: cpu-monitoring
image: systemautoscaler/cpu-monitoring:dev
Expand Down
4 changes: 0 additions & 4 deletions deploy/config/cluster-conf/e2e-namespace.yaml

This file was deleted.

31 changes: 0 additions & 31 deletions deploy/config/cluster-conf/k3d.conf

This file was deleted.

17 changes: 0 additions & 17 deletions deploy/config/cluster-conf/kind.conf

This file was deleted.

This file was deleted.

This file was deleted.

42 changes: 0 additions & 42 deletions deploy/config/deploy/allocation-algorithm.yaml

This file was deleted.

Loading

0 comments on commit 02d08a2

Please sign in to comment.