logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

k8s命令笔记

查看节点信息:kubectl get nodeskubectl get node -o wide查看集群信息:kubectl cluster-info查看kubernetes-dashboard的运行状态:kubectl get deployment -n kubernetes-dashboardkubectl get pod -n kubernetes-dashboard暴露dashboard

#centos#linux#运维
k8s--node节点安装

#1、更改所有节点的主机名,便于区分(各自执行):hostnamectl set-hostname k8s-node1#2、立即生效:bash# 3、查看主机名:hostname#4、所以节点关闭防火墙:systemctl stop firewalldsystemctl disable firewalld#5、所有节点关闭selinux:sed -i "s/SELINUX=enforcing/SE

#kubernetes
k8s--master节点安装

#1、更改所有节点的主机名,便于区分(各自执行):hostnamectl set-hostname k8s-master#2、立即生效:bash# 3、查看主机名:hostname#4、所以节点关闭防火墙:systemctl stop firewalldsystemctl disable firewalld#5、所有节点关闭selinux:sed -i "s/SELINUX=enforcing/S

#kubernetes
k8s集群,Node节点出现这个报错:The connection to the server localhost:8080 was refused - did you specify the ri

解决如下:1、#在Master节点运行下面命令将admin.conf文件拷贝到从节点:sudo scp /etc/kubernetes/admin.conf root@{node_ip}:~2、#在Node节点运行下面命令配置环境变量:export KUBECONFIG=$HOME/admin.conf

#kubernetes
到底了