pull/644/head
gjmzj 2019-07-19 13:47:10 +08:00
parent 6b979132f8
commit b4c2cae2d6
8 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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]

View File

@ -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]

View File

@ -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

View File

@ -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]