sky_cheng

导航

 

2021年6月30日

摘要: 一、设置hosts 修改主机名 [root@localhost kubernetes]# hostnamectl set-hostname master69 四台服务器安装kebernetes,一个master节点和三个node节点(一主三从) master69 172.28.18.69 maste 阅读全文
posted @ 2021-06-30 17:12 sky_cheng 阅读(605) 评论(0) 推荐(1)
 
摘要: 一、执行kubectl报错 -rw 1 root root 5432 1月 4 11:29 scheduler.conf [root@localhost kubernetes]# kubectl get nodes Unable to connect to the server: x509: cer 阅读全文
posted @ 2021-06-30 17:11 sky_cheng 阅读(2371) 评论(0) 推荐(0)
 
摘要: 一、首先制作jdk环境镜像 参考:https://www.cnblogs.com/sky-cheng/p/14215332.html 二、制作jar包镜像 参考:https://www.cnblogs.com/sky-cheng/p/14218164.html 三、在k8s的master节点上创建项 阅读全文
posted @ 2021-06-30 17:10 sky_cheng 阅读(534) 评论(0) 推荐(0)
 
摘要: 一、现象 [root@redis-01 kubernetes]# kubectl get pods The connection to the server localhost:8080 was refused - did you specify the right host or port? [r 阅读全文
posted @ 2021-06-30 17:09 sky_cheng 阅读(1652) 评论(0) 推荐(0)
 
摘要: 一、运行了一个debian容器,进入容器后执行apt-get update报错 root@nginx-demo-deployment-59fbc48594-4z8h9:/# apt-get update Err:1 http://deb.debian.org/debian buster InRele 阅读全文
posted @ 2021-06-30 17:08 sky_cheng 阅读(2440) 评论(0) 推荐(0)
 
摘要: 一、进入pod可以访问IP,不能访问域名 bash-5.0# ping www.baidu.com ping: bad address 'www.baidu.com 二、进入目标pod容器,查看/etc/resolv.conf bash-5.0# cat /etc/resolv.conf names 阅读全文
posted @ 2021-06-30 17:06 sky_cheng 阅读(3575) 评论(1) 推荐(3)
 
摘要: 一、加入node节点 [root@redis-01 kubernetes]# kubeadm join 172.28.18.69:6443 --token abcdef.0123456789abcdef --discovery-token-ca-cert-hash sha256:6010baa60f 阅读全文
posted @ 2021-06-30 17:05 sky_cheng 阅读(5974) 评论(0) 推荐(1)
 
摘要: 一、现象 [root@master69 nginx-demo]# kubectl get pods NAME READY STATUS RESTARTS AGE nginx-demo-deployment-59fbc48594-fq5kr 0/1 ContainerCreating 0 26s ng 阅读全文
posted @ 2021-06-30 17:04 sky_cheng 阅读(1647) 评论(0) 推荐(0)
 
摘要: 一、创建两个service [root@master69 kubernetes]# kubectl create -f hl95-notary/hl95-notary-namespace.yaml [root@master69 kubernetes]# kubectl create -f hl95- 阅读全文
posted @ 2021-06-30 17:02 sky_cheng 阅读(375) 评论(0) 推荐(0)
 
摘要: 一、删除node节点 [root@master69 kubernetes]# kubectl get nodes NAME STATUS ROLES AGE VERSION master69 NotReady master 47h v1.18.5 redis-01.hlqxt NotReady <n 阅读全文
posted @ 2021-06-30 17:01 sky_cheng 阅读(3820) 评论(0) 推荐(0)
 
摘要: 1、查看节点 [root@master69 kubernetes]# kubectl get nodes -o wide NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-R 阅读全文
posted @ 2021-06-30 17:00 sky_cheng 阅读(75) 评论(0) 推荐(0)
 
摘要: Kubernetes dashboard是Kubernetes集群的基于Web的通用UI。它允许用户管理集群中运行的应用程序并对其进行故障排除,以及管理集群本身。 一、查看系统pod [root@master69 kubernetes]# kubectl get pods -n kube-syste 阅读全文
posted @ 2021-06-30 16:30 sky_cheng 阅读(517) 评论(0) 推荐(0)
 
摘要: 在新版的K8S中,系统资源的采集均使用Metrics-Server服务,可以通过Metrics-Server服务采集节点和Pod的内存、磁盘、CPU和网络的使用率等信息。通过 Metrics API 获取。 Metrics API 只可以查询当前的度量数据,并不保存历史数据 Metrics API 阅读全文
posted @ 2021-06-30 16:28 sky_cheng 阅读(604) 评论(2) 推荐(0)
 
摘要: 一、启动容器报错 [root@master69 ~]# docker run --name portainer-d -p 8000:8000 -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer d 阅读全文
posted @ 2021-06-30 16:24 sky_cheng 阅读(893) 评论(0) 推荐(0)
 
摘要: 一、备份/etc/apt/sources.list root@nginx-demo-deployment-59fbc48594-8gns5:/# mv /etc/apt/sources.list /etc/apt/sources.list.bak 二、写入阿里源内容 cat > /etc/apt/s 阅读全文
posted @ 2021-06-30 16:23 sky_cheng 阅读(3541) 评论(0) 推荐(0)
 
摘要: 一、docker镜像的两种方式 1、docker commit:将容器提交为镜像 2、Dockerfile:从读取Dokerfile里的一组指令去自动化构建镜像 二、Dockerfile的规则 1、#为注释 2、指令(大写),内容(小写)(强烈建议) 3、Docker是按顺序从上到下依次执行Dock 阅读全文
posted @ 2021-06-30 16:22 sky_cheng 阅读(258) 评论(0) 推荐(0)
 
摘要: root@master69:/# apt-get install procps -y 阅读全文
posted @ 2021-06-30 16:17 sky_cheng 阅读(1167) 评论(0) 推荐(0)
 
摘要: 阅读全文
posted @ 2021-06-30 16:16 sky_cheng 阅读(624) 评论(0) 推荐(0)