<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Huabing Blog</title><link>/</link><description>Recent content on Huabing Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 02 Jun 2018 00:00:00 +0000</lastBuildDate><atom:link href="/index.xml" rel="self" type="application/rss+xml"/><item><title>Istio 0.8 Release发布</title><link>/2018/06/02/istio08/</link><pubDate>Sat, 02 Jun 2018 00:00:00 +0000</pubDate><guid>/2018/06/02/istio08/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;在6月1日这一天的早上，Istio社区宣布发布0.8 Release，除了常规的故障修复和性能改进外，这个儿童节礼物里面还有什么值得期待内容呢？让我们来看一看：&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item><item><title>Everything about Setting Up My Ubuntu Desktop</title><link>/2018/05/24/set_up_my_ubuntu_desktop/</link><pubDate>Thu, 24 May 2018 00:00:00 +0000</pubDate><guid>/2018/05/24/set_up_my_ubuntu_desktop/</guid><description>&lt;h2 id="generate-ssh-key-pair"&gt;Generate SSH Key Pair&lt;/h2&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;ssh-keygen -C &amp;#34;zhaohuabing@gmail.com&amp;#34;&#10;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="shadowsocks"&gt;Shadowsocks&lt;/h2&gt;&#10;&lt;p&gt;Install shadowsokcs&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;sudo apt-get install python3-pip&#10;&#10;sudo pip3 install shadowsocks&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Create config at &lt;code&gt;config/shadowsocks.json&lt;/code&gt;, with the following content:&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;{&#10;&#9;&amp;#34;server&amp;#34;:&amp;#34;remote-shadowsocks-server-ip-addr&amp;#34;,&#10;&#9;&amp;#34;server_port&amp;#34;:443,&#10;&#9;&amp;#34;local_address&amp;#34;:&amp;#34;127.0.0.1&amp;#34;,&#10;&#9;&amp;#34;local_port&amp;#34;:1080,&#10;&#9;&amp;#34;password&amp;#34;:&amp;#34;your-passwd&amp;#34;,&#10;&#9;&amp;#34;timeout&amp;#34;:300,&#10;&#9;&amp;#34;method&amp;#34;:&amp;#34;aes-256-cfb&amp;#34;,&#10;&#9;&amp;#34;fast_open&amp;#34;:false,&#10;&#9;&amp;#34;workers&amp;#34;:1&#10;}&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Start a local socks proxy&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;sudo sslocal -c config/shadowsocks.json -d start&#10;&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>Istio Sidecar自动注入原理</title><link>/2018/05/23/istio-auto-injection-with-webhook/</link><pubDate>Wed, 23 May 2018 00:00:00 +0000</pubDate><guid>/2018/05/23/istio-auto-injection-with-webhook/</guid><description>&lt;h2 id="前言"&gt;前言&lt;/h2&gt;&#10;&lt;hr&gt;&#10;&lt;p&gt;Kubernets 1.9版本引入了Admission Webhook(web 回调)扩展机制，通过Webhook,开发者可以非常灵活地对Kubernets API Server的功能进行扩展，在API Server创建资源时对资源进行验证或者修改。&lt;/p&gt;&#10;&lt;p&gt;使用webhook的优势是不需要对API Server的源码进行修改和重新编译就可以扩展其功能。插入的逻辑实现为一个独立的web进程，通过参数方式传入到kubernets中，由kubernets在进行自身逻辑处理时对扩展逻辑进行回调。&lt;/p&gt;&#10;&lt;p&gt;Istio 0.7版本就利用了Kubernets webhook实现了sidecar的自动注入。&lt;/p&gt;</description></item><item><title>如何配置docker使用HTTP代理</title><link>/2018/03/13/use-docker-behind-http-proxy/</link><pubDate>Tue, 13 Mar 2018 18:00:00 +0000</pubDate><guid>/2018/03/13/use-docker-behind-http-proxy/</guid><description>&lt;h2 id="ubuntu"&gt;Ubuntu&lt;/h2&gt;&#10;&lt;h3 id="设置docker使用http-proxy"&gt;设置docker使用http proxy&lt;/h3&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;sudo /etc/default/docker&#10;&#10;export http_proxy=&amp;#34;http://127.0.0.1:3128/&amp;#34;&#10;export https_proxy=&amp;#34;http://127.0.0.1:3128/&amp;#34;&#10;export HTTP_PROXY=&amp;#34;http://127.0.0.1:3128/&amp;#34;&#10;export HTTPS_PROXY=&amp;#34;http://127.0.0.1:3128/&amp;#34;&#10;&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>Vim Tips</title><link>/2018/02/09/vim-tips/</link><pubDate>Fri, 09 Feb 2018 11:00:00 +0000</pubDate><guid>/2018/02/09/vim-tips/</guid><description>&lt;h2 id="vim-graphical-cheat-sheet"&gt;vim graphical cheat sheet&lt;/h2&gt;&#10;&lt;p&gt;&#10; &lt;img src="//img/2018-02-09-vim-tips/vi-vim-cheat-sheet.svg" alt=""&gt;&#10;&#10;&lt;/p&gt;</description></item><item><title>如何使用非root用户执行docker命令</title><link>/2018/02/09/docker-without-sudo/</link><pubDate>Fri, 09 Feb 2018 10:00:00 +0000</pubDate><guid>/2018/02/09/docker-without-sudo/</guid><description>&lt;h3 id="add-the-docker-group-if-it-doesnt-already-exist"&gt;Add the docker group if it doesn&amp;rsquo;t already exist:&lt;/h3&gt;&#10;&lt;p&gt;sudo groupadd docker&lt;/p&gt;&#10;&lt;h3 id="add-the-connected-user-user-to-the-docker-group-change-the-user-name-to-match-your-preferred-user-if-you-do-not-want-to-use-your-current-user"&gt;Add the connected user &amp;ldquo;$USER&amp;rdquo; to the docker group. Change the user name to match your preferred user if you do not want to use your current user:&lt;/h3&gt;&#10;&lt;p&gt;sudo gpasswd -a $USER docker&lt;/p&gt;&#10;&lt;h3 id="either-do-a-newgrp-docker-or-log-outin-to-activate-the-changes-to-groups"&gt;Either do a newgrp docker or log out/in to activate the changes to groups.&lt;/h3&gt;</description></item><item><title>使用Istio实现应用流量转移</title><link>/2017/11/07/istio-traffic-shifting/</link><pubDate>Tue, 07 Nov 2017 00:00:00 +0000</pubDate><guid>/2017/11/07/istio-traffic-shifting/</guid><description>&lt;p&gt;关于Istio的更多内容请参考&lt;a href="http://istio.doczh.cn/"&gt;istio中文文档&lt;/a&gt;。&lt;/p&gt;&#10;&lt;p&gt;原文参见&lt;a href="https://istio.io/docs/tasks/traffic-management/traffic-shifting.html"&gt;Traffic Shifting&lt;/a&gt;。&lt;/p&gt;&#10;&lt;p&gt;本任务将演示如何将应用流量逐渐从旧版本的服务迁移到新版本。通过Istio，可以使用一系列不同权重的规则（10%，20%，··· 100%）将流量平缓地从旧版本服务迁移到新版本服务。&lt;/p&gt;</description></item><item><title>Welcome to Zhaohuabing Blog</title><link>/2017/11/03/hello-world/</link><pubDate>Sat, 04 Nov 2017 00:00:00 +0000</pubDate><guid>/2017/11/03/hello-world/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;“Yeah It&amp;rsquo;s on. ”&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;h2 id="hello-world"&gt;Hello World!&lt;/h2&gt;</description></item></channel></rss>