-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
288 lines (236 loc) · 11.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Huan Zhang's blog</title>
<meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">
<meta name="author" content="Huan Zhang" /><meta name="description" content="Huan Zhang's blog." /><meta name="keywords" content="Kubernetes, k8s, Golang" />
<meta name="generator" content="Hugo 0.54.0 with even 4.0.0" />
<link rel="canonical" href="https://fisher046.github.io/" />
<link href="https://fisher046.github.io/index.xml" rel="alternate" type="application/rss+xml" title="Huan Zhang's blog" />
<link href="https://fisher046.github.io/index.xml" rel="feed" type="application/rss+xml" title="Huan Zhang's blog" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<link href="/dist/even.c2a46f00.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">
<meta property="og:title" content="Huan Zhang's blog" />
<meta property="og:description" content="Huan Zhang's blog." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://fisher046.github.io/" />
<meta property="og:updated_time" content="2019-03-08T09:05:12+08:00"/>
<meta itemprop="name" content="Huan Zhang's blog">
<meta itemprop="description" content="Huan Zhang's blog.">
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Huan Zhang's blog"/>
<meta name="twitter:description" content="Huan Zhang's blog."/>
<!--[if lte IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/html5shiv.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dest/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div id="mobile-navbar" class="mobile-navbar">
<div class="mobile-header-logo">
<a href="/" class="logo">Huan Zhang's blog</a>
</div>
<div class="mobile-navbar-icon">
<span></span>
<span></span>
<span></span>
</div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
<ul class="mobile-menu-list">
<a href="/">
<li class="mobile-menu-item">Home</li>
</a><a href="/post/">
<li class="mobile-menu-item">Archives</li>
</a><a href="/tags/">
<li class="mobile-menu-item">Tags</li>
</a><a href="/categories/">
<li class="mobile-menu-item">Categories</li>
</a>
</ul>
</nav>
<div class="container" id="mobile-panel">
<header id="header" class="header">
<div class="logo-wrapper">
<a href="/" class="logo">Huan Zhang's blog</a>
</div>
<nav class="site-navbar">
<ul id="menu" class="menu">
<li class="menu-item">
<a class="menu-item-link" href="/">Home</a>
</li><li class="menu-item">
<a class="menu-item-link" href="/post/">Archives</a>
</li><li class="menu-item">
<a class="menu-item-link" href="/tags/">Tags</a>
</li><li class="menu-item">
<a class="menu-item-link" href="/categories/">Categories</a>
</li>
</ul>
</nav>
</header>
<main id="main" class="main">
<div class="content-wrapper">
<div id="content" class="content">
<section id="posts" class="posts">
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/post/how-to-generate-kube-config-with-limited-access/">How to generate kubeconfig with limited access</a></h1>
<div class="post-meta">
<span class="post-time"> 2019-03-08 </span>
<div class="post-category">
<a href="/categories/kubernetes/"> Kubernetes </a>
</div>
<span class="more-meta"> 255 words </span>
<span class="more-meta"> 2 mins read </span>
</div>
</header>
<div class="post-content">
<div class="post-summary">
Requirement I have full access kubeconfig and I want to provide a limited kubeconfig to another user, which only has access to resources in one specific namespace.
Steps Create the namespace.
1 kubectl create namespace example Create a ServiceAccount in previous namespace.
1 2 3 4 5 apiVersion:v1kind:ServiceAccountmetadata:name:example-usernamespace:example 1 kubectl create -f service_account.yaml Create Role and RoleBinding for the ServiceAccount in previous namespace.
</div>
<div class="read-more">
<a href="/post/how-to-generate-kube-config-with-limited-access/" class="read-more-link">Read more..</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/post/how-to-create-pv-dynamically-on-k8s-with-aws-efs/">How to create PV dynamically on k8s with AWS EFS</a></h1>
<div class="post-meta">
<span class="post-time"> 2019-03-05 </span>
<div class="post-category">
<a href="/categories/kubernetes/"> Kubernetes </a>
</div>
<span class="more-meta"> 424 words </span>
<span class="more-meta"> 2 mins read </span>
</div>
</header>
<div class="post-content">
<div class="post-summary">
Preface When I was using AWS as Kubernetes cloud provider, I have two choices for persistent volume, EBS and EFS. However, EBS can only mount to one EC2 instance, which is not appropriate to my scenario, so I can only choose EFS.
My requirement is that when I need a persistent volume, I only create PVC and the related PV should be created automatically. So I summary the steps to reach my purpose in below words.
</div>
<div class="read-more">
<a href="/post/how-to-create-pv-dynamically-on-k8s-with-aws-efs/" class="read-more-link">Read more..</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/post/tips-of-deploying-service-on-k8s/">Tips of deploying service on Kubernetes</a></h1>
<div class="post-meta">
<span class="post-time"> 2018-10-21 </span>
<div class="post-category">
<a href="/categories/kubernetes/"> Kubernetes </a>
</div>
<span class="more-meta"> 535 words </span>
<span class="more-meta"> 3 mins read </span>
</div>
</header>
<div class="post-content">
<div class="post-summary">
Preface These are some tips or something should be considered when you want to deploy your service on Kubernetes.
About Pod How to decide what things should be put in one Pod? When designing a Pod, you should consider below 4 types container.
Function container Init container Monitor container Operator container Function container is the service.
Init container is responsible for initializing the service. For example, the configuration.
</div>
<div class="read-more">
<a href="/post/tips-of-deploying-service-on-k8s/" class="read-more-link">Read more..</a>
</div>
</div>
</article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/post/understanding-the-nil-in-golang/">Understanding the nil in Golang</a></h1>
<div class="post-meta">
<span class="post-time"> 2018-08-10 </span>
<div class="post-category">
<a href="/categories/golang/"> Golang </a>
</div>
<span class="more-meta"> 1209 words </span>
<span class="more-meta"> 3 mins read </span>
</div>
</header>
<div class="post-content">
<div class="post-summary">
Reference GopherCon 2016: Francesc Campoy - Understanding nil 理解Go语言的nil Is it a bug? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 package main import ( "fmt" ) type doError struct{} func (e *doError) Error() string { return "" } func do() error { var err *doError return err
</div>
<div class="read-more">
<a href="/post/understanding-the-nil-in-golang/" class="read-more-link">Read more..</a>
</div>
</div>
</article>
</section>
<nav class="pagination">
</nav>
</div>
</div>
</main>
<footer id="footer" class="footer">
<div class="social-links">
<a href="mailto:[email protected]" class="iconfont icon-email" title="email"></a>
<a href="http://localhost:1313" class="iconfont icon-stack-overflow" title="stack-overflow"></a>
<a href="http://localhost:1313" class="iconfont icon-twitter" title="twitter"></a>
<a href="http://localhost:1313" class="iconfont icon-facebook" title="facebook"></a>
<a href="http://localhost:1313" class="iconfont icon-linkedin" title="linkedin"></a>
<a href="http://localhost:1313" class="iconfont icon-google" title="google"></a>
<a href="http://localhost:1313" class="iconfont icon-github" title="github"></a>
<a href="http://localhost:1313" class="iconfont icon-weibo" title="weibo"></a>
<a href="http://localhost:1313" class="iconfont icon-zhihu" title="zhihu"></a>
<a href="http://localhost:1313" class="iconfont icon-douban" title="douban"></a>
<a href="http://localhost:1313" class="iconfont icon-pocket" title="pocket"></a>
<a href="http://localhost:1313" class="iconfont icon-tumblr" title="tumblr"></a>
<a href="http://localhost:1313" class="iconfont icon-instagram" title="instagram"></a>
<a href="http://localhost:1313" class="iconfont icon-gitlab" title="gitlab"></a>
<a href="http://localhost:1313" class="iconfont icon-bilibili" title="bilibili"></a>
<a href="https://fisher046.github.io/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
</div>
<div class="copyright">
<span class="power-by">
Powered by <a class="hexo-link" href="https://gohugo.io">Hugo</a>
</span>
<span class="division">|</span>
<span class="theme-info">
Theme -
<a class="theme-link" href="https://github.com/olOwOlo/hugo-theme-even">Even</a>
</span>
<span class="copyright-year">
©
2019
<span class="heart">
<i class="iconfont icon-heart"></i>
</span>
<span class="author">Huan Zhang</span>
</span>
</div>
</footer>
<div class="back-to-top" id="back-to-top">
<i class="iconfont icon-up"></i>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>
<script type="text/javascript" src="/dist/even.26188efa.min.js"></script>
</body>
</html>