摘要: PV , PVC 的关系 学过编程的人,应该都知道什么是面向对象,PV,PVC的设计符合面向对象这一思想。 PVC可以理解为持久化存储的接口,提供存储属性的描述,不提供具体的实现 PV负责持久化存储的具体实现 这一设计的好处: 作为应用开发者,不必关心具体的实现是NFS,还是Ceph,只需与这个PV 阅读全文
posted @ 2020-08-17 14:32 Ethan.Sun 阅读(143) 评论(0) 推荐(0) 编辑
摘要: ### 制作租户访问证书 ### openssl genrsa -out ethan.key 2048 openssl req -new -key ethan.key -out ethan.csr -subj "/CN=ethan/O=test" openssl x509 -req -in etha 阅读全文
posted @ 2020-07-09 18:04 Ethan.Sun 阅读(913) 评论(0) 推荐(0) 编辑
摘要: - hosts: k8s-cluster any_errors_fatal: "{{ any_errors_fatal | default(true) }}" vars: dns_domain: cluster.local tasks: - name: populate inventory into 阅读全文
posted @ 2020-07-07 15:00 Ethan.Sun 阅读(1180) 评论(0) 推荐(0) 编辑
摘要: - hosts: all any_errors_fatal: "{{ any_errors_fatal | default(true) }}" tasks: - name: yum install ntp yum: name: ntp state: present tags: - install_n 阅读全文
posted @ 2020-07-07 14:57 Ethan.Sun 阅读(1425) 评论(0) 推荐(1) 编辑
摘要: 1、安装Apache服务程序yum install httpd -y2、将Apache服务启动并添加到开机自启systemctl start httpdsystemctl enable httpd3、关闭SE linuxsetenforce 04.删除欢迎界面rm -rf /etc/httpd/co 阅读全文
posted @ 2020-07-01 14:42 Ethan.Sun 阅读(2131) 评论(0) 推荐(0) 编辑
摘要: 1.docker images 查看镜像 2.docker ps -a 查看运行的容器 3.docker exec -t -i 容器ID /bin/bash 4.docker search 镜像名 6. docker pull centos 默认情况下会拉取 latest 版本,当然我们也可以采用d 阅读全文
posted @ 2020-07-01 14:30 Ethan.Sun 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 第一种方法,可以直接使用date命令获取 date +%s -d '2017-1-1 12:30:00' 删除第一行sed -i '1d' filename 解压覆盖upzip -o $zip -d $directory 压缩zip -r abc.zip abc 统计某字符串出现的次数grep -o 阅读全文
posted @ 2020-07-01 14:27 Ethan.Sun 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 编译好的二进制文件放在百度云盘了 链接:https://pan.baidu.com/s/1fyWV4rJM1gPR6wAFXyQnzA 提取码:z4vu 复制这段内容后打开百度网盘手机App,操作更方便哦 阅读全文
posted @ 2020-07-01 14:18 Ethan.Sun 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 修改机器时间模拟证书过期,同样如果想生成的证书有效期5年可以设置当前时间为未来5的时间(date -s "2025-12-30 12:00" ) 1.备份master节点上的/etc/kubernetescp -r /etc/kubernetes /etc/kubernetes.old 2.删除过期 阅读全文
posted @ 2020-06-15 11:58 Ethan.Sun 阅读(962) 评论(0) 推荐(0) 编辑
摘要: #!/bin/baship=""user=""password=""num=0time=$(date '+%y%m%d%H%M')echo "$time: Monitor is running..."echo "<Servers> ">>/home/ETHAN/SMR/Logs/$time.xmlf 阅读全文
posted @ 2019-04-04 17:16 Ethan.Sun 阅读(283) 评论(0) 推荐(0) 编辑