<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>系统运维 &#187; kubernetes</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/kubernetes/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Sun, 10 May 2026 14:53:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>k8s集群搭建之部署Etcd集群</title>
		<link>https://www.osyunwei.com/archives/12075.html</link>
		<comments>https://www.osyunwei.com/archives/12075.html#comments</comments>
		<pubDate>Mon, 28 Mar 2022 08:33:39 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Kubernetes]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[k8s]]></category>
		<category><![CDATA[kubernetes]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12075</guid>
		<description><![CDATA[Etcd是一个分布式键值存储系统，Kubernetes使用Etcd进行数据存储，所以要先准备一个Etcd数据库，为解决Etcd单点故障，应采用集群方式部署，这里使用3台组建集群，可容忍1台机器故障。由于Etcd集群需要选举产生 leader，所以集群节点数目需要为奇数来保证正常进行选举。 说明： 使用5台组建集群，可容忍2台机器故障 使用7台组建集群，可容忍3台机器故障， 使用9台组建集群，可容忍4台机器故障 etcd集群也可以与k8s节点机器复用，只要apiserver能连接到就行。 这里使用三台服务器单独部署etcd集群 k8s集群搭建之安装cfssl证书生成工具 https://www.osyunwei.com/archives/12072.html 先在一台k8s-etcd服务器上操作 1、生成Etcd证书 1.1自签etcd证书颁发机构（CA） 创建工作目录 mkdir -p /opt/tls/etcd cd /opt/tls/etcd 创建ca配置文件 cat &#62; etcdca-config.json &#60;&#60; EOF { "signing": { "default": { "expiry": "87600h" }, "profiles": { "etcd": { "expiry": "87600h", "usages": [ "signing", "key encipherment", "server auth", "client auth" ] } } } } EOF 创建ca证书签名请求文件 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12075.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12075.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>k8s集群搭建之安装cfssl证书生成工具</title>
		<link>https://www.osyunwei.com/archives/12072.html</link>
		<comments>https://www.osyunwei.com/archives/12072.html#comments</comments>
		<pubDate>Thu, 03 Feb 2022 05:45:45 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Kubernetes]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[k8s]]></category>
		<category><![CDATA[kubernetes]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12072</guid>
		<description><![CDATA[cfssl是一个开源的证书管理工具，使用json文件生成证书，相比openssl更方便使用。 在需要生成证书的服务器上安装即可，这里安装在k8s-etcd1和k8s-master1节点上。 cd /usr/local/src wget https://github.com/cloudflare/cfssl/releases/download/v1.6.1/cfssl_1.6.1_linux_amd64 wget https://github.com/cloudflare/cfssl/releases/download/v1.6.1/cfssljson_1.6.1_linux_amd64 wget https://github.com/cloudflare/cfssl/releases/download/v1.6.1/cfssl-certinfo_1.6.1_linux_amd64 #拷贝文件到/usr/local/bin/目录下 cp cfssl_1.6.1_linux_amd64 /usr/local/bin/cfssl cp cfssljson_1.6.1_linux_amd64 /usr/local/bin/cfssljson cp cfssl-certinfo_1.6.1_linux_amd64 /usr/local/bin/cfssl-certinfo #添加执行权限 chmod +x /usr/local/bin/cfssl chmod +x /usr/local/bin/cfssljson chmod +x /usr/local/bin/cfssl-certinfo 至此，k8s集群搭建之安装cfssl证书生成工具完成。 &#160;&#160;&#160;&#160;&#160;» 本文链接：https://www.osyunwei.com/archives/12072.html» 订阅本站：https://www.osyunwei.com/feed» 转载请注明来源：系统运维 » k8s集群搭建之安装cfssl证书生成工具<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12072.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12072.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>k8s集群搭建之安装Docker</title>
		<link>https://www.osyunwei.com/archives/12062.html</link>
		<comments>https://www.osyunwei.com/archives/12062.html#comments</comments>
		<pubDate>Mon, 03 Jan 2022 07:51:45 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Kubernetes]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[k8s]]></category>
		<category><![CDATA[kubernetes]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12062</guid>
		<description><![CDATA[在所有的master和node以及Docker私有仓库服务器上安装docker，这里使用Docker作为k8s集群的容器引擎，也可以换成别的，例如containerd等。 这里安装二进制Docker-ce社区版本。 3.1 卸载旧版本 如果没有安装就不需要执行 yum remove docker docker-common docker-selinux docker-engine 3.2 下载Docker-ce社区版本 https://download.docker.com/linux/static/stable/x86_64/ 选择docker-19.03.9.tgz cd /usr/local/src wget https://download.docker.com/linux/static/stable/x86_64/docker-19.03.9.tgz 3.3 安装Docker-ce社区版本 #解压 cd /usr/local/src tar -zxvf docker-19.03.9.tgz #将解压出来的docker文件移动到/usr/bin/目录下 mv /usr/local/src/docker/* /usr/bin/ 3.4 设置Docker开机启动 #添加docker用户组 groupadd docker #在/usr/lib/systemd/system/目录创建编辑docker.service文件 vi /usr/lib/systemd/system/docker.service [Unit] Description=Docker Application Container Engine Documentation=https://docs.docker.com #BindsTo=containerd.service After=network-online.target firewalld.service containerd.service Wants=network-online.target Requires=docker.socket [Service] Type=notify #ExecStart=/usr/bin/dockerd -H [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12062.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12062.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>k8s集群搭建之服务器系统初始化设置</title>
		<link>https://www.osyunwei.com/archives/12051.html</link>
		<comments>https://www.osyunwei.com/archives/12051.html#comments</comments>
		<pubDate>Mon, 03 Jan 2022 07:29:31 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Kubernetes]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[k8s]]></category>
		<category><![CDATA[kubernetes]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12051</guid>
		<description><![CDATA[服务器操作系统： CentOS7.x_x64，在所有服务器上进行操作。 2.1 修改主机名 #设置主机名为k8s-master1 hostname k8s-master1 hostnamectl set-hostname k8s-master1 vi /etc/hostname #编辑配置文件 k8s-master1 #修改localhost.localdomain为k8s-master1 :wq! #保存退出 vi /etc/hosts #编辑配置文件 127.0.0.1 localhost k8s-master1 #修改localhost.localdomain为k8s-master1 #其他服务器执行相同的操作，把主机名称分别修改为服务器角色对应的名称 2.2 安装系统依赖包 yum install -y ipset ipvsadm yum install -y openssl-devel openssl yum install -y make gcc* gcc-c++ yum install -y bzip2 tar conntrack conntrack-tools sysstat curl iptables libseccomp lrzsz [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12051.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12051.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>centos7 安装rancher的k8s 客户端</title>
		<link>https://www.osyunwei.com/archives/10723.html</link>
		<comments>https://www.osyunwei.com/archives/10723.html#comments</comments>
		<pubDate>Sun, 07 Feb 2021 09:40:08 +0000</pubDate>
		<dc:creator>1504337307</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[kubernetes]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=10723</guid>
		<description><![CDATA[Centos 7 kubectl 客户端连接rancher里面的k8s 1 centos7 安装最新版本的kubectl 脚本如下：install_kubectl.sh #!/bin/bash # make sunny sunnylinux@foxmail.com cat &#60;&#60;EOF &#62; /etc/yum.repos.d/kubernetes.repo [kubernetes] name=Kubernetes baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64 enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey=https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg EOF sleep 5 yum install -y kubectl kubelet kubeadm systemctl enable kubelet systemctl start kubelet 2 获取rancher上面的k8s集群的config文件 进入rancher的k8s集群页面： 点击右上角的Kubeconfig文件复制保存 在客户端的主机上面新建文kube的文件夹 [root@localhost ~]# mkdir -p /root/.kube/ root@localhost ~]# cd /root/.kube/ 把刚才复制保存的config文件放到下面对应的路径下 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/10723.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/10723.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
