Merge "Add debian package for cni & isolcpus"
This commit is contained in:
commit
f1955eff93
10
kubernetes/cni/plugins/debian/meta_data.yaml
Normal file
10
kubernetes/cni/plugins/debian/meta_data.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
debname: golang-github-containernetworking-plugins
|
||||
debver: 0.9.0-1
|
||||
dl_path:
|
||||
name: golang-github-containernetworking-plugins-debian-0.9.0-1.tar.gz
|
||||
url: https://salsa.debian.org/go-team/packages/golang-github-containernetworking-plugins/-/archive/debian/0.9.0-1/golang-github-containernetworking-plugins-debian-0.9.0-1.tar.gz
|
||||
md5sum: 8e38d8a13f5dd5ddc17f1a1b21fd3f9d
|
||||
revision:
|
||||
dist: $STX_DIST
|
||||
PKG_GITREVCOUNT: true
|
@ -0,0 +1,5 @@
|
||||
isolcpus-device-plugin (1.0-1) unstable; urgency=medium
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Daniel Safta <daniel.safta@windriver.com> Tue, 20 Oct 2021 11:44:30 -0400
|
@ -0,0 +1,15 @@
|
||||
Source: isolcpus-device-plugin
|
||||
Section: admin
|
||||
Priority: optional
|
||||
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
|
||||
Build-Depends: debhelper-compat (= 13) ,
|
||||
dh-golang ,
|
||||
golang-any
|
||||
Standards-Version: 4.4.1
|
||||
Homepage: https://www.starlingx.io
|
||||
|
||||
Package: isolcpus-device-plugin
|
||||
Architecture: any
|
||||
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||
Description: Expose isolated CPUs to Kubernetes cluster.
|
||||
Expose isolated CPUs to Kubernetes as devices via the device plugin API.
|
@ -0,0 +1,24 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
|
||||
Upstream-Name: deviceplugin
|
||||
Upstream-Contact: https://github.com/intel/
|
||||
Source: https://github.com/intel/intel-device-plugins-for-kubernetes
|
||||
Files: *
|
||||
Copyright: (C) 2012-2018 https://github.com/intel/intel-device-plugins-for-kubernetes
|
||||
License: Apache-2
|
||||
|
||||
License: Apache-2
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
.
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
.
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
.
|
||||
On Debian-based systems the full text of the Apache version 2.0 license
|
||||
can be found in `/usr/share/common-licenses/Apache-2.0'.
|
@ -0,0 +1,2 @@
|
||||
usr/local/sbin
|
||||
etc/pmon.d
|
@ -0,0 +1,16 @@
|
||||
;
|
||||
; Copyright (c) 2019 Wind River Systems, Inc.
|
||||
;
|
||||
; SPDX-License-Identifier: Apache-2.0
|
||||
;
|
||||
[process]
|
||||
process = isolcpu_plugin
|
||||
service = isolcpu_plugin
|
||||
pidfile = /var/run/isolcpu_plugin.pid
|
||||
style = lsb ; lsb
|
||||
severity = major ; minor, major, critical
|
||||
restarts = 3 ; restarts before error assertion
|
||||
startuptime = 5 ; seconds to wait after process start
|
||||
interval = 5 ; number of seconds to wait between restarts
|
||||
debounce = 20 ; number of seconds to wait before degrade clear
|
||||
subfunction = worker ; pmon will start monitoring once worker config is complete
|
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Kubernetes Isolated CPU Plugin Daemon
|
||||
Documentation=https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/
|
||||
After=kubelet.service
|
||||
Requires=kubelet.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/local/sbin/isolcpu_plugin
|
||||
ExecStartPost=/bin/bash -c 'echo $MAINPID > /var/run/isolcpu_plugin.pid'
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -0,0 +1,3 @@
|
||||
isolcpu_plugin.service /lib/systemd/system/
|
||||
isolcpu_plugin.conf /etc/pmond.d/
|
||||
isolcpu_plugin /usr/local/sbin/
|
@ -0,0 +1,2 @@
|
||||
file-in-usr-local
|
||||
dir-in-usr-local
|
13
kubernetes/plugins/isolcpus-device-plugin/debian/deb_folder/rules
Executable file
13
kubernetes/plugins/isolcpus-device-plugin/debian/deb_folder/rules
Executable file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_build:
|
||||
go build -mod=vendor -ldflags=-linkmode=external
|
||||
|
||||
override_dh_auto_test:
|
||||
echo "do nothing"
|
||||
|
||||
override_dh_usrlocal:
|
||||
echo "do nothing"
|
@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
@ -0,0 +1,7 @@
|
||||
---
|
||||
debname: isolcpus-device-plugin
|
||||
debver: 1.0-1
|
||||
src_path: files
|
||||
revision:
|
||||
dist: $STX_DIST
|
||||
PKG_GITREVCOUNT: true
|
Loading…
Reference in New Issue
Block a user