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"
|
|
|
|
|
2015-02-07 21:30:53 +00:00
|
|
|
kubelet "github.com/GoogleCloudPlatform/kubernetes/cmd/kubelet/app"
|
2015-01-30 23:31:36 +00:00
|
|
|
"github.com/GoogleCloudPlatform/kubernetes/pkg/controllermanager"
|
2015-01-30 17:04:39 +00:00
|
|
|
"github.com/GoogleCloudPlatform/kubernetes/pkg/hyperkube"
|
|
|
|
apiserver "github.com/GoogleCloudPlatform/kubernetes/pkg/master/server"
|
2015-02-02 21:54:52 +00:00
|
|
|
proxy "github.com/GoogleCloudPlatform/kubernetes/pkg/proxy/server"
|
2015-01-30 23:59:27 +00:00
|
|
|
sched "github.com/GoogleCloudPlatform/kubernetes/plugin/pkg/scheduler/server"
|
2015-01-30 17:04:39 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
hk := hyperkube.HyperKube{
|
|
|
|
Name: "hyperkube",
|
|
|
|
Long: "This is an all-in-one binary that can run any of the various Kubernetes servers.",
|
|
|
|
}
|
|
|
|
|
|
|
|
hk.AddServer(apiserver.NewHyperkubeServer())
|
2015-01-30 23:31:36 +00:00
|
|
|
hk.AddServer(controllermanager.NewHyperkubeServer())
|
2015-01-30 23:59:27 +00:00
|
|
|
hk.AddServer(sched.NewHyperkubeServer())
|
2015-02-02 21:30:31 +00:00
|
|
|
hk.AddServer(kubelet.NewHyperkubeServer())
|
2015-02-02 21:54:52 +00:00
|
|
|
hk.AddServer(proxy.NewHyperkubeServer())
|
2015-01-30 17:04:39 +00:00
|
|
|
|
|
|
|
hk.RunToExit(os.Args)
|
|
|
|
}
|