跳到主要内容

第十五课

PR #76

Add more help messages to cloudcfg utility 给 cloudcfg 添加用法

PR #104

The Mac is picky about the syntax for listening on ephemeral ports

PR #107

Fix error recovery

Without this change, etcd error causes it to loop forever writing to a closed channel. It's not good to stack util.Forever calls.

PR #117

Add udp support, and unit tests to match.  Closes #96 -> "Right now the kubelet doesn't handle exposing UDP port mappings."

PR #120

Add some documentatio

PR #121

Refactor apiserver

提示

作业: 给定以下code,请将其重构并将逻辑放入名为Worker的结构体中。同时,运行任务只需调用worker.Run()。