摘要: 集群节点规划 Yum源设置 #yum设置 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo wget -O /etc/yum.repos.d/epel.repo http:// 阅读全文
posted @ 2023-05-06 16:24 不敲代码 阅读(138) 评论(0) 推荐(0)
摘要: [root@hybxvuca01 monitoring]# cat x509-certificate-exporter.yaml apiVersion: apps/v1 kind: DaemonSet metadata: name: x509-certificate-exporter namespa 阅读全文
posted @ 2023-04-06 18:00 不敲代码 阅读(339) 评论(0) 推荐(0)
摘要: [root@master ~]# cat es.yaml apiVersion: v1kind: Servicemetadata: name: elasticsearch7 namespace: elasticsearch labels: app: elasticsearch7spec: ports 阅读全文
posted @ 2022-12-23 17:27 不敲代码 阅读(200) 评论(0) 推荐(0)
摘要: 参考官网 https://github.com/rabbitmq/diy-kubernetes-examples/tree/master/minikube 直接贴yaml apiVersion: v1 kind: ConfigMap metadata: name: rabbitmq-config n 阅读全文
posted @ 2022-11-11 14:25 不敲代码 阅读(229) 评论(0) 推荐(0)
摘要: 直接贴yaml apiVersion: v1 kind: Service metadata: name: zk-hs labels: app: zk spec: ports: - port: 2888 name: server - port: 3888 name: leader-election c 阅读全文
posted @ 2022-11-10 16:54 不敲代码 阅读(95) 评论(0) 推荐(0)
摘要: 参考官网 1yum list --showduplicates kubeadm 2yum install -y kubeadm-1.25.1 3、驱逐node上的pod,且不可调度 kubectl drain k8s-master --ignore-daemonsets 其中我有个ds是打了容忍度的 阅读全文
posted @ 2022-11-04 13:44 不敲代码 阅读(52) 评论(0) 推荐(0)
摘要: 命令dockercrictl(推荐)ctr 查看容器列表 docker ps crictl ps ctr -n k8s.io c ls 查看容器详情 docker inspect crictl inspect ctr -n k8s.io c info 查看容器日志 docker logs crict 阅读全文
posted @ 2022-10-09 17:47 不敲代码 阅读(101) 评论(0) 推荐(0)
摘要: 环境 mysql 5.6.41 canal 1.15 1.16测试过后,一直报错canal_config表不存在,更换版本后正常 目的 : 同步一个数据库中的二个表 1、创建表 CREATE TABLE `user01` ( `id` int(64) NOT NULL AUTO_INCREMENT, 阅读全文
posted @ 2022-08-18 15:22 不敲代码 阅读(978) 评论(0) 推荐(0)
摘要: 备份 1、 ETCDCTL_API=3 etcdctl --endpoints=https://127.0.0.1:2379 --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/peer.crt --key 阅读全文
posted @ 2022-07-21 17:12 不敲代码 阅读(124) 评论(0) 推荐(0)
摘要: 1查看crt的证书有效期,有二种方式 第一种是利用openssl查看crt证书 openssl x509 -in /etc/kubernetes/pki/apiserver.crt -noout -text |grep ' Not ' 第二种方式使用certs命令查看 [root@master tl 阅读全文
posted @ 2022-07-21 17:07 不敲代码 阅读(1621) 评论(0) 推荐(0)