2016-11-22 Klaus Ma
Build make Unit test make check WHAT=pkg/kubectl make check WHAT=pkg/kubectl KUBE_TEST_ARGS="-run TestOfferStorage" GOFLAGS=-v 继续阅读 »
2016-01-18 Klaus Ma
Prepare: apt-get install -y bridge-utils // Remove Docker bridge iptables -t nat -F ifconfig docker0 down brctl delbr docker0 继续阅读 »
2018-04-06 Lingxian Kong
本博客于2018.04.21号被 OpenStack Superuser 收录,这里是链接。 继续阅读 »
2015-12-10 Klaus Ma
Goal of K8S Security Ensure a clear isolation between the container and the underlying host it runs on Limit the ability of the container to negatively impact the infrastructure or other containers Principle of Least Privilege - ensure components are only authorized to perform the actions they need, and limit the scop 继续阅读 »
2018-07-20 Lingxian Kong
更新历史: 2018.07 初稿完成 2018.10 更新与 K8S 集成的一些命令和输出 Katacontainer 是 OpenStack 基金会于 2017 KubeCon 峰会上正式发布,在2018年5月份 OpenStack 温哥华峰会上对外发布1.0版本,并且在那届峰会上还有好几个关于 katacontainer 的演讲。我对 KataContainers 的具体实现原理不清楚,只知道它是一个轻量虚拟机实现,可以无缝地与容器生态系统(实现 OCI 接口)进行集成。 继续阅读 »
2019-09-11 LEo
kubectl使用指定的配置文件 kubectl --kubeconfig /path/to/kubeconfig get no 进入pod中容器 kubectl exec -it -n ns pod-name /bin/sh 继续阅读 »
2017-04-04 Klaus Ma
前言:无意间开了个定阅号,算给自己找了一个写博客的理由和动力吧;怎么也得对得起关注的小伙伴们。其实想了想,还真不知道写点什么;现在的文章很多,除了公司的推广软文,还有一些使用者记录的一些笔记。不过好像没什么人写关于开发者的文章,索性先写一段时间关于Kuberentes开发的文章,包括一些社区的讨论和一些issue的fix过程;希望可以帮到国内的Kuberentes开发者。 继续阅读 »
2019-01-29 blademainer
kubernetes镜像无法访问的问题 经常会遇到gcr.io/google_containers被墙的问题,可以使用:https://hub.docker.com/u/googlecontainer more 继续阅读 »
2019-01-26 blademainer
Kubernetes笔记 more 导出现有的资源 bash for n in $(kubectl get -o=name pvc,configmap,serviceaccount,secret,ingress,service,deployment,statefulset,hpa,job,cronjob) do mkdir -p $(dirname $n) kubectl get -o=yaml --export $n > $n.yaml done 热更新deploy 有时候我们修改了ConfigMap,但是代码不支持,肯定不能让程序停止,因此必须支持热更新。命令如下: bash kubectl patch 继续阅读 »
2019-01-13 Alex Sun
一、Pod定义 官网文档对Pod的定义是: A Pod is the basic building block of Kubernetes–the smallest and simplest unit in the Kubernetes object model that you create or deploy. A Pod represents a running process on your cluster. 继续阅读 »