2015-01-30 17:04:39 +00:00
|
|
|
/*
|
|
|
|
Copyright 2014 Google Inc. All rights reserved.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// A binary that can morph into all of the other kubernetes binaries. You can
|
|
|
|
// also soft-link to it busybox style.
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"github.com/GoogleCloudPlatform/kubernetes/pkg/hyperkube"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
hk := hyperkube.HyperKube{
|
|
|
|
Name: "hyperkube",
|
|
|
|
Long: "This is an all-in-one binary that can run any of the various Kubernetes servers.",
|
|
|
|
}
|
|
|
|
|
2015-02-07 22:20:00 +00:00
|
|
|
hk.AddServer(NewKubeAPIServer())
|
2015-02-08 04:07:00 +00:00
|
|
|
hk.AddServer(NewKubeControllerManager())
|
2015-02-08 04:16:29 +00:00
|
|
|
hk.AddServer(NewScheduler())
|
2015-02-07 21:43:53 +00:00
|
|
|
hk.AddServer(NewKubelet())
|
2015-02-07 22:01:54 +00:00
|
|
|
hk.AddServer(NewKubeProxy())
|
2015-01-30 17:04:39 +00:00
|
|
|
|
|
|
|
hk.RunToExit(os.Args)
|
|
|
|
}
|