抽时间搭了一个基于GitHub Pages的博客,本文记录一下选用中用到的东西和细节。 组件 godaddy 域名注册 github pages hugo hugo中文站 hugo官网站 disqus disqus gitment gitment 免费全站https+cdn cloudflare travis-ci 域名注册 域名注册不再讲述,大家都是搞IT的应该都搞过。 配置github pages 创建一个仓库以自己的用户名开头 例 du2016.github.io 在该repo的配置中设置域名以及分组等信息 安装hugo MAC快捷安装 brew install hugo 访问github获取最新版本 https://github.com/gohugoio/hugo/releases 生成站点 hugo new site mysite 选择hugo主题 我使用的是hugo-tranquilpeak-theme cd mysite rm -rf config.toml content/ static/ git clone https://github.com/kakawait/hugo-tranquilpeak-theme.git themes/hugo-tranquilpeak-theme cp -r themes/hugo-tranquilpeak-theme/{config.toml,content,static} ./ 编辑 config.toml填写个人站点信息 添加文章 hugo new post/install-conduit-on-k8s.md 创建的文章draft: true属性,即为草稿,如要发表该文章请改为false

阅读全文

conduit 初探

Conduit 介绍 Conduit是buoyant公司出品的,面向k8s的servicemesh产品,该公司另外一个产品为linkerd,现在业界唯一的生产级servicemesh产品。目标是在无需代码的改动就可以实现对应用程序的可见和控制。 环境 kubernetes 1.8+ 在没有k8s环境的情况下,推荐使用minikube来快速生成。 安装cli curl https://run.conduit.io/install | sh 安装conduit控制面板 conduit install | kubectl apply -f - conduit dashboard 官方的程序目前没有自动创建serviceaccount,需要手动创建serviceaccount,分配clusterrole,应用到deploy kubectl create serviceaccount conduit --namespace=conduit cat <<EOF | kubectl apply -f - apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: condit:cluster-admin namespace: kube-system roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: cluster-admin subjects: - kind: ServiceAccount name: conduit namespace: conduit EOF 分别修改controller和prometheus应用添加serviceAccount: conduit kubectl get deploy --namespace=conduit controller kubectl get deploy --namespace=conduit prometheus 安装官方的演示程序 curl https://raw.

阅读全文

作者的图片

tianpeng du

All in k8s,All in servicemesh

devops

BeiJing