![](https://s1.51cto.com/images/blog/201909/16/ed0aa27802315afca27505aca2764207.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3p
step_1:kubectlgetnode1.查看集群节点是否处于Ready状态a.如果是Ready状态,再使用kubectldescribenode<nodeName>,资源使用率b.如果是NotReady,则使用kubectlgetnode-owide查看对应的节点,然后登陆到对应节点上,查看kubelet和docker服务是否正常;step_2:kubectlgetcs1.查看集
Mongo数据库备份脚本:cat>db_backup.sh<<EOF#!/bin/shfileName=`date+%Y%m%d%H%M`bakDir=/mnt/mongo-datamongodump-hops.umarkcloud.com-uroot-pwww.umarkcloud.com--gzip--archive=${bakDir}/${fileName}.tgzrm-f
Kubernetes备份工具——velero的使用:0.wgethttps://github.com/heptio/velero/releases/download/v1.0.0/velero-v1.0.0-darwin-amd64.tar.gz1.installtheveleroclient:brewinstallvelero2.CreateaVelero-specificcredentials
cat>>k8s-ceph-bak.py<<EOF#!/usr/bin/envpython#coding:utf-8fromkubernetesimportclient,configfromexecutorimportexecuteimportdatetime,sys,os,shutilimportargparseimportbase64importjsonifsys.ve
cat>>ceph-config.yml<<EOF#forallnodesall:&all-mon0-osd0-osd1-osd2#formonandmgrnodesmons:&mons-mon0-osd0-osd1#forosdnodeosds:-osd0-osd1-osd2#forcephfsnodemds:*mons#foradminnodeadmin
cat>>config.json<<EOF{"server":"0.0.0.0","server_port":30303,"local_address":"127.0.0.1","local_port":1080,"password":"LetsFightT0d@y","timeout":300,"method":"aes-256-cfb","fast_open":fals
Macinstallminikube:1.curl-Lominikubehttp://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/releases/v1.0.0/minikube-darwin-amd64&&chmod+xminikube&&sudomvminikube/usr/local/bin/2.minik
Cephansible部署步骤:1.gitclone-bstable-3.0https://github.com/ceph/ceph-ansible.git;cdceph-ansible2.生成inventorycat>inventory<<EOF[mons]ceph1ceph2ceph3[mgrs]ceph1ceph2ceph3[osds]ceph1ceph2ceph3EOF3
常见错误解决办法:EFK:1.无法启动kibana,解决“Elasticsearchisstillinitializingthekibanaindex...”解决办法:1./_plugin/gui/使用gui删除.kibana的索引2.curl-XDELETEhttp://localhost:9200/.kibana注:http://www.4wei.cn/archives/10024922.FO
K8s节点重装系统:准备工作:1.备份配置和服务启动文件:a.既是k8s节点,同时也是etcd节点tarzcvfk8s3.tgz/etc/ssl/etcd/etc/kubernetes/etc/systemd/system/etcd.service/etc/systemd/system/kubelet.service/etc/etcd.env/etc/nginx/nginx.conf/etc/cn
ceph创建kube用户cephauthget-or-createclient.kubemon'allowr'osd'allowrwxpool=kube'ceph创建kube对象存储池cephosdpoolcreatekube64正常安装oboecli的命令npminstall-g--unsafe-perm=trueglusteryumrepo的安装yuminstallcentos-release
graylog3.0cat>docker-compose.yml<<EOFversion:'2'services:fluentd:image:registry.umarkcloud.com/fluentd:v1.2.5-output-udp-beatscontainer_name:fluentdvolumes:-./fluent.conf:/fluentd/etc/fluent.
rbdimage:使用backy2来备份;cephfs:使用restic来备份;#!/usr/bin/envpython#coding:utf-8fromkubernetesimportclient,configfromexecutorimportexecuteimportdatetime,sys,os,shutilimportargparseifsys.version_info[0]<3:
graylogmaster安装:cat>docker-compose.yml<<EOFversion:'2'services:fluentd:image:registry.umarkcloud.com/fluentd:v1.2.5-output-udp-beatscontainer_name:fluentdvolumes:-./fluent.conf:/fluentd/etc/f
promtehus
备份 rbd image 和 远程备份
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号