You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ServerOption is the main context object for the controller manager.
@@ -59,6 +62,9 @@ type ServerOption struct {
59
62
NumOfStatusRecordingWorkersint
60
63
GlobalDefaultStalenessGracePeriod time.Duration
61
64
PluginServerPortint
65
+
CPUWorkerNodeLabelKeystring
66
+
GPUWorkerNodeLabelKeystring
67
+
MIGWorkerNodeLabelKeystring
62
68
63
69
QPSint
64
70
Burstint
@@ -105,6 +111,9 @@ func (s *ServerOption) AddFlags(fs *pflag.FlagSet) {
105
111
fs.IntVar(&s.NumOfStatusRecordingWorkers, "num-of-status-recording-workers", defaultNumOfStatusRecordingWorkers, "specifies the max number of go routines spawned to update pod and podgroups conditions and events. Defaults to 5")
106
112
fs.DurationVar(&s.GlobalDefaultStalenessGracePeriod, "default-staleness-grace-period", defaultStalenessGracePeriod, "Global default staleness grace period duration. Negative values means infinite. Defaults to 60s")
107
113
fs.IntVar(&s.PluginServerPort, "plugin-server-port", 8081, "The port to bind for plugin server requests")
114
+
fs.StringVar(&s.CPUWorkerNodeLabelKey, "cpu-worker-node-label-key", defaultCPUWorkerNodeLabelKey, "The label key for CPU worker nodes")
115
+
fs.StringVar(&s.GPUWorkerNodeLabelKey, "gpu-worker-node-label-key", defaultGPUWorkerNodeLabelKey, "The label key for GPU worker nodes")
116
+
fs.StringVar(&s.MIGWorkerNodeLabelKey, "mig-worker-node-label-key", defaultMIGWorkerNodeLabelKey, "The label key for MIG enabled worker nodes")
DefaultGpuMemory=100// The default value is 100 because it allows all the calculation of (memory = fractional * GpuMemory) to work, if it was 0 the result will always be zero too
0 commit comments