I can now kubectl get pods. HELL YEEEAAAAHH!!!!

This commit is contained in:
2026-03-25 05:27:25 +08:00
parent 8d91b5546e
commit befd1a470e
9 changed files with 434 additions and 2 deletions

View File

@@ -0,0 +1 @@
command_args="--bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --cgroup-driver=cgroupfs --config=/var/lib/kubelet/config.yaml"

View File

@@ -0,0 +1,4 @@
runtime-endpoint: unix:///var/run/crio/crio.sock
image-endpoint: unix:///var/run/crio/crio.sock
timeout: 10
debug: false

View File

@@ -1 +0,0 @@
none /sys/fs/cgroup cgroup2 defaults 0 0

View File

@@ -0,0 +1,23 @@
#!/sbin/openrc-run
# Copyright 2016-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
supervisor=supervise-daemon
description="Kubelet, a Kubernetes node agent"
if [ -e /var/lib/kubelet/kubeadm-flags.env ]; then
. /var/lib/kubelet/kubeadm-flags.env;
fi
command="/usr/local/bin/kubelet"
command_args="${command_args} ${KUBELET_KUBEADM_ARGS}"
pidfile="${KUBELET_PIDFILE:-/run/${RC_SVCNAME}.pid}"
: ${output_log:=/var/log/$RC_SVCNAME/$RC_SVCNAME.log}
: ${error_log:=/var/log/$RC_SVCNAME/$RC_SVCNAME.log}
depend() {
after crio
need cgroups crio
}