Advertisement
drpanwe

/usr/lib/systemd/system/kubelet.service.d/10-kubeadm.conf

Jan 22nd, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. [Service]
  2. Restart=always
  3. RestartSec=3
  4. Environment="KUBELET_KUBECONFIG_ARGS=--bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf"
  5. Environment="KUBELET_CONFIG_ARGS=--config=/var/lib/kubelet/config.yaml"
  6. Environment="KUBELET_SYSTEM_PODS_ARGS=--pod-manifest-path=/etc/kubernetes/manifests --allow-privileged=true"
  7. # This is a file that "kubeadm init" and "kubeadm join" generates at runtime, populating the KUBELET_KUBEADM_ARGS variable dynamically
  8. EnvironmentFile=-/var/lib/kubelet/kubeadm-flags.env
  9. # This is a file that the user can use for overrides of the kubelet args as a last resort. Preferably, the user should use
  10. # the .NodeRegistration.KubeletExtraArgs object in the configuration files instead. KUBELET_EXTRA_ARGS should be sourced from this file.
  11. EnvironmentFile=-/etc/sysconfig/kubelet
  12. Environment="KUBELET_CGROUP_ARGS=--cgroup-driver=cgroupfs"
  13. ExecStart=
  14. ExecStartPre=
  15. ExecStartPre=/usr/bin/sleep 5
  16. ExecStart=/usr/bin/hyperkube kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_CGROUP_ARGS $KUBELET_SYSTEM_PODS_ARGS $KUBELET_EXTRA_ARGS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement