mirror of https://github.com/easzlab/kubeasz.git
26 lines
814 B
Django/Jinja
26 lines
814 B
Django/Jinja
[Unit]
|
|
Description=Kubernetes Controller Manager
|
|
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
|
|
|
|
[Service]
|
|
ExecStart={{ bin_dir }}/kube-controller-manager \
|
|
--bind-address=0.0.0.0 \
|
|
--allocate-node-cidrs=true \
|
|
--cluster-cidr={{ CLUSTER_CIDR }} \
|
|
--cluster-name=kubernetes \
|
|
--cluster-signing-cert-file={{ ca_dir }}/ca.pem \
|
|
--cluster-signing-key-file={{ ca_dir }}/ca-key.pem \
|
|
--kubeconfig=/etc/kubernetes/kube-controller-manager.kubeconfig \
|
|
--leader-elect=true \
|
|
--node-cidr-mask-size={{ NODE_CIDR_LEN }} \
|
|
--root-ca-file={{ ca_dir }}/ca.pem \
|
|
--service-account-private-key-file={{ ca_dir }}/ca-key.pem \
|
|
--service-cluster-ip-range={{ SERVICE_CIDR }} \
|
|
--use-service-account-credentials=true \
|
|
--v=2
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|