mirror of https://github.com/easzlab/kubeasz.git
fix issue #631
parent
6b979132f8
commit
b4c2cae2d6
|
@ -7,7 +7,7 @@ Environment="PATH={{ bin_dir }}:/bin:/sbin:/usr/bin:/usr/sbin"
|
|||
ExecStart={{ bin_dir }}/dockerd
|
||||
ExecStartPost=/sbin/iptables -I FORWARD -s 0.0.0.0/0 -j ACCEPT
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
Restart=on-failure
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
LimitNOFILE=infinity
|
||||
LimitNPROC=infinity
|
||||
|
|
|
@ -24,7 +24,7 @@ ExecStart={{ bin_dir }}/etcd \
|
|||
--initial-cluster={{ ETCD_NODES }} \
|
||||
--initial-cluster-state={{ CLUSTER_STATE }} \
|
||||
--data-dir=/var/lib/etcd
|
||||
Restart=on-failure
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
LimitNOFILE=65536
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ ExecStart={{ bin_dir }}/kube-apiserver \
|
|||
--enable-aggregator-routing=true \
|
||||
--runtime-config=batch/v2alpha1=true \
|
||||
--v=2
|
||||
Restart=on-failure
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
Type=notify
|
||||
LimitNOFILE=65536
|
||||
|
|
|
@ -37,7 +37,7 @@ ExecStart={{ bin_dir }}/kube-apiserver \
|
|||
--proxy-client-key-file={{ ca_dir }}/aggregator-proxy-key.pem \
|
||||
--enable-aggregator-routing=true \
|
||||
--v=2
|
||||
Restart=on-failure
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
Type=notify
|
||||
LimitNOFILE=65536
|
||||
|
|
|
@ -18,7 +18,7 @@ ExecStart={{ bin_dir }}/kube-controller-manager \
|
|||
--horizontal-pod-autoscaler-use-rest-clients=true \
|
||||
--leader-elect=true \
|
||||
--v=2
|
||||
Restart=on-failure
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
|
|
|
@ -8,7 +8,7 @@ ExecStart={{ bin_dir }}/kube-scheduler \
|
|||
--master=http://127.0.0.1:8080 \
|
||||
--leader-elect=true \
|
||||
--v=2
|
||||
Restart=on-failure
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
|
|
|
@ -13,7 +13,7 @@ ExecStart={{ bin_dir }}/kube-proxy \
|
|||
--kubeconfig=/etc/kubernetes/kube-proxy.kubeconfig \
|
||||
--logtostderr=true \
|
||||
--proxy-mode={{ PROXY_MODE }}
|
||||
Restart=on-failure
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
LimitNOFILE=65536
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ ExecStart={{ bin_dir }}/kubelet \
|
|||
--pod-infra-container-image={{ SANDBOX_IMAGE }} \
|
||||
--root-dir={{ KUBELET_ROOT_DIR }} \
|
||||
--v=2
|
||||
Restart=on-failure
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
|
|
Loading…
Reference in New Issue