2017-11-11 19:14:21 +08:00
|
|
|
[Unit]
|
|
|
|
Description=Kubernetes Controller Manager
|
|
|
|
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
ExecStart={{ bin_dir }}/kube-controller-manager \
|
|
|
|
--address=127.0.0.1 \
|
|
|
|
--master=http://127.0.0.1:8080 \
|
|
|
|
--allocate-node-cidrs=true \
|
|
|
|
--service-cluster-ip-range={{ SERVICE_CIDR }} \
|
|
|
|
--cluster-cidr={{ CLUSTER_CIDR }} \
|
|
|
|
--cluster-name=kubernetes \
|
|
|
|
--cluster-signing-cert-file={{ ca_dir }}/ca.pem \
|
|
|
|
--cluster-signing-key-file={{ ca_dir }}/ca-key.pem \
|
2019-04-11 22:03:28 +08:00
|
|
|
--node-cidr-mask-size={{ NODE_CIDR_LEN }} \
|
2017-11-11 19:14:21 +08:00
|
|
|
--service-account-private-key-file={{ ca_dir }}/ca-key.pem \
|
|
|
|
--root-ca-file={{ ca_dir }}/ca.pem \
|
2018-06-17 10:46:25 +08:00
|
|
|
--horizontal-pod-autoscaler-use-rest-clients=true \
|
2017-11-11 19:14:21 +08:00
|
|
|
--leader-elect=true \
|
|
|
|
--v=2
|
2019-07-19 13:47:10 +08:00
|
|
|
Restart=always
|
2017-11-11 19:14:21 +08:00
|
|
|
RestartSec=5
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|