Skip to content

Commit

Permalink
Make it possible to add additional service options
Browse files Browse the repository at this point in the history
  • Loading branch information
mback2k committed Jan 26, 2021
1 parent 334a10b commit 181be4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion rootfs/lib/systemd/system/kube-proxy.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ RequiresMountsFor=/opt/cni

[Service]
EnvironmentFile=/run/metadata/torcx
ExecStart=/usr/bin/env ${TORCX_BINDIR}/kube-proxy --config=/etc/kubernetes/kube-proxy.yaml
EnvironmentFile=-/etc/default/kubernetes
ExecStart=/usr/bin/env ${TORCX_BINDIR}/kube-proxy --config=/etc/kubernetes/kube-proxy.yaml \
$KUBE_PROXY_OPTIONS
Restart=always
RestartSec=5
LimitNOFILE=65536
Expand Down
4 changes: 3 additions & 1 deletion rootfs/lib/systemd/system/kubelet.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ RequiresMountsFor=/opt/cni

[Service]
EnvironmentFile=/run/metadata/torcx
EnvironmentFile=-/etc/default/kubernetes
ExecStart=/usr/bin/env ${TORCX_BINDIR}/kubelet --config=/etc/kubernetes/kubelet.yaml \
--container-runtime=remote \
--container-runtime-endpoint=unix:///run/docker/libcontainerd/docker-containerd.sock \
--kubeconfig=/etc/kubernetes/kubelet.kubeconfig
--kubeconfig=/etc/kubernetes/kubelet.kubeconfig \
$KUBELET_OPTIONS
Restart=always
RestartSec=5
KillMode=process
Expand Down

0 comments on commit 181be4f

Please sign in to comment.