Add a global flag to enable/disable privileged containers

This commit is contained in:
Brendan Burns
2014-09-11 16:34:24 -07:00
parent 3a3fab3f82
commit 46d0cbd645
2 changed files with 24 additions and 12 deletions

View File

@@ -58,6 +58,7 @@ var (
dockerEndpoint = flag.String("docker_endpoint", "", "If non-empty, use this for the docker endpoint to communicate with")
etcdServerList util.StringList
rootDirectory = flag.String("root_dir", defaultRootDir, "Directory path for managing kubelet files (volume mounts,etc).")
allowPrivileged = flag.Bool("allow_privileged", false, "If true, allow containers to request privileged mode.")
)
func init() {
@@ -150,7 +151,8 @@ func main() {
cadvisorClient,
etcdClient,
*rootDirectory,
*syncFrequency)
*syncFrequency,
*allowPrivileged)
health.AddHealthChecker("exec", health.NewExecHealthChecker(k))
health.AddHealthChecker("http", health.NewHTTPHealthChecker(&http.Client{}))