简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
查看节点信息:kubectl get nodeskubectl get node -o wide查看集群信息:kubectl cluster-info查看kubernetes-dashboard的运行状态:kubectl get deployment -n kubernetes-dashboardkubectl get pod -n kubernetes-dashboard暴露dashboard
#1、更改所有节点的主机名,便于区分(各自执行):hostnamectl set-hostname k8s-node1#2、立即生效:bash# 3、查看主机名:hostname#4、所以节点关闭防火墙:systemctl stop firewalldsystemctl disable firewalld#5、所有节点关闭selinux:sed -i "s/SELINUX=enforcing/SE
#1、更改所有节点的主机名,便于区分(各自执行):hostnamectl set-hostname k8s-master#2、立即生效:bash# 3、查看主机名:hostname#4、所以节点关闭防火墙:systemctl stop firewalldsystemctl disable firewalld#5、所有节点关闭selinux:sed -i "s/SELINUX=enforcing/S
解决如下:1、#在Master节点运行下面命令将admin.conf文件拷贝到从节点:sudo scp /etc/kubernetes/admin.conf root@{node_ip}:~2、#在Node节点运行下面命令配置环境变量:export KUBECONFIG=$HOME/admin.conf