tenzen-y / imperator Goto Github PK
View Code? Open in Web Editor NEWImperator: The Kubernetes Operator to provide virtual resource groups.
License: Apache License 2.0
Imperator: The Kubernetes Operator to provide virtual resource groups.
License: Apache License 2.0
Now, Impelator does not support updating Pods managed by imperator
, pod-resource-injector
reject to update Pod.
imperator/pkg/api/v1alpha1/pod_resource_injector.go
Lines 95 to 119 in 5ea7494
Currently, machinenodepool controller sets labels or taints to use as nodeAffinity
at imperator-reservation
and guest Pod although taints can not use as nodeAffinity
. So it must set labels to Node and change MachineNodePool
API to make taints optional.
type NodePool struct {
// +kubebuilder:validation:Required
Name string `json:"name"`
// +kubebuilder:validation:Required
// +kubebuilder:validation:Enum=ready;maintenance
Mode NodePoolMode `json:"mode"`
// +optional
- // default=label
- AssignmentType NodePoolAssignmentType `json:"assignmentType,omitempty"`
+ // default=false
+ Taint *bool `json:"taint,omitempty"`
// +kubebuilder:validation:Required
MachineType NodePoolMachineType `json:"machineType"`
}
Now, Impletor is only supporting nvidia.com/gpu.family
to select GPU type below.
imperator/pkg/api/v1alpha1/machine_types.go
Lines 56 to 57 in 5ea7494
I think it needs to support more types of selectors.
Example:
nvidia.com/gpu.product
nvidia.com/gpu.machine
https://github.com/NVIDIA/gpu-feature-discovery#generated-labels
I think it needs to add some unit tests for the machine webhook to verify func (r *Machine) Default()
and func (r *Machine) ValidateNodePoolMachineTypeName() error
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.