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 \
|
|
|
|
--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
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=5
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|