时间:2022-02-09来源:www.pcxitongcheng.com作者:电脑系统城
Kubernetes部署要求Centos7.5以上版本,否则会出现kubelet无法启动、harbor端口访问异常等问题(同时要求内核版本要升级到4.4.x以上)。
1 2 3 4 |
[root@k8s-vm01 ~] # cat /etc/redhat-release CentOS Linux release 7.4.1902 (Core) [root@k8s-vm01 ~] # uname -r |
1 2 |
[root@k8s-vm01 ~] # cd /etc/yum.repos.d/ [root@k8s-vm01 yum.repos.d] # cp CentOS-Base.repo CentOS-Base.repo_bak |
要保证更换的yum源地址可以正常访问。如下使用阿里云的yum源http://mirrors.aliyun.com/centos/7.7.1908,要保证手动打开这个地址是有效地址,且镜像yum源内容完整存在。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
[root@k8s-vm01 yum.repos.d] # cat /etc/yum.repos.d/CentOS-Base.repo [base] name=CentOS-$releasever enabled=1 failovermethod=priority baseurl=http: //mirrors .aliyun.com /centos/7 .7.1908 /os/ $basearch/ gpgcheck=1 gpgkey=http: //mirrors .cloud.aliyuncs.com /centos/RPM-GPG-KEY-CentOS-7 [updates] name=CentOS-$releasever enabled=1 failovermethod=priority baseurl=http: //mirrors .aliyun.com /centos/7 .7.1908 /updates/ $basearch/ gpgcheck=1 gpgkey=http: //mirrors .aliyun.com /centos/RPM-GPG-KEY-CentOS-7 [extras] name=CentOS-$releasever enabled=1 failovermethod=priority baseurl=http: //mirrors .aliyun.com /centos/7 .7.1908 /extras/ $basearch/ gpgcheck=1 gpgkey=http: //mirrors .aliyun.com /centos/RPM-GPG-KEY-CentOS-7 |
确保下面更新操作没有报错。
1 | [root@k8s-vm01 yum.repos.d] # yum update -y |
1 | [root@k8s-vm01 yum.repos.d] # init 6 |
重启后查看系统版本
1 2 |
[root@k8s-vm01 ~] # cat /etc/redhat-release CentOS Linux release 7.7.1908 (Core) |
2023-03-17
Nginx主机域名配置实现2023-03-17
Nginx配置-日志格式配置方式2023-03-17
Apache APISIX Dashboard 未授权访问漏洞分析(CVE-2021-45232)正常项目无法访问(Linux 服务器),启动tomcat时卡在下图位置,项目无法启动。1、先检查tomcat日志、项目日志没有报错信息,且没再产生新的日志信息。2、jdk、tomcat 、 jvm 配置,服...
2023-03-15
这篇文章主要介绍了Kubernetes中Nginx服务启动失败排查流程(Error: ImagePullBackOff),本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以...
2023-03-15