自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(54)
  • 收藏
  • 关注

原创 k8s ingress and egress

simple architecture of ingress in k8s:create ingress controllerTo create the ingress controller, use Helm to install nginx-ingress. For added redundancy, two replicas of the NGINX ingress controlle...

2019-02-24 14:44:21 4925

原创 k8s monitor

1.create AKS clusteraz group create -n aks2019rg -l eastusaz aks get-versions -l eastus -o tableaz aks create -g aks2019rg -n aks2019 --node-count 2 --node-vm-size Standard_A2 --disable-rbac --gene...

2019-02-08 18:09:30 841

原创 k8s :AKS with Azure storage

Azure Disk for static:manually create an Azure disk and attach it to a pod in AKS1.create Azure Disk2.mount disk as volumekubectl apply -f azure-disk-pod.yamlkubectl describe pod mypodverify t...

2019-02-06 22:59:50 449

原创 k8s-monitor

Weave Scope can show a complete view of clusters and applications. Its excellent interactivity allows users to easily monitor and troubleshoot containerized applications in real time.Heapster is Kube...

2019-01-29 16:49:55 455

原创 k8s -helm

Helm has two important concepts: chart and release.Chart is a collection of information that creates an application, including configuration templates, parameter definitions, dependencies, documentat...

2019-01-28 23:15:11 287

原创 k8s volume

we use Cloud Provider Storage to provide Volume to k8screate PersistentVolume,PersistentVolumeClaim,Pod(to use PVC)demo:1.Create PV and PVC.define the Volume path and kind in PersistentVolumedef...

2019-01-28 15:11:26 185

原创 k8s health check

the default health check : pod will restart when encountering errorcreate Pod ,simulate failure by exit “1”then pod has restarted 3 timesLiveness:the process will create healthy file,delete it a...

2019-01-28 12:41:26 681

原创 k8s rolling update and rolling back

Rolling update can ensure the continuity of business because during the update there are copies running all the time.demo:create Deployment httpdcreate ReplicaSet httpd-8*create three Podsnow the...

2019-01-24 17:33:43 360

原创 k8s -Service to public

visit Pod via Servicewe start 3 pods to run httpdPods are assigned with their IP which can only be visited in k8s Clustercreate Service:v1 is apiVersion of Servicekind of resource is Service,w...

2019-01-23 13:42:56 141

原创 k8s Daemonset

only one Daemonset can run on each nodekubectl get daemonset --namespace=kube-systemkubectl get pod --namespace=kube-system -o widethe system pod:dns\etcd\apiserver\controller manager\scheduler\f...

2019-01-23 11:23:36 1018 1

原创 k8s-deploy Pod to assigned Node

by deafult,Scheduler will schedule Pods to all available Nodes.But in some situations,we will deploy Pod to assigned Node such as deploying using I/O’s Pod to Node with SSD,using GPU’s Pod to Node wi...

2019-01-20 21:05:21 397 1

原创 how k8s failover nodes

I have four Pods running on k8s cluster(node1 and node2)execute “halt -h” on node2kubectl get node,shows node2 is not readythen k8s will tag Pods "Unknown"on node2,and create two new Pods on node...

2019-01-20 19:23:40 354

原创 k8s YAML

two ways to create resources1.cmdkubectl run nginx-deployment --image=nginx:1.7.9 --replicas=22.configuration file :ymlkubectl apply -f nginx.ymlthe advantage of yml:1.describes What the app ach...

2019-01-20 16:57:13 360

原创 k8s Deployment

**kubectl run nginx-deployment --image=nginx:1.7.9 --replicas=2**deploy two copied Deployment nginx-deploymentusing image :nginx:1.7.9kubectl describe deploymentwe find the ReplicaSet is created...

2019-01-20 14:15:53 208

原创 a demo for k8s

deploy app on my k8s cluster:deployed the deployment httpd-app,two Podskubectl run httpd-app --image=httpd --replicas=2kubectl get deploymentkubectl get pod -o wideMaster:Node1:Node2:1.ku...

2019-01-19 21:22:31 126

原创 k8s architecture

Master:192.168.1.112API-Server:provide restful API to the client to manage resources of Cluster.Scheduler:decide to put Pod on which NodeController Manager:to manage resourcesetcd :to store Cluste...

2019-01-19 20:57:20 185

原创 k8s second experience :install my k8s

deploy k8s clusterexperiment: master 192.168.1.112node1 192.168.1.150node2 192.168.1.224Install Docker,All 3 nodes need to installapt-get update && apt-get install docker.ioInstall kubel...

2019-01-19 20:35:56 130

原创 k8s first experience

1.k8s conceptCluster:Master调度NodePod:smallest work cell ,run on the noderelated containers run on the same pod to share resoures and lifecycletwo ways: one-container-per-Pod ,several—related-con...

2019-01-19 20:24:24 160

翻译 kibana使用

kibana更新6.* 更新后运行kibana要求elasticsearch5.*版本。更新elasticsearch 下载并安装 public signing key:rpm –import https://artifacts.elastic.co/GPG-KEY-elasticsearch添加elasticsearch的repo,在/etc/yum.repos.d/下新增ela...

2018-09-17 10:04:00 2221

原创 ELK 二进宫

Elasticsearch安装配置基础环境安装(elk-node1和elk-node2同时操作)1)下载并安装GPG Key rpm –import https://packages.elastic.co/GPG-KEY-elasticsearch2)添加yum仓库 vi /etc/yum.repos.d/elasticsearch.repo [elasticsearch-2.x...

2018-09-15 21:08:55 250

原创 ELK(elasticsearch+logstash+kibana)

三大组件之间的关系 Logstash(收集服务器上的日志文件) 保存到 ElasticSearch(搜索引擎) Kibana提供友好的web界面(从ElasticSearch读取数据进行展示) Centos7.5环境下载jdk wget http://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef9...

2018-09-15 11:50:38 154

转载 Nginx简介及使用Nginx实现负载均衡的原理

nginx 这个轻量级、高性能的 web server 主要可以干两件事情:  〉直接作为http server(代替apache,对PHP需要FastCGI处理器支持);   〉另外一个功能就是作为反向代理服务器实现负载均衡  以下我们就来举例说明如何使用 nginx 实现负载均衡。因为nginx在处理并发方面的优势,现在这个应用非常常见。当然了Apache的 mod_proxy和mo...

2018-03-12 17:06:14 148

原创 bgp

待续

2018-01-03 17:10:53 156

原创 https

https是http+ssl,在http应用层多了一层SSL,通俗的讲,就是客户端和服务端拥有一串没有第三者知道的秘钥,通信时:用秘钥解密得到的内容或者将内容加密后发给对方。举例: 阿潘(Client):在吗,大官人?(request server:443) 阿西(Server):在啊,别让阿武听到了。给你个public crt:10101010,你随机串数字,用我的crt做个X运算后发给我,这

2017-12-07 16:47:32 667

原创 蚁族初体验

搬进去第一天,强哥告诉我:住进来一天就不能退款了(总觉得有点不对,后来明白了),第一张床位是在客厅的那间(两室一厅,厅改成一间房,挨着大门)的上铺,这里之前是允许室内抽烟的(一直有人抽,你方抽罢我登场。。)。下铺那几个大老爷们一直开着外放看剧看到十二点,你不带我也不带耳机嘛,也许你们也睡不着,有的睡着了,剧还一直在播,最奇妙的就是呼噜声伴着电视剧人物对话声从不同的源发出,此起彼伏。大老爷们真是粗糙,

2017-12-06 09:33:07 222 1

原创 cdn

cdn:content delivery network 大型网站都会使用这种技术,通过遍布在全球各个物理节点服务器来缓存源网站的静态文件,达到客户端可以根据逻辑上就近的cdn节点获取静态文件。 例如: 双11期间,天猫提供优惠券,全球人民在各自的不同物理位置点击链接下载优惠券,阿里通过CDN技术将源站服务器的静态文件(图片等)缓存到全球各个地区的节点服务器,这样每个用户从就近的服务器

2017-12-05 15:37:20 247

转载 RTO 与 RPO

转载:http://blog.sina.com.cn/s/blog_59388e440100oq52.html 在灾难恢复方面,目前业界公认有三个目标值得努力。一是恢复时间,企业能忍受多长时间没有 IT,处于停业状态;二是网络多长时间能够恢复;三是业务层面的恢复。整个恢复过程中,最关键的衡量指标有两个:一个是 RTO,另一个是 RPO。所谓 RTO,Recovery Time Objective,它

2017-11-29 11:13:04 307

原创 python爬取贴吧图片

将http://tieba.baidu.com/p/5072919394 里的图片爬到本地。版本 phthon 3.x#coding=utf-8import urllib.requestimport redef getHtml(url): page=urllib.request.urlopen(url) #page 是http.client.HTTPResponse object

2017-11-21 16:41:05 318

原创 get azure subscriptions‘ all stroages,containers and blobs by PowerShell

导到excel里# Add your Azure account to the local PowerShell environment.Add-AzureRmAccount -Environment AzureChinaCloud$x=1$excel = New-Object -ComObject Excel.Application $excel.Visible = $true$workbook

2017-11-17 10:48:22 197

原创 Python re模块

re.compile将正则表达式转换为模式对象,可以实现更有效率的匹配。re.search 会在给定字符串中寻找第一个匹配给正则表式的子字符串。找到函数返回MatchObject(值为True),否则返回None(值为False) 。因为返回值的性质,所以该函数可以用在条件语句中: if re.serch(pat, string): print ‘found it !’re.math 会在给定字

2017-11-06 14:57:08 239

原创 python 正则语法

通配符: . 匹配任何字符import restr1='imooc python'pa=re.compile('.')ma=re.findall(str1)print ma输出:i对特殊字符进行转义: \字符集: [a-z]可以匹配任意小写字母import restr1='imooc.sjh a ImoocSjh,,,!!'pa=re.compile('[a-z]')ma=

2017-11-06 13:11:31 199

转载 路由表

转的,懒得自己写了 你如何读懂路由表, 你能读懂路由表吗?不懂?进来看看吧!当前的路由: destination 目的网段 mask 子网掩码 interface 到达该目的地的本路由器的出口ip gateway 下一跳路由器入口的ip,路由器通过interface和gateway定义一调到下一个路由器的链路,通常情况下,interface和gateway是同一网段的 metr

2017-11-02 09:34:36 3794

原创 tracert使用

用tracert可以测试网络到某个站点所经过的路由和网段,windows自带此命令 tracert ip/domain;tracert baidu.com经过24个节点从我这到达baidu中间这三列,单位是ms,是表示我们连接到每个路由节点的速度,返回速度和多次链接反馈的平均值后面的IP,就是每个路由节点对应的IP*返回消息是超时,这表示这个路由节点和当前我们使用的宽带,是无法联通的至于原因,就有

2017-09-29 16:20:26 751

原创 正向代理vs反向代理

借知乎的图:https://www.zhihu.com/question/24723688 正向代理: A同学访问google被墙,这时A可以访问B(正向代理服务器),B将A的请求提交给google(google没墙B),A可以访问google了。但是google只知道B,不知道A的存在。这种过程被称为科学上网。 反向代理: 100个同学通过client访问淘宝网站,淘宝会设立一个pro

2017-09-21 10:49:44 241

转载 公钥加密 私钥解密,私钥数字签名 公钥验证

转载:http://blog.csdn.net/21aspnet/article/details/7249401# 一、公钥加密 假设一下,我找了两个数字,一个是1,一个是2。我喜欢2这个数字,就保留起来,不告诉你们(私钥),然后我告诉大家,1是我的公钥。 我有一个文件,不能让别人看,我就用1加密了。别人找到了这个文件,但是他不知道2就是解密的私钥啊,所以他解不开,只有我可以用 数字2,就

2017-09-14 10:14:12 876

原创 web搭建

mysql安装以及启动 yum install mysql-serverservice mysqld start注:mysqld是用来启动mysql数据库的命令 mysql是打开并执行sql语句的命令 这两个都在mysql安装文件夹的bin目录下2. 设置mysql密码 默认的mysql下root账号无密码,创建密码过程: kill掉mysql processservice mysqld

2017-08-22 17:08:49 193

转载 c语言的堆和栈的区别

面试的时候面试官问的,回答的不好,故找了资料 分享给大家,一起学习。 转载自:http://blog.csdn.net/tigerjibo/article/details/7423728 C语言中堆和栈的区别 一.前言: C语言程序经过编译连接后形成编译、连接后形成的二进制映像文件由栈,堆,数据段(由三部分部分组成:只读数据段,已经初始化读写数据段,未初始化数据段即BBS)和代码段组成,如下

2016-12-18 13:40:28 177

转载 xtrabackup(转载)

前面介绍mysqldump备份方式是采用逻辑备份,其最大的缺陷就是备份和恢复速度都慢,对于一个小于50G的数据库而言,这个速度还是能接受的,但如果数据库非常大,那再使用mysqldump备份就不太适合了。而使用lvm快照功能对数据库进行备份,可以实现几乎热备的功能,但备份过程较为复杂,不过现在倒是有个工具mylvmbackup可以实现自动化备份。前面我们也说道,使用物理备份时最快的,那有没有办法实现

2016-12-12 19:21:34 455

原创 mysql

select select-list from tb where qualificationselect * from tb_nameselect field1,field2 from tb_nameselect [distinct] * from tb_name where qualificationdistinct(相同的值 只显示一次)session/global show global v

2016-12-11 18:27:50 247

原创 mysql client

\? 查看mysql的交互命令 source .载入文件脚本或者重定向 mysql > 脚本文件 delimiter 更改结束符 \d ; 客户端 语句不需要结束符,因为与服务器交互 \c 提前结束语句 \r 查看信息 \g 无论语句结束符是什么,直接将此语句送入服务器执行 \G(以竖排显示结束) system ! 执行shell命令 \W 语句执行结束后 显示警告语句

2016-12-03 19:45:23 291

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除