kelseyhightower / scheduler

Toy Kubernetes Scheduler
Apache License 2.0
182 stars 50 forks source link

have not scheduler.go #2

Open BlueYuQuan opened 7 years ago

BlueYuQuan commented 7 years ago

have not scheduler.go

go run bestprice.go

command-line-arguments

./bestprice.go:20: undefined: Node ./bestprice.go:22: undefined: Node go run kubernetes.go

command-line-arguments

./kubernetes.go:39: undefined: Event ./kubernetes.go:70: undefined: NodeList ./kubernetes.go:71: undefined: NodeList ./kubernetes.go:97: undefined: Pod ./kubernetes.go:150: undefined: Pod ./kubernetes.go:187: undefined: PodList ./kubernetes.go:221: undefined: Node ./kubernetes.go:221: undefined: Pod ./kubernetes.go:311: undefined: Pod ./kubernetes.go:311: undefined: Node ./kubernetes.go:71: too many errors

go run main.go

command-line-arguments

./main.go:33: undefined: monitorUnscheduledPods ./main.go:36: undefined: reconcileUnscheduledPods

go run types.go

command-line-arguments

runtime.main: call to external function main.main runtime.main: main.main: not defined runtime.main: undefined: main.main

go run processor.go

command-line-arguments

./processor.go:42: undefined: watchUnscheduledPods ./processor.go:64: undefined: Pod ./processor.go:65: undefined: fit ./processor.go:72: undefined: bestPrice ./processor.go:76: undefined: bind ./processor.go:86: undefined: getUnscheduledPods

yumingc commented 5 years ago

have not scheduler.go same problems

p-greg commented 5 years ago

I am having this same issue. What do you mean when you say "Run the best price scheduler"? There is no scheduler.go and like @BlueYuQuan stated above it go run bestprice.go returns the error: # command-line-arguments ./bestprice.go:20:24: undefined: Node ./bestprice.go:22:9: undefined: Node Could you please clarify? Thanks!

bennythejudge commented 5 years ago

Try:

sh ./build

This builds the scheduler binary:

ls -l scheduler
-rwxr-xr-x  1 neo  staff  7261468 Sep 20 22:48 scheduler

then run the scheduler (while kubectl proxy is running):

 ./scheduler
2019/09/20 22:48:40 Starting custom scheduler...

The nginx pod will be created and started.