integ/kubernetes/kubernetes-1.28.4/debian/deb_folder/kubeadm.conf
rakshith mr 79f5f0bb9f Debian: Add kubernetes 1.28.4 package
This adds kubernetes 1.28.4 package for Debian, this is built
using golang-1.20.11.

Taken from the previous version and modified the files for 1.28.4.

Test Plan:
PASS: kubernetes-1.28.4 package builds successfully
PASS: All packages build successfully
PASS: Build ISO successful with multiple kubernetes versions
PASS: For pkg-versioning, add a dummy commit to subdirectory
      of kubernetes-1.28.4. Built package kubernetes-1.28.4
      and verified that package version was incremented by 1.
PASS: Install the ISO as AIO-SX and verify the K8s 1.28.4 staged
      binaries are present in the path /usr/local/kubernetes/1.28.4

Story: 2010878
Task: 48592

Depends-On: https://review.opendev.org/c/starlingx/compile/+/902044

Change-Id: I5f4acec2e693449b41b46d82a4a46b1cb69432f3
Signed-off-by: rakshith mr <rakshith.mr@windriver.com>
2023-12-04 02:21:22 -05:00

19 lines
1.2 KiB
Plaintext

# Note: This dropin only works with kubeadm and kubelet v1.11+
[Service]
Environment="KUBELET_KUBECONFIG_ARGS=--bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf"
Environment="KUBELET_CONFIG_ARGS=--config=/var/lib/kubelet/config.yaml"
# This is a file that "kubeadm init" and "kubeadm join" generates at runtime, populating the KUBELET_KUBEADM_ARGS variable dynamically
EnvironmentFile=-/var/lib/kubelet/kubeadm-flags.env
# This is a file that the user can use for overrides of the kubelet args as a last resort. Preferably, the user should use
# the .NodeRegistration.KubeletExtraArgs object in the configuration files instead. KUBELET_EXTRA_ARGS should be sourced from this file.
EnvironmentFile=-/etc/default/kubelet
ExecStart=
ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS
ExecStartPre=-/usr/local/sbin/sanitize_kubelet_reserved_cpus.sh /etc/default/kubelet
ExecStartPre=-/usr/bin/kubelet-cgroup-setup.sh
ExecStartPost=/bin/bash -c 'echo $MAINPID > /var/run/kubelet.pid;'
ExecStopPost=/bin/rm -f /var/run/kubelet.pid
Restart=always
StartLimitInterval=0
RestartSec=10