JeeGit 官方论坛

找回密码
立即注册
搜索
热搜: 活动 交友 discuz
发新帖

1

收听

0

听众

196

主题
发表于 2024-2-26 09:51:15 | 查看: 68| 回复: 1
export KKZONE=cn
curl -sfL https://get-kk.kubesphere.io | VERSION=v3.0.13 sh -

CentOS 安装部署KubeSphere管理kubernetes
https://blog.csdn.net/weixin_44646977/article/details/127160275
  1. [root kubesphere-master-2 ~]## 在linux上安装Kubernetes和KubeSphere                                                                                                   
  2. [root kubesphere-master-2 ~]### 关闭防火墙或者开放必要的[防火墙端口](https://v3-0.docs.kubesphere.io/docs/installing-on-linux/introduction/port-firewall/)                       
  3. [root kubesphere-master-2 ~]#systemctl disable firewalld                                                                                                        
  4. [root kubesphere-master-2 ~]#systemctl stop firewalld                                                                                                           
  5. [root kubesphere-master-2 ~]#systemctl status firewalld                                                                                                         
  6. ● firewalld.service - firewalld - dynamic firewall daemon                                                                                                      
  7.    Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)                                                                 
  8.    Active: inactive (dead)                                                                                                                                      
  9.      Docs: man:firewalld(1)                                                                                                                                    
  10. [root kubesphere-master-2 ~]#  
复制代码



  1. [root kubesphere-master-2 ~]### 查看并关闭swap分区                                                                                                                     
  2. [root kubesphere-master-2 ~]#swapoff -a                                                                                                                        
  3. [root kubesphere-master-2 ~]#echo "vm.swappiness=0" >> /etc/sysctl.conf                                                                                         
  4. [root kubesphere-master-2 ~]#sysctl -p /etc/sysctl.conf                                                                                                         
  5. net.ipv6.conf.eth0.accept_dad = 0                                                                                                                              
  6. net.ipv6.conf.eth0.accept_ra = 1                                                                                                                                
  7. net.ipv6.conf.eth0.accept_ra_defrtr = 1                                                                                                                        
  8. net.ipv6.conf.eth0.accept_ra_rtr_pref = 1                                                                                                                       
  9. net.ipv6.conf.eth0.accept_ra_rt_info_max_plen = 1                                                                                                               
  10. vm.swappiness = 0                                                                                                                                               
  11. [root kubesphere-master-2 ~]#sed -i 's$/dev/mapper/centos-swap$#/dev/mapper/centos-swap$g' /etc/fstab                                                           
  12. [root kubesphere-master-2 ~]#free -m                                                                                                                           
  13.               total        used        free      shared  buff/cache   available                                                                                 
  14. Mem:          32011         300       31168          16         542       31354                                                                                 
  15. Swap:             0           0           0              
复制代码


  1. [root kubesphere-master-2 ~]### 查看Selinux状态                                                                                                                     
  2. [root kubesphere-master-2 ~]#getenforce                                                                                                                        
  3. Disabled                          
复制代码
  1. ## 设置docker镜像加速器                                                                                                                  
  2. [root kubesphere-master-2 ~]#                                                                                                                                   
  3. [root kubesphere-master-2 ~]#cat > /etc/docker/daemon.json <<EOF                                                                                                
  4. > {                                                                                                                                                            
  5. >   "registry-mirrors": ["https://gqk8w9va.mirror.aliyuncs.com"]                                                                                                
  6. > }                                                                                                                                                            
  7. > EOF                     
复制代码



发表于 2024-2-27 10:24:34
fatal: [localhost]: FAILED! => {"attempts": 60, "changed": true,


"cmd": "/usr/local/bin/kubectl get apiservice | grep metrics.k8s.io\n", "delta": "0:00:00.108321", "end": "2024-02-27 09:18:12.967302", "rc": 0, "start": "2024-02-27 09:18:12.858981", "stderr": "", "stderr_lines": [], "stdout": "v1beta1.metrics.k8s.io                 kube-system/metrics-server   False (FailedDiscoveryCheck)   10m", "stdout_lines": ["v1beta1.metrics.k8s.io                 kube-system/metrics-server   False (FailedDiscoveryCheck)   10m"]}



unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the server is currently unable to handle the reques


https://www.cnblogs.com/zbhlinux/p/17109596.html


kubectl api-resources 删除所有fasle 资源


回复 显示全部楼层 道具 举报

您需要登录后才可以回帖 登录 | 立即注册

QQ|Archiver|手机版|小黑屋|JeeGit 官方论坛 ( 吉ICP备19001578号-2|吉B2-20200006 )

GMT+8, 2024-5-20 16:11 , Processed in 0.028269 second(s), 18 queries .

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

快速回复 返回顶部 返回列表