随笔分类 -  linux

base course
摘要:1. 添加yum 配置 yum install -y http://download.postgresql.org/pub/repos/yum/9.2/redhat/rhel-7-x86_64/pgdg-centos92-9.2-3.noarch.rpm 2. 安装服务 yum install -y 阅读全文
posted @ 2023-03-16 19:31 超我 阅读(262) 评论(0) 推荐(0)
摘要:问题: 阿里云内网服务器 用途: 内网工具 禅道 -- Yapi – wiki – postgres – mysql 等服务在运行 导致机器cpu 一直居高不下, 维持在 50% 的使用率, 会有计划任务自动生成执行脚本拉取外部程序执行, /tmp/.log 是配置文件的生成路径, 系统会运行./l 阅读全文
posted @ 2023-03-14 21:51 超我 阅读(705) 评论(0) 推荐(0)
摘要:sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf sed -i 's/plugins=1/plugins=0/' /etc/yum.conf yum clean all 阅读全文
posted @ 2023-03-13 23:44 超我 阅读(420) 评论(0) 推荐(0)
摘要:环境说明:centos 7.4 下面使用的域名是自己编造 可自行设置使用 域名在centos7.4 系统做解析 在windows vhost文件也做解析 harbor-offline-installer-v1.10.0.tgz 版本 yum install docker-compose -y 这个命 阅读全文
posted @ 2019-12-20 15:20 超我 阅读(467) 评论(0) 推荐(0)
摘要:coredns 模版如下 也可以直接从github.com 下载 https://github.com/coredns/deployment/tree/master/kubernetes https://github.com/coredns/deployment/blob/master/kubern 阅读全文
posted @ 2019-12-12 17:43 超我 阅读(604) 评论(0) 推荐(0)
摘要:swapoff -a mkdir /var/run/kubernetes chmod -R 777 /var/run/kubernetes systemctl restart kubelet kube-controller-manager kube-proxy 替换IPVS模式 yum instal 阅读全文
posted @ 2019-12-11 18:02 超我 阅读(755) 评论(0) 推荐(0)
摘要:通过yum安装的序号进行删除操作 yum history list yum history info 15 yum history undo 7 阅读全文
posted @ 2019-10-21 18:07 超我 阅读(3636) 评论(0) 推荐(0)
摘要:gzip gunzip zcat bzip2 bunzip2 bzcat xz unxz xzcat a: gzip 用法 # gzip file 压缩文件 不会保留源文件 直接生成 file.gz # zcat file.gz 可以将 file.gz 压缩文件暂时保存至其它空间在终端输出进行展示查 阅读全文
posted @ 2019-05-30 13:41 超我 阅读(412) 评论(0) 推荐(0)
摘要:接着上面的博客继续写 useradd kube -d / -s /sbin/nologin -M -d 指定家目录为 / -M 不创建用户的家目录 mkdir /var/lib/kubelet chcon -u system_u -t svirt_sandbox_file_t /var/lib/ku 阅读全文
posted @ 2019-05-19 08:54 超我 阅读(330) 评论(0) 推荐(0)
摘要:接着上面的博客继续写 pwd -> /etc/kubernetes cat config cat controller-manager cat kubelet cat proxy cat scheduler 阅读全文
posted @ 2019-05-18 23:08 超我 阅读(1617) 评论(0) 推荐(0)
摘要:接着上面的博客继续写 pwd -> /etc/kubernetes/ssl cp /etc/etcd/ssl/etcd-1-71.* . cat apiserver 注意上面修改配置文件路径 并进行验证 阅读全文
posted @ 2019-05-18 22:46 超我 阅读(5884) 评论(0) 推荐(0)
摘要:接着上面的博客继续写 pwd /etc/kubernetes 设置集群参数 kubectl config set-cluster kubernetes --certificate-authority=/etc/kubernetes/ssl/ca.pem --server=https://192.16 阅读全文
posted @ 2019-05-18 22:32 超我 阅读(873) 评论(0) 推荐(0)
摘要:接着上面的博客继续写 pwd -> /etc/kubernetes 设置集群参数 kubectl config set-cluster kubernetes --certificate-authority=/etc/kubernetes/ssl/ca.pem --server=https://192 阅读全文
posted @ 2019-05-18 22:24 超我 阅读(5817) 评论(0) 推荐(0)
摘要:接着上面的博客继续写 pwd /etc/kubernetes kubectl config set-cluster kubernetes --certificate-authority=/etc/kubernetes/ssl/ca.pem --server=https://192.168.1.71: 阅读全文
posted @ 2019-05-18 22:14 超我 阅读(1091) 评论(0) 推荐(0)
摘要:配置kube配置文件 设置集群参数 kubectl config set-cluster kubernetes --certificate-authority=/etc/kubernetes/ssl/ca.pem --server=https://192.168.1.71:6443 cat ~/.k 阅读全文
posted @ 2019-05-18 21:59 超我 阅读(11813) 评论(3) 推荐(0)
摘要:接着上面的博客写 pwd /etc/kubernetes echo "`head -c 16 /dev/urandom | od -An -t x | tr -d ' '`,kubelet-bootstrap,10001,\"system:kubelet-bootstrap\"" > token.c 阅读全文
posted @ 2019-05-18 21:50 超我 阅读(1225) 评论(0) 推荐(0)
摘要:接着上面的博客继续写 准备三台主机 192.168.1.71 192.168.1.72 192.168.1.73 现在k8s压缩包 我使用时1.12版本 不能下载请FQ 百度网盘提供1.12版本 https://pan.baidu.com/s/1Ty6DRaRtL-0HiTCwy5ubPA n6cy 阅读全文
posted @ 2019-05-18 21:40 超我 阅读(575) 评论(0) 推荐(0)
摘要:接着上面的博客继续写 3台主机 192.168.1.71 192.168.1.72 192.168.1.73 执行 yum install flannel -y step1: 在192.168.1.71主机执行 创建一个网络 etcdctl --endpoints=https://192.168.1 阅读全文
posted @ 2019-05-18 19:22 超我 阅读(704) 评论(0) 推荐(0)
摘要:还是接着上面的博客 继续写 里面使用到的证书签发方法在 https://www.cnblogs.com/S--S/p/10885952.html 直接找 etcd签发证书那部分既可以完成以下的操作 准备三台主机如下: 192.168.1.71 192.168.1.72 192.168.1.73 3台 阅读全文
posted @ 2019-05-18 18:34 超我 阅读(1476) 评论(0) 推荐(0)
摘要:准备三台主机: 192.168.1.71 192.168.1.72 192.168.1.73 Step1: 在第一台 192.168.1.71 签发证书 也可以在其它机器进行签发证书 创建一个保存证书的目录 最好在 /etc/ 下 mkdir -pv /etc/ssl/k8s cd /etc/ssl 阅读全文
posted @ 2019-05-18 15:56 超我 阅读(1925) 评论(0) 推荐(0)