08、K8s实战:从源代码构建KubernetesRPM包

一、前言

从源代码构建Kubernetes的RPM可以帮助我们随时测试新的功能并且进行深度的debug。

转载自https://blog.csdn.net/cloudvtec

二、准备工作

安装go依赖

yum install epel-release -y
yum update -y && yum upgrade -y
yum install golang go-md2man go-bindata gcc bison git rpm-build vim -y
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
source /root/.gvm/scripts/gvm
gvm install go1.4 -B
gvm use go1.4
gvm install go1.11.1
gvm use go1.11

安装docker

yum install -y docker
systemctl enable docker
systemctl start docker

转载自https://blog.csdn.net/cloudvtec

三、获取构建环境和进行构建

3.1 获取Fedora发布的Kubernetes构建工具仓库

git clone https://src.fedoraproject.org/cgit/rpms/kubernetes.git

kubernetes.spec

版权声明:本文不是「本站」原创文章,版权归原作者所有 | 原文地址: