mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
build: Remove deb and rpm build definitions/specs
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
This commit is contained in:
parent
6858c25ee4
commit
baec6d4af5
@ -1,11 +0,0 @@
|
|||||||
# 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" generate 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
|
|
@ -1,2 +0,0 @@
|
|||||||
# The file is provided as part of the kubeadm package
|
|
||||||
net.ipv4.ip_forward = 1
|
|
267
build/debs/BUILD
267
build/debs/BUILD
@ -1,267 +0,0 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("@io_k8s_repo_infra//defs:deb.bzl", "deb_data", "k8s_deb")
|
|
||||||
load("@io_k8s_repo_infra//defs:build.bzl", "release_filegroup")
|
|
||||||
load("@io_k8s_repo_infra//defs:pkg.bzl", "pkg_tar")
|
|
||||||
load(
|
|
||||||
"//build:platforms.bzl",
|
|
||||||
"CLIENT_PLATFORMS",
|
|
||||||
"NODE_PLATFORMS",
|
|
||||||
"SERVER_PLATFORMS",
|
|
||||||
"for_platforms",
|
|
||||||
)
|
|
||||||
load("//build:workspace.bzl", "CNI_VERSION", "CRI_TOOLS_VERSION")
|
|
||||||
|
|
||||||
# We do not include kube-scheduler, kube-controller-manager,
|
|
||||||
# kube-apiserver, and kube-proxy in this list even though we
|
|
||||||
# produce debs for them. We recommend that they be run in docker
|
|
||||||
# images. We use the debs that we produce here to build those
|
|
||||||
# images.
|
|
||||||
release_filegroup(
|
|
||||||
name = "debs",
|
|
||||||
conditioned_srcs = for_platforms(
|
|
||||||
default = [],
|
|
||||||
for_client = [":kubectl.deb"],
|
|
||||||
for_node = [
|
|
||||||
":cri-tools.deb",
|
|
||||||
":kubeadm.deb",
|
|
||||||
":kubelet.deb",
|
|
||||||
":kubernetes-cni.deb",
|
|
||||||
],
|
|
||||||
only_os = "linux",
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
# Create genrules to copy the arch-specific debs to debs without the arch in their filename.
|
|
||||||
genrule(
|
|
||||||
name = "kubectl",
|
|
||||||
srcs = select(for_platforms(
|
|
||||||
for_client = [":kubectl-{ARCH}.deb"],
|
|
||||||
only_os = "linux",
|
|
||||||
)),
|
|
||||||
outs = ["kubectl.deb"],
|
|
||||||
cmd = "cp $< $@",
|
|
||||||
output_to_bindir = True,
|
|
||||||
)
|
|
||||||
|
|
||||||
[genrule(
|
|
||||||
name = pkg,
|
|
||||||
srcs = select(for_platforms(
|
|
||||||
for_node = [":%s-{ARCH}.deb" % pkg],
|
|
||||||
only_os = "linux",
|
|
||||||
)),
|
|
||||||
outs = ["%s.deb" % pkg],
|
|
||||||
cmd = "cp $< $@",
|
|
||||||
output_to_bindir = True,
|
|
||||||
) for pkg in [
|
|
||||||
"cri-tools",
|
|
||||||
"kubeadm",
|
|
||||||
"kubelet",
|
|
||||||
"kubernetes-cni",
|
|
||||||
]]
|
|
||||||
|
|
||||||
[deb_data(
|
|
||||||
name = "kubectl",
|
|
||||||
data = [
|
|
||||||
{
|
|
||||||
"files": ["//cmd/kubectl"],
|
|
||||||
"mode": "0755",
|
|
||||||
"dir": "/usr/bin",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
goarch = arch,
|
|
||||||
tags = ["manual"],
|
|
||||||
) for arch in CLIENT_PLATFORMS["linux"]]
|
|
||||||
|
|
||||||
[[deb_data(
|
|
||||||
name = binary,
|
|
||||||
data = [
|
|
||||||
{
|
|
||||||
"files": ["//cmd/" + binary],
|
|
||||||
"mode": "0755",
|
|
||||||
"dir": "/usr/bin",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
goarch = arch,
|
|
||||||
tags = ["manual"],
|
|
||||||
) for binary in [
|
|
||||||
"kube-apiserver",
|
|
||||||
"kube-controller-manager",
|
|
||||||
"kube-proxy",
|
|
||||||
"kube-scheduler",
|
|
||||||
]] for arch in SERVER_PLATFORMS["linux"]]
|
|
||||||
|
|
||||||
[deb_data(
|
|
||||||
name = "kubelet",
|
|
||||||
data = [
|
|
||||||
{
|
|
||||||
"files": ["//cmd/kubelet"],
|
|
||||||
"mode": "0755",
|
|
||||||
"dir": "/usr/bin",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"files": ["kubelet.service"],
|
|
||||||
"mode": "644",
|
|
||||||
"dir": "/lib/systemd/system",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
goarch = arch,
|
|
||||||
tags = ["manual"],
|
|
||||||
) for arch in NODE_PLATFORMS["linux"]]
|
|
||||||
|
|
||||||
[deb_data(
|
|
||||||
name = "kubeadm",
|
|
||||||
data = [
|
|
||||||
{
|
|
||||||
"files": ["//cmd/kubeadm"],
|
|
||||||
"mode": "0755",
|
|
||||||
"dir": "/usr/bin",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"files": ["10-kubeadm.conf"],
|
|
||||||
"mode": "644",
|
|
||||||
"dir": "/etc/systemd/system/kubelet.service.d",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"files": ["kubeadm.conf"],
|
|
||||||
"mode": "644",
|
|
||||||
"dir": "/usr/lib/modules-load.d",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"files": ["50-kubeadm.conf"],
|
|
||||||
"mode": "644",
|
|
||||||
"dir": "/etc/sysctl.d",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
goarch = arch,
|
|
||||||
tags = ["manual"],
|
|
||||||
) for arch in NODE_PLATFORMS["linux"]]
|
|
||||||
|
|
||||||
[pkg_tar(
|
|
||||||
name = "kubernetes-cni-data-%s" % goarch,
|
|
||||||
package_dir = "/opt/cni/bin",
|
|
||||||
tags = ["manual"],
|
|
||||||
deps = ["@kubernetes_cni_%s//file" % goarch],
|
|
||||||
) for goarch in NODE_PLATFORMS["linux"]]
|
|
||||||
|
|
||||||
[pkg_tar(
|
|
||||||
name = "cri-tools-data-%s" % goarch,
|
|
||||||
package_dir = "/usr/bin",
|
|
||||||
tags = ["manual"],
|
|
||||||
deps = ["@cri_tools_linux-%s//file" % goarch],
|
|
||||||
) for goarch in NODE_PLATFORMS["linux"]]
|
|
||||||
|
|
||||||
[k8s_deb(
|
|
||||||
name = "kubectl",
|
|
||||||
description = """Kubernetes Command Line Tool
|
|
||||||
The Kubernetes command line tool for interacting with the Kubernetes API.
|
|
||||||
""",
|
|
||||||
goarch = arch,
|
|
||||||
tags = ["manual"],
|
|
||||||
version_file = "//build:os_package_version",
|
|
||||||
) for arch in CLIENT_PLATFORMS["linux"]]
|
|
||||||
|
|
||||||
[k8s_deb(
|
|
||||||
name = "kube-apiserver",
|
|
||||||
description = "Kubernetes API Server",
|
|
||||||
goarch = arch,
|
|
||||||
tags = ["manual"],
|
|
||||||
version_file = "//build:os_package_version",
|
|
||||||
) for arch in SERVER_PLATFORMS["linux"]]
|
|
||||||
|
|
||||||
[k8s_deb(
|
|
||||||
name = "kube-controller-manager",
|
|
||||||
description = "Kubernetes Controller Manager",
|
|
||||||
goarch = arch,
|
|
||||||
tags = ["manual"],
|
|
||||||
version_file = "//build:os_package_version",
|
|
||||||
) for arch in SERVER_PLATFORMS["linux"]]
|
|
||||||
|
|
||||||
[k8s_deb(
|
|
||||||
name = "kube-scheduler",
|
|
||||||
description = "Kubernetes Scheduler",
|
|
||||||
goarch = arch,
|
|
||||||
tags = ["manual"],
|
|
||||||
version_file = "//build:os_package_version",
|
|
||||||
) for arch in SERVER_PLATFORMS["linux"]]
|
|
||||||
|
|
||||||
[k8s_deb(
|
|
||||||
name = "kube-proxy",
|
|
||||||
depends = [
|
|
||||||
"iptables (>= 1.4.21)",
|
|
||||||
"iproute2",
|
|
||||||
],
|
|
||||||
description = "Kubernetes Service Proxy",
|
|
||||||
goarch = arch,
|
|
||||||
tags = ["manual"],
|
|
||||||
version_file = "//build:os_package_version",
|
|
||||||
) for arch in NODE_PLATFORMS["linux"]]
|
|
||||||
|
|
||||||
[k8s_deb(
|
|
||||||
name = "kubelet",
|
|
||||||
depends = [
|
|
||||||
"conntrack",
|
|
||||||
"ebtables",
|
|
||||||
"ethtool",
|
|
||||||
"iproute2",
|
|
||||||
"iptables (>= 1.4.21)",
|
|
||||||
"kubernetes-cni (>= %s)" % CNI_VERSION,
|
|
||||||
"mount",
|
|
||||||
"socat",
|
|
||||||
"util-linux",
|
|
||||||
],
|
|
||||||
description = """Kubernetes Node Agent
|
|
||||||
The node agent of Kubernetes, the container cluster manager
|
|
||||||
""",
|
|
||||||
goarch = arch,
|
|
||||||
tags = ["manual"],
|
|
||||||
version_file = "//build:os_package_version",
|
|
||||||
) for arch in NODE_PLATFORMS["linux"]]
|
|
||||||
|
|
||||||
[k8s_deb(
|
|
||||||
name = "kubeadm",
|
|
||||||
depends = [
|
|
||||||
"kubelet (>= 1.8.0)",
|
|
||||||
"kubectl (>= 1.8.0)",
|
|
||||||
"kubernetes-cni (>= %s)" % CNI_VERSION,
|
|
||||||
"cri-tools (>= 1.11.0)",
|
|
||||||
],
|
|
||||||
description = """Kubernetes Cluster Bootstrapping Tool
|
|
||||||
The Kubernetes command line tool for bootstrapping a Kubernetes cluster.
|
|
||||||
""",
|
|
||||||
goarch = arch,
|
|
||||||
postinst = "postinst",
|
|
||||||
tags = ["manual"],
|
|
||||||
version_file = "//build:os_package_version",
|
|
||||||
) for arch in NODE_PLATFORMS["linux"]]
|
|
||||||
|
|
||||||
[k8s_deb(
|
|
||||||
name = "kubernetes-cni",
|
|
||||||
description = """Kubernetes Packaging of CNI
|
|
||||||
The Container Networking Interface tools for provisioning container networks.
|
|
||||||
""",
|
|
||||||
goarch = arch,
|
|
||||||
tags = ["manual"],
|
|
||||||
version = CNI_VERSION,
|
|
||||||
) for arch in NODE_PLATFORMS["linux"]]
|
|
||||||
|
|
||||||
[k8s_deb(
|
|
||||||
name = "cri-tools",
|
|
||||||
description = """Container Runtime Interface tools (crictl)""",
|
|
||||||
goarch = arch,
|
|
||||||
tags = ["manual"],
|
|
||||||
version = CRI_TOOLS_VERSION,
|
|
||||||
) for arch in NODE_PLATFORMS["linux"]]
|
|
||||||
|
|
||||||
filegroup(
|
|
||||||
name = "package-srcs",
|
|
||||||
srcs = glob(["**"]),
|
|
||||||
tags = ["automanaged"],
|
|
||||||
visibility = ["//visibility:private"],
|
|
||||||
)
|
|
||||||
|
|
||||||
filegroup(
|
|
||||||
name = "all-srcs",
|
|
||||||
srcs = [":package-srcs"],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
)
|
|
@ -1,17 +0,0 @@
|
|||||||
# See the OWNERS docs at https://go.k8s.io/owners
|
|
||||||
|
|
||||||
reviewers:
|
|
||||||
- luxas
|
|
||||||
- mikedanese
|
|
||||||
- pipejakob
|
|
||||||
- chuckha
|
|
||||||
- timothysc
|
|
||||||
- release-engineering-reviewers
|
|
||||||
approvers:
|
|
||||||
- luxas
|
|
||||||
- mikedanese
|
|
||||||
- pipejakob
|
|
||||||
- timothysc
|
|
||||||
- release-engineering-approvers
|
|
||||||
emeritus_approvers:
|
|
||||||
- jbeda
|
|
@ -1,2 +0,0 @@
|
|||||||
# Load br_netfilter module at boot
|
|
||||||
br_netfilter
|
|
@ -1,12 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=kubelet: The Kubernetes Node Agent
|
|
||||||
Documentation=http://kubernetes.io/docs/
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=/usr/bin/kubelet
|
|
||||||
Restart=always
|
|
||||||
StartLimitInterval=0
|
|
||||||
RestartSec=10
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
@ -1,30 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# see: dh_installdeb(1)
|
|
||||||
|
|
||||||
set -o errexit
|
|
||||||
set -o nounset
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
configure)
|
|
||||||
# because kubeadm package adds kubelet drop-ins, we must daemon-reload
|
|
||||||
# and restart kubelet now. restarting kubelet is ok because kubelet
|
|
||||||
# postinst configure step auto-starts it.
|
|
||||||
systemctl daemon-reload 2>/dev/null || true
|
|
||||||
systemctl restart kubelet 2>/dev/null || true
|
|
||||||
;;
|
|
||||||
|
|
||||||
abort-upgrade|abort-remove|abort-deconfigure)
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
echo "postinst called with unknown argument \`$1'" >&2
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# dh_installdeb will replace this with shell code automatically
|
|
||||||
# generated by other debhelper scripts.
|
|
||||||
|
|
||||||
#DEBHELPER#
|
|
||||||
|
|
||||||
exit 0
|
|
@ -1,11 +0,0 @@
|
|||||||
# 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" generate 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/sysconfig/kubelet
|
|
||||||
ExecStart=
|
|
||||||
ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS
|
|
@ -1,2 +0,0 @@
|
|||||||
# The file is provided as part of the kubeadm package
|
|
||||||
net.ipv4.ip_forward = 1
|
|
128
build/rpms/BUILD
128
build/rpms/BUILD
@ -1,128 +0,0 @@
|
|||||||
package(default_visibility = ["//visibility:public"])
|
|
||||||
|
|
||||||
load("//build:platforms.bzl", "CLIENT_PLATFORMS", "NODE_PLATFORMS", "for_platforms")
|
|
||||||
load("//build:workspace.bzl", "CNI_VERSION", "CRI_TOOLS_VERSION")
|
|
||||||
load("@io_k8s_repo_infra//defs:build.bzl", "release_filegroup")
|
|
||||||
load("@io_k8s_repo_infra//defs:rpm.bzl", "pkg_rpm_for_goarch")
|
|
||||||
|
|
||||||
release_filegroup(
|
|
||||||
name = "rpms",
|
|
||||||
conditioned_srcs = for_platforms(
|
|
||||||
default = [],
|
|
||||||
for_client = [":kubectl.rpm"],
|
|
||||||
for_node = [
|
|
||||||
":cri-tools.rpm",
|
|
||||||
":kubeadm.rpm",
|
|
||||||
":kubelet.rpm",
|
|
||||||
":kubernetes-cni.rpm",
|
|
||||||
],
|
|
||||||
only_os = "linux",
|
|
||||||
),
|
|
||||||
tags = ["manual"],
|
|
||||||
visibility = ["//visibility:public"],
|
|
||||||
)
|
|
||||||
|
|
||||||
# Create genrules to copy the arch-specific RPMs to RPMs without the arch in their filename.
|
|
||||||
genrule(
|
|
||||||
name = "kubectl",
|
|
||||||
srcs = select(for_platforms(
|
|
||||||
for_client = [":kubectl-{ARCH}.rpm"],
|
|
||||||
only_os = "linux",
|
|
||||||
)),
|
|
||||||
outs = ["kubectl.rpm"],
|
|
||||||
cmd = "cp $< $@",
|
|
||||||
output_to_bindir = True,
|
|
||||||
)
|
|
||||||
|
|
||||||
[genrule(
|
|
||||||
name = pkg,
|
|
||||||
srcs = select(for_platforms(
|
|
||||||
for_client = [":%s-{ARCH}.rpm" % pkg],
|
|
||||||
only_os = "linux",
|
|
||||||
)),
|
|
||||||
outs = ["%s.rpm" % pkg],
|
|
||||||
cmd = "cp $< $@",
|
|
||||||
output_to_bindir = True,
|
|
||||||
) for pkg in [
|
|
||||||
"cri-tools",
|
|
||||||
"kubeadm",
|
|
||||||
"kubelet",
|
|
||||||
"kubernetes-cni",
|
|
||||||
]]
|
|
||||||
|
|
||||||
[pkg_rpm_for_goarch(
|
|
||||||
name = "kubectl",
|
|
||||||
changelog = "//:CHANGELOG.md",
|
|
||||||
data = [
|
|
||||||
"//cmd/kubectl",
|
|
||||||
],
|
|
||||||
goarch = arch,
|
|
||||||
spec_file = "kubectl.spec",
|
|
||||||
tags = ["manual"],
|
|
||||||
version_file = "//build:os_package_version",
|
|
||||||
) for arch in CLIENT_PLATFORMS["linux"]]
|
|
||||||
|
|
||||||
[pkg_rpm_for_goarch(
|
|
||||||
name = "kubelet",
|
|
||||||
changelog = "//:CHANGELOG.md",
|
|
||||||
data = [
|
|
||||||
"kubelet.service",
|
|
||||||
"//cmd/kubelet",
|
|
||||||
],
|
|
||||||
goarch = arch,
|
|
||||||
spec_file = "kubelet.spec",
|
|
||||||
tags = ["manual"],
|
|
||||||
version_file = "//build:os_package_version",
|
|
||||||
) for arch in NODE_PLATFORMS["linux"]]
|
|
||||||
|
|
||||||
[pkg_rpm_for_goarch(
|
|
||||||
name = "kubeadm",
|
|
||||||
changelog = "//:CHANGELOG.md",
|
|
||||||
data = [
|
|
||||||
"10-kubeadm.conf",
|
|
||||||
"50-kubeadm.conf",
|
|
||||||
"kubeadm.conf",
|
|
||||||
"kubelet.env",
|
|
||||||
"//cmd/kubeadm",
|
|
||||||
],
|
|
||||||
goarch = arch,
|
|
||||||
spec_file = "kubeadm.spec",
|
|
||||||
tags = ["manual"],
|
|
||||||
version_file = "//build:os_package_version",
|
|
||||||
) for arch in NODE_PLATFORMS["linux"]]
|
|
||||||
|
|
||||||
[pkg_rpm_for_goarch(
|
|
||||||
name = "kubernetes-cni",
|
|
||||||
changelog = "//:CHANGELOG.md",
|
|
||||||
data = [
|
|
||||||
"@kubernetes_cni_{GOARCH}//file",
|
|
||||||
],
|
|
||||||
goarch = arch,
|
|
||||||
spec_file = "kubernetes-cni.spec",
|
|
||||||
tags = ["manual"],
|
|
||||||
version = CNI_VERSION,
|
|
||||||
) for arch in NODE_PLATFORMS["linux"]]
|
|
||||||
|
|
||||||
[pkg_rpm_for_goarch(
|
|
||||||
name = "cri-tools",
|
|
||||||
data = [
|
|
||||||
"@cri_tools_linux-{GOARCH}//file",
|
|
||||||
],
|
|
||||||
goarch = arch,
|
|
||||||
spec_file = "cri-tools.spec",
|
|
||||||
tags = ["manual"],
|
|
||||||
version = CRI_TOOLS_VERSION,
|
|
||||||
) for arch in NODE_PLATFORMS["linux"]]
|
|
||||||
|
|
||||||
filegroup(
|
|
||||||
name = "package-srcs",
|
|
||||||
srcs = glob(["**"]),
|
|
||||||
tags = ["automanaged"],
|
|
||||||
visibility = ["//visibility:private"],
|
|
||||||
)
|
|
||||||
|
|
||||||
filegroup(
|
|
||||||
name = "all-srcs",
|
|
||||||
srcs = [":package-srcs"],
|
|
||||||
tags = ["automanaged"],
|
|
||||||
)
|
|
@ -1,17 +0,0 @@
|
|||||||
# See the OWNERS docs at https://go.k8s.io/owners
|
|
||||||
|
|
||||||
reviewers:
|
|
||||||
- luxas
|
|
||||||
- mikedanese
|
|
||||||
- pipejakob
|
|
||||||
- chuckha
|
|
||||||
- timothysc
|
|
||||||
- release-engineering-reviewers
|
|
||||||
approvers:
|
|
||||||
- luxas
|
|
||||||
- mikedanese
|
|
||||||
- pipejakob
|
|
||||||
- timothysc
|
|
||||||
- release-engineering-approvers
|
|
||||||
emeritus_approvers:
|
|
||||||
- jbeda
|
|
@ -1,21 +0,0 @@
|
|||||||
Name: cri-tools
|
|
||||||
Version: OVERRIDE_THIS
|
|
||||||
Release: 00
|
|
||||||
License: ASL 2.0
|
|
||||||
Summary: Container Runtime Interface tools
|
|
||||||
|
|
||||||
URL: https://kubernetes.io
|
|
||||||
|
|
||||||
%description
|
|
||||||
Binaries to interface with the container runtime.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
# This has to be hard coded because bazel does a path substitution before rpm's %{version} is substituted.
|
|
||||||
tar -xzf {cri_tools.tgz}
|
|
||||||
|
|
||||||
%install
|
|
||||||
install -m 755 -d %{buildroot}%{_bindir}
|
|
||||||
install -p -m 755 -t %{buildroot}%{_bindir} crictl
|
|
||||||
|
|
||||||
%files
|
|
||||||
%{_bindir}/crictl
|
|
@ -1,2 +0,0 @@
|
|||||||
# Load br_netfilter module at boot
|
|
||||||
br_netfilter
|
|
@ -1,35 +0,0 @@
|
|||||||
Name: kubeadm
|
|
||||||
Version: OVERRIDE_THIS
|
|
||||||
Release: 00
|
|
||||||
License: ASL 2.0
|
|
||||||
Summary: Container Cluster Manager - Kubernetes Cluster Bootstrapping Tool
|
|
||||||
Requires: kubelet >= 1.8.0
|
|
||||||
Requires: kubectl >= 1.8.0
|
|
||||||
Requires: kubernetes-cni >= 0.8.5
|
|
||||||
Requires: cri-tools >= 1.11.0
|
|
||||||
|
|
||||||
URL: https://kubernetes.io
|
|
||||||
|
|
||||||
%description
|
|
||||||
Command-line utility for deploying a Kubernetes cluster.
|
|
||||||
|
|
||||||
%install
|
|
||||||
install -m 755 -d %{buildroot}%{_bindir}
|
|
||||||
install -m 755 -d %{buildroot}%{_sysconfdir}/systemd/system/
|
|
||||||
install -m 755 -d %{buildroot}%{_sysconfdir}/systemd/system/kubelet.service.d/
|
|
||||||
install -m 755 -d %{buildroot}%{_sysconfdir}/sysconfig/
|
|
||||||
install -p -m 755 -t %{buildroot}%{_bindir} {kubeadm}
|
|
||||||
install -p -m 644 -t %{buildroot}%{_sysconfdir}/systemd/system/kubelet.service.d/ {10-kubeadm.conf}
|
|
||||||
install -p -m 644 -T {kubelet.env} %{buildroot}%{_sysconfdir}/sysconfig/kubelet
|
|
||||||
mkdir -p %{buildroot}%{_libexecdir}/modules-load.d
|
|
||||||
mkdir -p %{buildroot}/usr/lib/sysctl.d/
|
|
||||||
install -p -m 0644 -t %{buildroot}%{_libexecdir}/modules-load.d/ {kubeadm.conf}
|
|
||||||
install -p -m 0644 -t %{buildroot}/usr/lib/sysctl.d/ {50-kubeadm.conf}
|
|
||||||
|
|
||||||
%files
|
|
||||||
%{_bindir}/kubeadm
|
|
||||||
%{_sysconfdir}/systemd/system/kubelet.service.d/10-kubeadm.conf
|
|
||||||
%{_sysconfdir}/sysconfig/kubelet
|
|
||||||
%dir %{_libexecdir}/modules-load.d
|
|
||||||
%{_libexecdir}/modules-load.d/kubeadm.conf
|
|
||||||
/usr/lib/sysctl.d/50-kubeadm.conf
|
|
@ -1,18 +0,0 @@
|
|||||||
Name: kubectl
|
|
||||||
Version: OVERRIDE_THIS
|
|
||||||
Release: 00
|
|
||||||
License: ASL 2.0
|
|
||||||
Summary: Container Cluster Manager - Kubernetes client tools
|
|
||||||
|
|
||||||
URL: https://kubernetes.io
|
|
||||||
|
|
||||||
%description
|
|
||||||
Command-line utility for interacting with a Kubernetes cluster.
|
|
||||||
|
|
||||||
%install
|
|
||||||
|
|
||||||
install -m 755 -d %{buildroot}%{_bindir}
|
|
||||||
install -p -m 755 -t %{buildroot}%{_bindir} {kubectl}
|
|
||||||
|
|
||||||
%files
|
|
||||||
%{_bindir}/kubectl
|
|
@ -1 +0,0 @@
|
|||||||
KUBELET_EXTRA_ARGS=
|
|
@ -1,12 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=kubelet: The Kubernetes Node Agent
|
|
||||||
Documentation=http://kubernetes.io/docs/
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=/usr/bin/kubelet
|
|
||||||
Restart=always
|
|
||||||
StartLimitInterval=0
|
|
||||||
RestartSec=10
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
@ -1,32 +0,0 @@
|
|||||||
Name: kubelet
|
|
||||||
Version: OVERRIDE_THIS
|
|
||||||
Release: 00
|
|
||||||
License: ASL 2.0
|
|
||||||
Summary: Container Cluster Manager - Kubernetes Node Agent
|
|
||||||
|
|
||||||
URL: https://kubernetes.io
|
|
||||||
|
|
||||||
Requires: conntrack
|
|
||||||
Requires: ebtables
|
|
||||||
Requires: ethtool
|
|
||||||
Requires: iproute
|
|
||||||
Requires: iptables >= 1.4.21
|
|
||||||
Requires: kubernetes-cni >= 0.8.5
|
|
||||||
Requires: socat
|
|
||||||
Requires: util-linux
|
|
||||||
|
|
||||||
%description
|
|
||||||
The node agent of Kubernetes, the container cluster manager.
|
|
||||||
|
|
||||||
%install
|
|
||||||
|
|
||||||
install -m 755 -d %{buildroot}%{_bindir}
|
|
||||||
install -m 755 -d %{buildroot}%{_sysconfdir}/systemd/system/
|
|
||||||
install -m 755 -d %{buildroot}%{_sysconfdir}/kubernetes/manifests/
|
|
||||||
install -p -m 755 -t %{buildroot}%{_bindir} {kubelet}
|
|
||||||
install -p -m 644 -t %{buildroot}%{_sysconfdir}/systemd/system/ {kubelet.service}
|
|
||||||
|
|
||||||
%files
|
|
||||||
%{_bindir}/kubelet
|
|
||||||
%attr(644,-,-) %{_sysconfdir}/systemd/system/kubelet.service
|
|
||||||
%{_sysconfdir}/kubernetes/manifests/
|
|
@ -1,23 +0,0 @@
|
|||||||
Name: kubernetes-cni
|
|
||||||
Version: OVERRIDE_THIS
|
|
||||||
Release: 00
|
|
||||||
License: ASL 2.0
|
|
||||||
Summary: Container Cluster Manager - CNI plugins
|
|
||||||
URL: https://kubernetes.io
|
|
||||||
|
|
||||||
%description
|
|
||||||
Binaries required to provision container networking.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
mkdir -p ./bin
|
|
||||||
tar -C ./bin -xz -f {kubernetes_cni.tgz}
|
|
||||||
|
|
||||||
%install
|
|
||||||
|
|
||||||
install -m 755 -d %{buildroot}%{_sysconfdir}/cni/net.d/
|
|
||||||
install -m 755 -d %{buildroot}/opt/cni
|
|
||||||
mv bin/ %{buildroot}/opt/cni/
|
|
||||||
|
|
||||||
%files
|
|
||||||
/opt/cni
|
|
||||||
%{_sysconfdir}/cni/net.d/
|
|
Loading…
Reference in New Issue
Block a user