<commit_before>#read kubelet args file
$FileContent = Get-Content -Path "/var/lib/kubelet/kubeadm-flags.env"
$KubeletArgs = $FileContent.Trim('KUBELET_KUBEADM_ARGS=')


kubelet.exe `
--cert-dir=$env:SYSTEMDRIVE\var\lib\kubelet\pki `
--config=/var/lib/kubelet/config.yaml `
--bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf `
--kubeconfig=/etc/kubernetes/kubelet.conf `
--hostname-override=$(hostname) `
--pod-infra-container-image=`"mcr.microsoft.com/k8s/core/pause:1.2.0`" `
--enable-debugging-handlers `
--cgroups-per-qos=false `
--enforce-node-allocatable=`"`" `
--network-plugin=cni `
--resolv-conf=`"`" `
--log-dir=/var/log/kubelet `
--logtostderr=false `
--image-pull-progress-deadline=20m `
$KubeletArgs<commit_msg>Kubelet service wrapper reads kubeadm kubelet flags<commit_after>$FileContent = Get-Content -Path "/var/lib/kubelet/kubeadm-flags.env"
$global:KubeletArgs = $FileContent.Trim('KUBELET_KUBEADM_ARGS="')

$cmd = "C:\k\kubelet.exe --cert-dir=$env:SYSTEMDRIVE\var\lib\kubelet\pki --config=/var/lib/kubelet/config.yaml --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --hostname-override=$(hostname) --pod-infra-container-image=`"mcr.microsoft.com/k8s/core/pause:1.2.0`" --enable-debugging-handlers --cgroups-per-qos=false --enforce-node-allocatable=`"`" --network-plugin=cni --resolv-conf=`"`" --log-dir=/var/log/kubelet --logtostderr=false --image-pull-progress-deadline=20m $global:KubeletArgs"

Invoke-Expression $cmd
{'fraction_non_alphanumeric': 0.19281914893617022, 'fraction_numerical': 0.007978723404255319, 'mean_word_length': 4.99601593625498, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6179353', 'n_tokens_mistral': 613, 'n_tokens_neox': 586, 'n_words': 56}