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 \
|
|
|
|
--allocate-node-cidrs=true \
|
2022-06-07 19:33:50 +08:00
|
|
|
--authentication-kubeconfig=/etc/kubernetes/kube-controller-manager.kubeconfig \
|
|
|
|
--authorization-kubeconfig=/etc/kubernetes/kube-controller-manager.kubeconfig \
|
|
|
|
--bind-address=0.0.0.0 \
|
2017-11-11 19:14:21 +08:00
|
|
|
--cluster-cidr={{ CLUSTER_CIDR }} \
|
|
|
|
--cluster-name=kubernetes \
|
|
|
|
--cluster-signing-cert-file={{ ca_dir }}/ca.pem \
|
|
|
|
--cluster-signing-key-file={{ ca_dir }}/ca-key.pem \
|
2021-01-07 09:30:50 +08:00
|
|
|
--kubeconfig=/etc/kubernetes/kube-controller-manager.kubeconfig \
|
2020-01-29 18:05:58 +08:00
|
|
|
--leader-elect=true \
|
2019-04-11 22:03:28 +08:00
|
|
|
--node-cidr-mask-size={{ NODE_CIDR_LEN }} \
|
2017-11-11 19:14:21 +08:00
|
|
|
--root-ca-file={{ ca_dir }}/ca.pem \
|
2020-01-29 18:05:58 +08:00
|
|
|
--service-account-private-key-file={{ ca_dir }}/ca-key.pem \
|
|
|
|
--service-cluster-ip-range={{ SERVICE_CIDR }} \
|
|
|
|
--use-service-account-credentials=true \
|
2017-11-11 19:14:21 +08:00
|
|
|
--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
|