2014-06-06 19:40:48 -04:00
|
|
|
/*
|
2016-06-02 20:25:58 -04:00
|
|
|
Copyright 2014 The Kubernetes Authors.
|
2014-06-06 19:40:48 -04:00
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
*/
|
2014-06-11 19:02:08 -04:00
|
|
|
|
2014-08-03 23:27:38 -04:00
|
|
|
// The controller manager is responsible for monitoring replication
|
|
|
|
|
// controllers, and creating corresponding pods to achieve the desired
|
|
|
|
|
// state. It uses the API to listen for new controllers and to create/delete
|
|
|
|
|
// pods.
|
2014-06-06 19:40:48 -04:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
2015-02-19 13:30:31 -05:00
|
|
|
"os"
|
|
|
|
|
|
2021-09-16 12:18:35 -04:00
|
|
|
"k8s.io/component-base/cli"
|
2021-06-09 19:30:30 -04:00
|
|
|
_ "k8s.io/component-base/logs/json/register" // for JSON log format registration
|
2019-08-22 20:40:36 -04:00
|
|
|
_ "k8s.io/component-base/metrics/prometheus/clientgo" // load all the prometheus client-go plugin
|
2019-09-10 17:42:55 -04:00
|
|
|
_ "k8s.io/component-base/metrics/prometheus/version" // for version metric registration
|
2015-08-05 18:03:47 -04:00
|
|
|
"k8s.io/kubernetes/cmd/kube-controller-manager/app"
|
2014-06-06 19:40:48 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func main() {
|
2018-01-17 11:08:13 -05:00
|
|
|
command := app.NewControllerManagerCommand()
|
2021-09-16 12:18:35 -04:00
|
|
|
code := cli.Run(command)
|
|
|
|
|
os.Exit(code)
|
2014-06-06 19:40:48 -04:00
|
|
|
}
|