http://books.hostcache.com/cgi-bin/books.cgi
欢迎骚扰
在k8s上用了3个mysql pod,以及3个web pod,如下所示。
[ol]~$ k get pod -l app=books
NAME READY STATUS RESTARTS AGE
books-fd4f9cccd-cs985 1/1 Running 0 6m19s
books-fd4f9cccd-rl2r5 1/1 Running 0 6m19s
books-fd4f9cccd-rwnrf 1/1 Running 0 6m19s
~$ k get pod -l app=custo-mysql
NAME READY STATUS RESTARTS AGE
custo-mysql-0 1/1 Running 0 7h41m
custo-mysql-1 1/1 Running 1 (35h ago) 4d3h
custo-mysql-2 1/1 Running 1 (35h ago) 4d3h[/ol]复制代码
k8s这点挺强的,随便kill webserver和kill mysql,都自动重启一个新的。
接下来准备把我的1ip blog搬到k8s上去。有没有人看不重要,关键是折腾的态度。