Skip to content

Commit

Permalink
fix issue #631
Browse files Browse the repository at this point in the history
  • Loading branch information
gjmzj committed Jul 19, 2019
1 parent 6b97913 commit b4c2cae
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion roles/docker/templates/docker.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion roles/etcd/templates/etcd.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion roles/kube-master/templates/kube-apiserver-v1.8.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion roles/kube-master/templates/kube-apiserver.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion roles/kube-master/templates/kube-scheduler.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion roles/kube-node/templates/kube-proxy.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion roles/kube-node/templates/kubelet.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit b4c2cae

Please sign in to comment.