Shell脚本: 1 获取数据存储路径(此处是oss路径):cat make-csv.sh #!/bin/bash # set -x shopt -s expand_aliases alias hive2='/usr/lib/hive-current/bin/hive -hivevar bucket=oss://cdp-pri-lakehouse-emr-stg' cat &l
1. 打包链码: peer lifecycle chaincode package asset-transfer-basic.tar.gz --path /etc/hyperledger/fabric/chaincodes/asset-transfer-basic/javascript/ --lang node --label asset-transfer-basic_1 2. 安装链码: p
波动率,是可以用来衡量风险的高于低和风险与收益比等。
代码和文档地址https://gitee.com/yonchin/k8s.git代码库介绍注:代码和文档都是根据以下两个架构图来实现的。k8s架构图cicd架构图
![](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 和 远程备份
实用Ingress实现对于Kibana的访问
jenkins中docker-plugin和kubernetes-plugin 两个插件对使用
nginx 反向代理实用案例
51CTO博客开发For The Dream马哥教育Linux运维培训北城书生吟—技术交流
Git repo:https://git.oschina.net/yonchin/k8s-x86_64/tree/master/x86?dir=1 注:系统是基于CentOS_7.2,ansible:2.1简介: kube-ansible-install: 除了安装Kubernetes的主从外,还包括Kubernetes的addons(如dashboard、dns、fluentd-ela
ClusterIp:通过VIP来访问, NodePort: 需要自己搭建负载据衡器LoadBalancer:仅仅用于特定的云提供商 和 Google Container Engine https://www.nginx.com/blog/load-balancing-kubernetes-services-nginx-plus/port:相当于服务端口(对及集群内客户访问)ta
gerrit 基于docker容器的部署: 命令行启动 1. 启动mysql容器 sudo docker run --name mysql -d -v /gerrit_mysql_data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123q
keepalived安装配置 ############安装略############ 1. 更改防火墙规则、并关闭selinux firewall-cmd --direct --permanent --add-rule ipv4 filter INPUT 0 -d 224.0.0.0/8&nbs
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号