Add kubernetes 1.30.6 package
This adds kubernetes 1.30.6 package for Debian, this is built using golang-1.22.8. Taken from the previous version and modified the files for 1.30.6. Test Plan: PASS: kubernetes-1.30.6 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.30.6. Built package kubernetes-1.30.6 and verified that package version was incremented by 1. PASS: Install the ISO as AIO-SX and verify the K8s 1.30.6 staged binaries are present in the path /usr/local/kubernetes/1.30.6 Story: 2011047 Task: 51358 Depends-On: https://review.opendev.org/c/starlingx/tools/+/935344 Change-Id: I349eebdc0d48f8c2da1f9197c29018dec37e4aac Signed-off-by: Ramesh Kumar Sivanandam <rameshkumar.sivanandam@windriver.com>
This commit is contained in:
parent
de056f5f9d
commit
cb569f1803
@ -216,6 +216,10 @@ kubernetes-1.28.4-node
|
|||||||
kubernetes-1.29.2-client
|
kubernetes-1.29.2-client
|
||||||
kubernetes-1.29.2-kubeadm
|
kubernetes-1.29.2-kubeadm
|
||||||
kubernetes-1.29.2-node
|
kubernetes-1.29.2-node
|
||||||
|
#kubernetes-1.30.6
|
||||||
|
kubernetes-1.30.6-client
|
||||||
|
kubernetes-1.30.6-kubeadm
|
||||||
|
kubernetes-1.30.6-node
|
||||||
|
|
||||||
#kubernetes-unversioned
|
#kubernetes-unversioned
|
||||||
kubernetes-unversioned
|
kubernetes-unversioned
|
||||||
|
@ -76,6 +76,7 @@ kubernetes/kubernetes-1.26.1
|
|||||||
kubernetes/kubernetes-1.27.5
|
kubernetes/kubernetes-1.27.5
|
||||||
kubernetes/kubernetes-1.28.4
|
kubernetes/kubernetes-1.28.4
|
||||||
kubernetes/kubernetes-1.29.2
|
kubernetes/kubernetes-1.29.2
|
||||||
|
kubernetes/kubernetes-1.30.6
|
||||||
kubernetes/kubernetes-unversioned
|
kubernetes/kubernetes-unversioned
|
||||||
kubernetes/plugins/isolcpus-device-plugin
|
kubernetes/plugins/isolcpus-device-plugin
|
||||||
kubernetes/plugins/kubectl-cert-manager
|
kubernetes/plugins/kubectl-cert-manager
|
||||||
|
238
kubernetes/kubernetes-1.30.6/debian/deb_folder/changelog
Normal file
238
kubernetes/kubernetes-1.30.6/debian/deb_folder/changelog
Normal file
@ -0,0 +1,238 @@
|
|||||||
|
kubernetes-1.30.6 (1.30.6-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Updated to support building 1.30.6
|
||||||
|
|
||||||
|
-- Ramesh Kumar Sivanandam rameshkumar.sivanandam@windriver.com Thu, 14 Nov 2024 15:10:00 +0000
|
||||||
|
|
||||||
|
kubernetes-1.29.2 (1.29.2-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Updated to support building 1.29.2
|
||||||
|
|
||||||
|
-- Ramesh Kumar Sivanandam rameshkumar.sivanandam@windriver.com Mon, 01 Mar 2024 10:00:00 +0000
|
||||||
|
|
||||||
|
kubernetes-1.28.4 (1.28.4-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Updated to support building 1.28.4
|
||||||
|
|
||||||
|
-- Rakshith M R rakshith.mr@windriver.com Mon, 30 Nov 2023 13:30:00 +0000
|
||||||
|
|
||||||
|
kubernetes-1.27.5 (1.27.5-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Updated to support building 1.27.5
|
||||||
|
|
||||||
|
-- Ramesh Kumar Sivanandam rameshkumar.sivanandam@windriver.com Mon, 28 Aug 2023 13:30:00 +0000
|
||||||
|
|
||||||
|
kubernetes (1.19.4-2) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Updated README.Debian
|
||||||
|
|
||||||
|
-- Janos Lenart <ocsi@debian.org> Sat, 21 Nov 2020 14:06:21 +0000
|
||||||
|
|
||||||
|
kubernetes (1.19.4-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release: 1.19.4
|
||||||
|
|
||||||
|
-- Janos Lenart <ocsi@debian.org> Tue, 17 Nov 2020 09:30:59 +0000
|
||||||
|
|
||||||
|
kubernetes (1.19.3-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release: 1.19.3
|
||||||
|
* Building with golang-1.15
|
||||||
|
* Fixes CVE-2020-8564, CVE-2020-8566
|
||||||
|
|
||||||
|
-- Janos Lenart <ocsi@debian.org> Wed, 21 Oct 2020 10:38:41 +0100
|
||||||
|
|
||||||
|
kubernetes (1.18.6-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release: 1.18.6
|
||||||
|
* (An earlier version, 1.17.4-1 fixes CVE-2019-9946)
|
||||||
|
|
||||||
|
-- Janos Lenart <ocsi@debian.org> Thu, 16 Jul 2020 10:08:46 +0100
|
||||||
|
|
||||||
|
kubernetes (1.18.5-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release: 1.18.5
|
||||||
|
* Fixes CVE-2020-8557, CVE-2020-8558, CVE-2020-8559
|
||||||
|
|
||||||
|
-- Janos Lenart <ocsi@debian.org> Wed, 15 Jul 2020 17:19:40 +0100
|
||||||
|
|
||||||
|
kubernetes (1.18.3-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release: 1.18.3
|
||||||
|
* Improved build reproducibility
|
||||||
|
|
||||||
|
-- Janos Lenart <ocsi@debian.org> Tue, 02 Jun 2020 11:18:12 +0000
|
||||||
|
|
||||||
|
kubernetes (1.18.2-3) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Bumped Standards-Version
|
||||||
|
* Improved build reproducibility
|
||||||
|
|
||||||
|
-- Janos Lenart <ocsi@debian.org> Fri, 15 May 2020 13:17:53 +0000
|
||||||
|
|
||||||
|
kubernetes (1.18.2-2) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Added i386 back
|
||||||
|
|
||||||
|
-- Janos Lenart <ocsi@debian.org> Sun, 03 May 2020 21:13:17 +0000
|
||||||
|
|
||||||
|
kubernetes (1.18.2-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release: 1.18.2
|
||||||
|
|
||||||
|
-- Janos Lenart <ocsi@debian.org> Sun, 03 May 2020 19:25:37 +0000
|
||||||
|
|
||||||
|
kubernetes (1.18.0-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release: 1.18.0
|
||||||
|
|
||||||
|
-- Janos Lenart <ocsi@debian.org> Sat, 28 Mar 2020 12:58:42 +0000
|
||||||
|
|
||||||
|
kubernetes (1.17.4-1) unstable; urgency=high
|
||||||
|
|
||||||
|
* New maintainer (Closes: #886739)
|
||||||
|
* New upstream release: 1.17.4 (Closes: #887741)
|
||||||
|
* New Debian packaging from scratch. See README.Debian
|
||||||
|
* kubernetes-node
|
||||||
|
- Moved docker from Depends into Recommends as kubelet can also work with
|
||||||
|
rkt, cri-o, etc. (Closes: #872690)
|
||||||
|
- Not shipping systemd units for kubelet and kube-proxy for now
|
||||||
|
* kubernetes-master
|
||||||
|
- Moved etcd from Depends into Recommends as apiserver can also connect to
|
||||||
|
a remote etcd/cluster.
|
||||||
|
- Not shipping systemd units for kube-apiserver, kube-schedules and
|
||||||
|
kube-controller-manager for now
|
||||||
|
|
||||||
|
-- Janos Lenart <ocsi@debian.org> Sun, 15 Mar 2020 21:46:45 +0000
|
||||||
|
|
||||||
|
kubernetes (1.7.16+dfsg-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Michael Stapelberg ]
|
||||||
|
* Switch to XS-Go-Import-Path
|
||||||
|
|
||||||
|
[ Dmitry Smirnov ]
|
||||||
|
* Resurrected "mergo.patch" that has been mistakenly removed
|
||||||
|
(Closes: #878254).
|
||||||
|
* Re-enabled safeguard test for the above problem.
|
||||||
|
* New upstream release:
|
||||||
|
+ CVE-2017-1002101 (Closes: #892801)
|
||||||
|
+ CVE-2017-1002102 (Closes: #894051)
|
||||||
|
* Updated Vcs URLs for Salsa.
|
||||||
|
* Standards-Version: 4.1.4
|
||||||
|
* Build-Depends:
|
||||||
|
- golang-go
|
||||||
|
+ golang-any
|
||||||
|
+ golang-github-appc-cni-dev
|
||||||
|
+ golang-github-armon-circbuf-dev
|
||||||
|
+ golang-github-azure-azure-sdk-for-go-dev
|
||||||
|
+ golang-github-dgrijalva-jwt-go-v3-dev
|
||||||
|
+ golang-github-docker-distribution-dev
|
||||||
|
+ golang-github-docker-docker-dev
|
||||||
|
+ golang-github-emicklei-go-restful-swagger12-dev
|
||||||
|
+ golang-github-gogo-protobuf-dev
|
||||||
|
+ golang-github-gorilla-websocket-dev
|
||||||
|
+ golang-github-grpc-ecosystem-go-grpc-prometheus-dev
|
||||||
|
+ golang-github-karlseguin-ccache-dev
|
||||||
|
- golang-github-opencontainers-runc-dev
|
||||||
|
+ golang-github-opencontainers-docker-runc-dev
|
||||||
|
+ golang-github-pmezard-go-difflib-dev
|
||||||
|
+ golang-golang-x-time-dev
|
||||||
|
+ golang-golang-x-tools-dev
|
||||||
|
+ golang-google-grpc-dev
|
||||||
|
+ golang-gopkg-warnings.v0-dev
|
||||||
|
+ golang-goprotobuf-dev
|
||||||
|
|
||||||
|
-- Dmitry Smirnov <onlyjob@debian.org> Sun, 06 May 2018 16:20:21 +1000
|
||||||
|
|
||||||
|
kubernetes (1.7.7+dfsg-3) unstable; urgency=medium
|
||||||
|
|
||||||
|
* kubernetes-master should depend on etcd (Closes: #855218).
|
||||||
|
|
||||||
|
-- Andrew Shadura <andrewsh@debian.org> Sun, 22 Oct 2017 19:40:46 +0100
|
||||||
|
|
||||||
|
kubernetes (1.7.7+dfsg-2) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Use CURDIR, not PWD, unbreaks the build at buildds.
|
||||||
|
|
||||||
|
-- Andrew Shadura <andrewsh@debian.org> Fri, 06 Oct 2017 19:25:45 +0200
|
||||||
|
|
||||||
|
kubernetes (1.7.7+dfsg-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Tim Potter ]
|
||||||
|
* Open work for new release
|
||||||
|
* Remove unused Files-Excluded entries from d/copyright
|
||||||
|
* Remove Skydns B-D as no longer used
|
||||||
|
* Don't build on ppc64 or ppc64le architectures
|
||||||
|
|
||||||
|
[ Andrew Shadura ]
|
||||||
|
* New upstream release.
|
||||||
|
* Refresh patches.
|
||||||
|
* Update build dependencies.
|
||||||
|
* Symlink vendor packages to the build directory.
|
||||||
|
|
||||||
|
-- Andrew Shadura <andrewsh@debian.org> Fri, 06 Oct 2017 18:54:06 +0200
|
||||||
|
|
||||||
|
kubernetes (1.5.5+dfsg-2) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Team upload.
|
||||||
|
* Don't build on ppc64le due to Go linker problems. See GitHub issue
|
||||||
|
https://github.com/golang/go/issues/15823.
|
||||||
|
* Don't build on ppc64 as it's not supported by upstream at the
|
||||||
|
moment. (Closes: #860505)
|
||||||
|
|
||||||
|
-- Tim Potter <tpot@hpe.com> Sat, 03 Jun 2017 08:00:51 +1000
|
||||||
|
|
||||||
|
kubernetes (1.5.5+dfsg-1) unstable; urgency=low
|
||||||
|
|
||||||
|
[ Dmitry Smirnov ]
|
||||||
|
* Switch to bundled "rkt".
|
||||||
|
* rules: remove "-p" option from build and test overrides.
|
||||||
|
* control: drop obsolete "golang-clockwork-dev" alternative.
|
||||||
|
* New patch to disable test failing on [armel].
|
||||||
|
* Upload to unstable.
|
||||||
|
|
||||||
|
[ Tim Potter ]
|
||||||
|
* New upstream version. [March 2017]
|
||||||
|
* Big updates to d/rules and d/copyright to update to upstream
|
||||||
|
changes made since the 1.2.x release.
|
||||||
|
* Refresh patches to bring up to date with upstream changes since
|
||||||
|
1.2.x.
|
||||||
|
* control: add lsb-base as dependency for sysvinit scripts.
|
||||||
|
* Suppress spelling-error-in-binary Lintian messages.
|
||||||
|
|
||||||
|
-- Tim Potter <tpot@hpe.com> Thu, 13 Apr 2017 16:45:57 +1000
|
||||||
|
|
||||||
|
kubernetes (1.2.5+dfsg-1) experimental; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release [June 2016].
|
||||||
|
* Switch to private "github.com/golang/glog" due to log noise.
|
||||||
|
* Disabled failing tests; no longer ignore failures in tests.
|
||||||
|
* Build/test using 2 cores only.
|
||||||
|
* New patch to update appc/cni name space (fixes FTBFS).
|
||||||
|
* Removed obsolete "spf13-cobra.patch".
|
||||||
|
|
||||||
|
-- Dmitry Smirnov <onlyjob@debian.org> Sun, 03 Jul 2016 04:12:28 +1000
|
||||||
|
|
||||||
|
kubernetes (1.2.4+dfsg-2) experimental; urgency=medium
|
||||||
|
|
||||||
|
* Added new patch to fix incompatibility with "imdario/mergo" v0.2.2
|
||||||
|
(Closes: #825753).
|
||||||
|
Thanks, Florian Ernst.
|
||||||
|
* Enable tests but ignore failures for now.
|
||||||
|
|
||||||
|
-- Dmitry Smirnov <onlyjob@debian.org> Fri, 17 Jun 2016 01:41:38 +1000
|
||||||
|
|
||||||
|
kubernetes (1.2.4+dfsg-1) experimental; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release [May 2016].
|
||||||
|
* New patch to print output of "uname -m" on unsupported architectures.
|
||||||
|
* New "docker.patch" to fix potential FTBFS.
|
||||||
|
+ Build-Depends += "golang-github-docker-distribution-dev".
|
||||||
|
|
||||||
|
-- Dmitry Smirnov <onlyjob@debian.org> Wed, 15 Jun 2016 21:03:01 +1000
|
||||||
|
|
||||||
|
kubernetes (1.2.3+dfsg-1) experimental; urgency=low
|
||||||
|
|
||||||
|
* Initial release (Closes: #795652).
|
||||||
|
|
||||||
|
-- Dmitry Smirnov <onlyjob@debian.org> Mon, 25 Apr 2016 22:40:12 +1000
|
93
kubernetes/kubernetes-1.30.6/debian/deb_folder/control
Normal file
93
kubernetes/kubernetes-1.30.6/debian/deb_folder/control
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
Source: kubernetes-1.30.6
|
||||||
|
Section: admin
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: StarlingX Developers <StarlingX-discuss@lists.StarlingX.io>
|
||||||
|
Build-Depends: debhelper-compat (= 13),
|
||||||
|
build-essential,
|
||||||
|
bash-completion,
|
||||||
|
jq,
|
||||||
|
rsync,
|
||||||
|
go-bindata,
|
||||||
|
go-md2man,
|
||||||
|
golang-1.22
|
||||||
|
Standards-Version: 4.4.1
|
||||||
|
Homepage: http://kubernetes.io/
|
||||||
|
XS-Build-Size: 15GB
|
||||||
|
|
||||||
|
Package: kubernetes-1.30.6-client
|
||||||
|
Provides: kubernetes-utils
|
||||||
|
Architecture: amd64
|
||||||
|
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||||
|
Recommends: ${misc:Recommends}
|
||||||
|
Built-Using: ${misc:Built-Using}
|
||||||
|
Description: Kubernetes Command Line Tool
|
||||||
|
The Kubernetes command line tool for interacting with the Kubernetes API.
|
||||||
|
|
||||||
|
Package: kubernetes-1.30.6-master
|
||||||
|
Architecture: amd64
|
||||||
|
Depends: ${misc:Depends}, ${shlibs:Depends},
|
||||||
|
adduser,
|
||||||
|
lsb-base,
|
||||||
|
etcd
|
||||||
|
Recommends: ${misc:Recommends}, kubernetes-1.30.6-client
|
||||||
|
Built-Using: ${misc:Built-Using}
|
||||||
|
Description: Kubernetes services for master host
|
||||||
|
Container Cluster Manager from Google. Kubernetes is an open source system
|
||||||
|
for managing containerized applications across multiple hosts, providing
|
||||||
|
basic mechanisms for deployment, maintenance, and scaling of applications.
|
||||||
|
.
|
||||||
|
Linux kernel version 3.8 or above is required for proper operation of the
|
||||||
|
daemon process, and that any lower versions may have subtle and/or glaring
|
||||||
|
issues.
|
||||||
|
.
|
||||||
|
This package provides "kube-apiserver", "kube-controller-manager" and
|
||||||
|
"kube-scheduler" daemons.
|
||||||
|
|
||||||
|
Package: kubernetes-1.30.6-node
|
||||||
|
Provides: cadvisor
|
||||||
|
Architecture: amd64
|
||||||
|
Depends: ${misc:Depends}, ${shlibs:Depends},
|
||||||
|
adduser,
|
||||||
|
conntrack,
|
||||||
|
conntrackd,
|
||||||
|
docker.io,
|
||||||
|
lsb-base,
|
||||||
|
socat,
|
||||||
|
Recommends: ${misc:Recommends}, kubernetes-1.30.6-client
|
||||||
|
Built-Using: ${misc:Built-Using}
|
||||||
|
Description: Kubernetes services for node host
|
||||||
|
Container Cluster Manager from Google. Kubernetes is an open source system
|
||||||
|
for managing containerized applications across multiple hosts, providing
|
||||||
|
basic mechanisms for deployment, maintenance, and scaling of applications.
|
||||||
|
.
|
||||||
|
Linux kernel version 3.8 or above is required for proper operation of the
|
||||||
|
daemon process, and that any lower versions may have subtle and/or glaring
|
||||||
|
issues.
|
||||||
|
|
||||||
|
Package: kubernetes-1.30.6-kubeadm
|
||||||
|
Architecture: amd64
|
||||||
|
Depends: ${misc:Depends}, containernetworking-plugins
|
||||||
|
Recommends: ${misc:Recommends}, kubernetes-1.30.6-client
|
||||||
|
Built-Using: ${misc:Built-Using}
|
||||||
|
Description: Kubernetes Cluster Bootstrapping Tool
|
||||||
|
The Kubernetes command line tool for bootstrapping a Kubernetes cluster.
|
||||||
|
|
||||||
|
Package: kubernetes-1.30.6-misc
|
||||||
|
Architecture: amd64
|
||||||
|
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||||
|
Recommends: ${misc:Recommends}
|
||||||
|
Built-Using: ${misc:Built-Using}
|
||||||
|
Description: dummy package
|
||||||
|
Kubernetes dummy package for misc stuff we don't want to install in production.
|
||||||
|
|
||||||
|
Package: kubernetes-1.30.6-unit-test
|
||||||
|
Architecture: amd64
|
||||||
|
Depends: ${misc:Depends}, ${shlibs:Depends},
|
||||||
|
hostname,
|
||||||
|
rsync,
|
||||||
|
etcd (>= 2.0.9),
|
||||||
|
network-manager,
|
||||||
|
Recommends: ${misc:Recommends}
|
||||||
|
Built-Using: ${misc:Built-Using}
|
||||||
|
Description: Kubernetes unit test
|
||||||
|
Kubernetes unit-test framework.
|
1820
kubernetes/kubernetes-1.30.6/debian/deb_folder/copyright
Normal file
1820
kubernetes/kubernetes-1.30.6/debian/deb_folder/copyright
Normal file
File diff suppressed because it is too large
Load Diff
18
kubernetes/kubernetes-1.30.6/debian/deb_folder/kubeadm.conf
Normal file
18
kubernetes/kubernetes-1.30.6/debian/deb_folder/kubeadm.conf
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# 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
|
@ -0,0 +1,132 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 Wind River Systems, Inc.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
# This script does minimal cgroup setup for kubelet. This creates k8s-infra
|
||||||
|
# cgroup for a minimal set of resource controllers, and configures cpuset
|
||||||
|
# attributes to span all online cpus and nodes. This will do nothing if
|
||||||
|
# the k8s-infra cgroup already exists (i.e., assume already configured).
|
||||||
|
# NOTE: The creation of directories under /sys/fs/cgroup is volatile, and
|
||||||
|
# does not persist reboots. The cpuset.mems and cpuset.cpus is later updated
|
||||||
|
# by puppet kubernetes.pp manifest.
|
||||||
|
#
|
||||||
|
|
||||||
|
# Define minimal path
|
||||||
|
PATH=/bin:/usr/bin:/usr/local/bin
|
||||||
|
|
||||||
|
# Log info message to /var/log/daemon.log
|
||||||
|
function LOG {
|
||||||
|
logger -p daemon.info "$0($$): $@"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Log error message to /var/log/daemon.log
|
||||||
|
function ERROR {
|
||||||
|
logger -s -p daemon.error "$0($$): ERROR: $@"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Create minimal cgroup directories and configure cpuset attributes if required
|
||||||
|
function create_cgroup {
|
||||||
|
local cg_name=$1
|
||||||
|
local cg_nodeset=$2
|
||||||
|
local cg_cpuset=$3
|
||||||
|
|
||||||
|
local CGROUP=/sys/fs/cgroup
|
||||||
|
local CONTROLLERS_AUTO_DELETED=("pids" "hugetlb")
|
||||||
|
local CONTROLLERS_PRESERVED=("cpuset" "memory" "cpu,cpuacct" "systemd")
|
||||||
|
local cnt=''
|
||||||
|
local CGDIR=''
|
||||||
|
local RC=0
|
||||||
|
|
||||||
|
# Ensure that these cgroups are created every time as they are auto deleted
|
||||||
|
for cnt in ${CONTROLLERS_AUTO_DELETED[@]}; do
|
||||||
|
CGDIR=${CGROUP}/${cnt}/${cg_name}
|
||||||
|
if [ -d ${CGDIR} ]; then
|
||||||
|
LOG "Nothing to do, already configured: ${CGDIR}."
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
LOG "Creating: ${CGDIR}"
|
||||||
|
mkdir -p ${CGDIR}
|
||||||
|
RC=$?
|
||||||
|
if [ ${RC} -ne 0 ]; then
|
||||||
|
ERROR "Creating: ${CGDIR}, rc=${RC}"
|
||||||
|
exit ${RC}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# These cgroups are preserved so if any of these are encountered additional
|
||||||
|
# cgroup setup is not required
|
||||||
|
for cnt in ${CONTROLLERS_PRESERVED[@]}; do
|
||||||
|
CGDIR=${CGROUP}/${cnt}/${cg_name}
|
||||||
|
if [ -d ${CGDIR} ]; then
|
||||||
|
LOG "Nothing to do, already configured: ${CGDIR}."
|
||||||
|
exit ${RC}
|
||||||
|
fi
|
||||||
|
LOG "Creating: ${CGDIR}"
|
||||||
|
mkdir -p ${CGDIR}
|
||||||
|
RC=$?
|
||||||
|
if [ ${RC} -ne 0 ]; then
|
||||||
|
ERROR "Creating: ${CGDIR}, rc=${RC}"
|
||||||
|
exit ${RC}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Customize cpuset attributes
|
||||||
|
LOG "Configuring cgroup: ${cg_name}, nodeset: ${cg_nodeset}, cpuset: ${cg_cpuset}"
|
||||||
|
CGDIR=${CGROUP}/cpuset/${cg_name}
|
||||||
|
local CGMEMS=${CGDIR}/cpuset.mems
|
||||||
|
local CGCPUS=${CGDIR}/cpuset.cpus
|
||||||
|
local CGTASKS=${CGDIR}/tasks
|
||||||
|
|
||||||
|
# Assign cgroup memory nodeset
|
||||||
|
LOG "Assign nodeset ${cg_nodeset} to ${CGMEMS}"
|
||||||
|
echo ${cg_nodeset} > ${CGMEMS}
|
||||||
|
RC=$?
|
||||||
|
if [ ${RC} -ne 0 ]; then
|
||||||
|
ERROR "Unable to write to: ${CGMEMS}, rc=${RC}"
|
||||||
|
exit ${RC}
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Assign cgroup cpus
|
||||||
|
LOG "Assign cpuset ${cg_cpuset} to ${CGCPUS}"
|
||||||
|
echo ${cg_cpuset} > ${CGCPUS}
|
||||||
|
RC=$?
|
||||||
|
if [ ${RC} -ne 0 ]; then
|
||||||
|
ERROR "Assigning: ${cg_cpuset} to ${CGCPUS}, rc=${RC}"
|
||||||
|
exit ${RC}
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Set file ownership
|
||||||
|
chown root:root ${CGMEMS} ${CGCPUS} ${CGTASKS}
|
||||||
|
RC=$?
|
||||||
|
if [ ${RC} -ne 0 ]; then
|
||||||
|
ERROR "Setting owner for: ${CGMEMS}, ${CGCPUS}, ${CGTASKS}, rc=${RC}"
|
||||||
|
exit ${RC}
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Set file mode permissions
|
||||||
|
chmod 644 ${CGMEMS} ${CGCPUS} ${CGTASKS}
|
||||||
|
RC=$?
|
||||||
|
if [ ${RC} -ne 0 ]; then
|
||||||
|
ERROR "Setting mode for: ${CGMEMS}, ${CGCPUS}, ${CGTASKS}, rc=${RC}"
|
||||||
|
exit ${RC}
|
||||||
|
fi
|
||||||
|
|
||||||
|
return ${RC}
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ ${UID} -ne 0 ]; then
|
||||||
|
ERROR "Require sudo/root."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Configure default kubepods cpuset to span all online cpus and nodes.
|
||||||
|
ONLINE_NODESET=$(/bin/cat /sys/devices/system/node/online)
|
||||||
|
ONLINE_CPUSET=$(/bin/cat /sys/devices/system/cpu/online)
|
||||||
|
|
||||||
|
# Configure kubelet cgroup to match cgroupRoot.
|
||||||
|
create_cgroup 'k8s-infra' ${ONLINE_NODESET} ${ONLINE_CPUSET}
|
||||||
|
|
||||||
|
exit $?
|
||||||
|
|
@ -0,0 +1,2 @@
|
|||||||
|
usr/local/kubernetes/1.30.6/stage2/usr/bin/kubectl
|
||||||
|
usr/local/kubernetes/1.30.6/stage2/usr/share/bash-completion/completions/kubectl
|
@ -0,0 +1,9 @@
|
|||||||
|
## Generated man pages: TODO
|
||||||
|
manpage-has-bad-whatis-entry usr/share/man/*
|
||||||
|
manpage-has-errors-from-man usr/share/man/man1/*
|
||||||
|
|
||||||
|
## Bash-completion script does not have to be executable:
|
||||||
|
script-not-executable usr/share/bash-completion/completions/kubectl
|
||||||
|
|
||||||
|
## Override annoying/useless messages
|
||||||
|
kubernetes-client: spelling-error-in-binary
|
@ -0,0 +1 @@
|
|||||||
|
usr/local/kubernetes/1.30.6/stage2/etc/systemd/system/kubelet.service.d/
|
@ -0,0 +1,2 @@
|
|||||||
|
usr/local/kubernetes/1.30.6/stage1/usr/bin/kubeadm
|
||||||
|
usr/local/kubernetes/1.30.6/stage2/etc/systemd/system/kubelet.service.d/kubeadm.conf
|
@ -0,0 +1,5 @@
|
|||||||
|
etc/kubernetes-1.30.6
|
||||||
|
etc/kubernetes-1.30.6/addons
|
||||||
|
etc/kubernetes-1.30.6/addons/volumesnapshots
|
||||||
|
etc/kubernetes-1.30.6/addons/volumesnapshots/crd
|
||||||
|
etc/kubernetes-1.30.6/addons/volumesnapshots/volume-snapshot-controller
|
@ -0,0 +1,8 @@
|
|||||||
|
usr/bin/kube-apiserver
|
||||||
|
usr/bin/kube-controller-manager
|
||||||
|
usr/bin/kube-scheduler
|
||||||
|
etc/kubernetes-1.30.6/addons/volumesnapshots/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml
|
||||||
|
etc/kubernetes-1.30.6/addons/volumesnapshots/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml
|
||||||
|
etc/kubernetes-1.30.6/addons/volumesnapshots/crd/snapshot.storage.k8s.io_volumesnapshots.yaml
|
||||||
|
etc/kubernetes-1.30.6/addons/volumesnapshots/volume-snapshot-controller/volume-snapshot-controller-deployment.yaml
|
||||||
|
etc/kubernetes-1.30.6/addons/volumesnapshots/volume-snapshot-controller/rbac-volume-snapshot-controller.yaml
|
@ -0,0 +1,7 @@
|
|||||||
|
## No manual page for hyperkube
|
||||||
|
kubernetes-master: binary-without-manpage usr/bin/hyperkube
|
||||||
|
|
||||||
|
## Override annoying/useless messages
|
||||||
|
kubernetes-master: spelling-error-in-binary
|
||||||
|
kubernetes-master: manpage-has-errors-from-man usr/share/man/man1/*
|
||||||
|
kubernetes-master: manpage-has-bad-whatis-entry usr/share/man/man1/*
|
@ -0,0 +1,3 @@
|
|||||||
|
src/k8s.io/kubernetes/README.md
|
||||||
|
src/k8s.io/kubernetes/SUPPORT.md
|
||||||
|
src/k8s.io/kubernetes/_output/NOTICE
|
@ -0,0 +1 @@
|
|||||||
|
usr/bin/kube-proxy
|
@ -0,0 +1,10 @@
|
|||||||
|
# kubernetes-client
|
||||||
|
src/k8s.io/kubernetes/_output/man/kubeadm*
|
||||||
|
src/k8s.io/kubernetes/_output/man/kubectl*
|
||||||
|
# kubernetes-master
|
||||||
|
src/k8s.io/kubernetes/_output/man/kube-apiserver*
|
||||||
|
src/k8s.io/kubernetes/_output/man/kube-scheduler*
|
||||||
|
src/k8s.io/kubernetes/_output/man/kube-controller-manager*
|
||||||
|
# kubernetes-node
|
||||||
|
src/k8s.io/kubernetes/_output/man/kubelet*
|
||||||
|
src/k8s.io/kubernetes/_output/man/kube-proxy*
|
@ -0,0 +1,2 @@
|
|||||||
|
usr/local/kubernetes/1.30.6/stage2/usr/bin/kubelet
|
||||||
|
usr/local/kubernetes/1.30.6/stage2/usr/bin/kubelet-cgroup-setup.sh
|
@ -0,0 +1,4 @@
|
|||||||
|
## Override annoying/useless messages
|
||||||
|
kubernetes-node: spelling-error-in-binary
|
||||||
|
kubernetes-node: manpage-has-errors-from-man usr/share/man/man1/*
|
||||||
|
kubernetes-node: manpage-has-bad-whatis-entry usr/share/man/man1/*
|
@ -0,0 +1 @@
|
|||||||
|
var/lib/kubernetes-unit-test/
|
119
kubernetes/kubernetes-1.30.6/debian/deb_folder/rules
Normal file
119
kubernetes/kubernetes-1.30.6/debian/deb_folder/rules
Normal file
@ -0,0 +1,119 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 Wind River Systems, Inc.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
|
# This debian/rules file is based on:
|
||||||
|
# https://packages.debian.org/source/bookworm/kubernetes
|
||||||
|
# http://deb.debian.org/debian/pool/main/k/kubernetes/kubernetes_1.20.5+really1.20.2-1.1.debian.tar.xz
|
||||||
|
|
||||||
|
# Customizations support kubernetes upgrades:
|
||||||
|
# - specific directory locations with kubernetes version, upgrades stage,
|
||||||
|
# and version specific golang compiler
|
||||||
|
# - build output not required on the production host is moved to
|
||||||
|
# kubernetes-misc package
|
||||||
|
|
||||||
|
kube_version := 1.30.6
|
||||||
|
kube_git_version := v${kube_version}
|
||||||
|
name := kubernetes-${kube_version}
|
||||||
|
go_version := 1.22.8
|
||||||
|
_stage1 := /usr/local/kubernetes/${kube_version}/stage1
|
||||||
|
_stage2 := /usr/local/kubernetes/${kube_version}/stage2
|
||||||
|
_bindir := /usr/bin
|
||||||
|
kube_dir := src/k8s.io/kubernetes
|
||||||
|
output_dir := ${kube_dir}/_output
|
||||||
|
output_bindir := ${output_dir}/bin
|
||||||
|
output_mandir := ${output_dir}/man
|
||||||
|
DEBIAN_DESTDIR := $(CURDIR)/debian/tmp
|
||||||
|
export DH_VERBOSE = 1
|
||||||
|
export PATH := /usr/lib/go-1.22/bin:$(PATH)
|
||||||
|
export KUBE_GIT_TREE_STATE="clean"
|
||||||
|
export KUBE_GIT_COMMIT=${kube_version}
|
||||||
|
export KUBE_GIT_VERSION=${kube_git_version}
|
||||||
|
export KUBE_EXTRA_GOPATH=$(pwd)/Godeps/_workspace
|
||||||
|
export PBR_VERSION=${kube_git_version}
|
||||||
|
|
||||||
|
bins = kube-proxy kube-apiserver kube-controller-manager kubelet kubeadm kube-scheduler kubectl
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@ --with=bash-completion --builddirectory=src --without=build-stamp
|
||||||
|
|
||||||
|
override_dh_auto_build:
|
||||||
|
# we support multiple go compilers; indicate the version we are using
|
||||||
|
go version
|
||||||
|
which go
|
||||||
|
|
||||||
|
mkdir -pv ${kube_dir}
|
||||||
|
# keep the .go-version and ignore unwanted files
|
||||||
|
mv -v $$(ls -a -I ".." -I "." -I ".git*" -I ".generated_files" | grep -v "^src$$" | grep -v "^debian$$") ${kube_dir}/.
|
||||||
|
cd ${kube_dir} && make WHAT="$(addprefix cmd/,$(bins) genman)"
|
||||||
|
|
||||||
|
# manpages
|
||||||
|
mkdir -p ${output_mandir}
|
||||||
|
echo $(bins) | xargs --max-args=1 ${output_bindir}/genman ${output_mandir}
|
||||||
|
|
||||||
|
# NOTICE files
|
||||||
|
find ${kube_dir}/vendor -name '*NOTICE*' -print0 | xargs -0 head -n1000 > ${output_dir}/NOTICE
|
||||||
|
|
||||||
|
override_dh_install:
|
||||||
|
# kube_version stage1
|
||||||
|
install -m 755 -d ${DEBIAN_DESTDIR}${_stage1}${_bindir}
|
||||||
|
install -p -m 750 -t ${DEBIAN_DESTDIR}${_stage1}${_bindir} ${output_bindir}/kubeadm
|
||||||
|
|
||||||
|
# kube_version stage2
|
||||||
|
install -m 755 -d ${DEBIAN_DESTDIR}${_stage2}${_bindir}
|
||||||
|
install -d -m 0755 ${DEBIAN_DESTDIR}${_stage2}/etc/systemd/system/kubelet.service.d
|
||||||
|
install -p -m 0644 -t ${DEBIAN_DESTDIR}${_stage2}/etc/systemd/system/kubelet.service.d debian/kubeadm.conf
|
||||||
|
install -p -m 0700 -t ${DEBIAN_DESTDIR}${_stage2}${_bindir} debian/kubelet-cgroup-setup.sh
|
||||||
|
install -p -m 750 -t ${DEBIAN_DESTDIR}${_stage2}${_bindir} ${output_bindir}/kubelet
|
||||||
|
install -p -m 755 -t ${DEBIAN_DESTDIR}${_stage2}${_bindir} ${output_bindir}/kubectl
|
||||||
|
# bash completions
|
||||||
|
install -d -m 0755 ${DEBIAN_DESTDIR}${_stage2}/usr/share/bash-completion/completions/
|
||||||
|
${DEBIAN_DESTDIR}${_stage2}${_bindir}/kubectl completion bash > ${DEBIAN_DESTDIR}${_stage2}/usr/share/bash-completion/completions/kubectl
|
||||||
|
|
||||||
|
# remaining are not kube_version staged, i.e., kubernetes-master, kubernetes-misc
|
||||||
|
install -m 755 -d ${DEBIAN_DESTDIR}${_bindir}
|
||||||
|
install -p -m 750 -t ${DEBIAN_DESTDIR}${_bindir} ${output_bindir}/kube-apiserver
|
||||||
|
install -p -m 750 -t ${DEBIAN_DESTDIR}${_bindir} ${output_bindir}/kube-controller-manager
|
||||||
|
install -p -m 750 -t ${DEBIAN_DESTDIR}${_bindir} ${output_bindir}/kube-scheduler
|
||||||
|
install -p -m 750 -t ${DEBIAN_DESTDIR}${_bindir} ${output_bindir}/kube-proxy
|
||||||
|
|
||||||
|
# specific cluster addons for optional use
|
||||||
|
install -d -m 0755 ${DEBIAN_DESTDIR}/etc/${name}/addons
|
||||||
|
|
||||||
|
# Addon: volumesnapshots
|
||||||
|
install -d -m 0755 ${DEBIAN_DESTDIR}/etc/${name}/addons/volumesnapshots
|
||||||
|
install -d -m 0755 ${DEBIAN_DESTDIR}/etc/${name}/addons/volumesnapshots/crd
|
||||||
|
install -m 0644 -t ${DEBIAN_DESTDIR}/etc/${name}/addons/volumesnapshots/crd ${kube_dir}/cluster/addons/volumesnapshots/crd/*
|
||||||
|
install -d -m 0755 ${DEBIAN_DESTDIR}/etc/${name}/addons/volumesnapshots/volume-snapshot-controller
|
||||||
|
install -m 0644 -t ${DEBIAN_DESTDIR}/etc/${name}/addons/volumesnapshots/volume-snapshot-controller ${kube_dir}/cluster/addons/volumesnapshots/volume-snapshot-controller/*
|
||||||
|
|
||||||
|
# unit-test
|
||||||
|
# - everything from the root directory is needed
|
||||||
|
# - unit-tests needs source code
|
||||||
|
# - integration tests needs docs and other files
|
||||||
|
# - test-cmd.sh atm needs cluster, examples and other
|
||||||
|
install -d -m 0755 ${DEBIAN_DESTDIR}/var/lib/kubernetes-unit-test/
|
||||||
|
cp -a src ${DEBIAN_DESTDIR}/var/lib/kubernetes-unit-test/
|
||||||
|
# remove generated output, i.e., binaries, go cache, man pages, violations report
|
||||||
|
rm -rf ${DEBIAN_DESTDIR}/var/lib/kubernetes-unit-test/${output_dir}
|
||||||
|
|
||||||
|
dh_install
|
||||||
|
|
||||||
|
override_dh_auto_test:
|
||||||
|
${kube_dir}/hack/test-cmd.sh
|
||||||
|
${kube_dir}/hack/benchmark-go.sh
|
||||||
|
${kube_dir}/hack/test-go.sh
|
||||||
|
${kube_dir}/hack/test-integration.sh --use_go_build
|
||||||
|
|
||||||
|
override_dh_fixperms:
|
||||||
|
dh_fixperms -Xkube-apiserver -Xkubeadm -Xkubeadm.conf \
|
||||||
|
-Xkubelet-cgroup-setup.sh -Xkube-apiserver \
|
||||||
|
-Xkube-controller-manager -Xkube-scheduler \
|
||||||
|
-Xkube-proxy -Xkubelet -Xkubectl
|
||||||
|
|
||||||
|
override_dh_usrlocal:
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
3.0 (quilt)
|
10
kubernetes/kubernetes-1.30.6/debian/meta_data.yaml
Normal file
10
kubernetes/kubernetes-1.30.6/debian/meta_data.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
debver: 1.30.6
|
||||||
|
dl_path:
|
||||||
|
name: kubernetes-1.30.6.tar.gz
|
||||||
|
url: https://github.com/kubernetes/kubernetes/archive/refs/tags/v1.30.6.tar.gz
|
||||||
|
sha256sum: 8ef8826088ab531e9162ae7e0c3e4f197f807a69b5f1903324cf6f2df84083e9
|
||||||
|
revision:
|
||||||
|
dist: ${STX_DIST}
|
||||||
|
GITREVCOUNT:
|
||||||
|
BASE_SRCREV: d601d7d9503436065882ca116a0ac5235cadb651
|
||||||
|
SRC_DIR: ${MY_REPO}/stx/integ/kubernetes/kubernetes-1.30.6
|
Loading…
Reference in New Issue
Block a user