<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[fy_long的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/fy_long</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; fy_long]]></copyright><item><title><![CDATA[kube-apiserver源码分析]]></title><link>https://blog.csdn.net/fy_long/article/details/102477510</link><guid>https://blog.csdn.net/fy_long/article/details/102477510</guid><author>fy_long</author><pubDate>Thu, 10 Oct 2019 11:16:59 +0800</pubDate><description><![CDATA[启动分析
apiserver启动使用的是cobra的命令行方式
		RunE: func(cmd *cobra.Command, args []string) error {
			verflag.PrintAndExitIfRequested()
			utilflag.PrintFlags(cmd.Flags())

			// 完成参数的配置;
			completedOptions, er...]]></description><category></category></item><item><title><![CDATA[k8s怎么创建一个pod（源码分析）]]></title><link>https://blog.csdn.net/fy_long/article/details/102477481</link><guid>https://blog.csdn.net/fy_long/article/details/102477481</guid><author>fy_long</author><pubDate>Thu, 10 Oct 2019 11:15:42 +0800</pubDate><description><![CDATA[整体结构
​		kubelet 调用下层容器运行时的执行过程，并不会直接调用Docker 的 API，而是通过一组叫作 CRI（Container Runtime Interface，容器运行时接口）的 gRPC 接口来间接执行的。Kubernetes 项目之所以要在 kubelet 中引入这样一层单独的抽象，当然是为了对 Kubernetes 屏蔽下层容器运行时的差异。
​		CRI工作流程：
...]]></description><category></category></item><item><title><![CDATA[operator framework搭建operator开发环境]]></title><link>https://blog.csdn.net/fy_long/article/details/102477443</link><guid>https://blog.csdn.net/fy_long/article/details/102477443</guid><author>fy_long</author><pubDate>Thu, 10 Oct 2019 11:14:23 +0800</pubDate><description><![CDATA[简介
operator framework 是一个为云原生开发者提供开发operator的组件框架的开源项目，它目前包含三个组件：
Operator SDK。集成controller-runtime，提供了：编写运维逻辑的高阶API，快速构建Operator项目及代码生成的脚手架工具，覆盖常见Operator用例的扩展。Operator SDK是Operator Framework中最核心的工程。...]]></description><category></category></item><item><title><![CDATA[[LeetCode-go]罗马数字转整数]]></title><link>https://blog.csdn.net/fy_long/article/details/91359085</link><guid>https://blog.csdn.net/fy_long/article/details/91359085</guid><author>fy_long</author><pubDate>Sun, 09 Jun 2019 23:32:26 +0800</pubDate><description><![CDATA[[LeetCode-go]罗马数字转整数

]]></description><category></category></item><item><title><![CDATA[[LeetCode-go]回文数]]></title><link>https://blog.csdn.net/fy_long/article/details/91359082</link><guid>https://blog.csdn.net/fy_long/article/details/91359082</guid><author>fy_long</author><pubDate>Sun, 09 Jun 2019 23:31:42 +0800</pubDate><description><![CDATA[[LeetCode-go]回文数

]]></description><category></category></item><item><title><![CDATA[[LeetCode-go]整数反转]]></title><link>https://blog.csdn.net/fy_long/article/details/91359074</link><guid>https://blog.csdn.net/fy_long/article/details/91359074</guid><author>fy_long</author><pubDate>Sun, 09 Jun 2019 23:30:57 +0800</pubDate><description><![CDATA[[LeetCode-go]整数反转

]]></description><category></category></item><item><title><![CDATA[[LeetCode-go]两数之和]]></title><link>https://blog.csdn.net/fy_long/article/details/91359053</link><guid>https://blog.csdn.net/fy_long/article/details/91359053</guid><author>fy_long</author><pubDate>Sun, 09 Jun 2019 23:29:44 +0800</pubDate><description><![CDATA[[LeetCode-go]两数之和

]]></description><category></category></item><item><title><![CDATA[Kubernetes Clientset]]></title><link>https://blog.csdn.net/fy_long/article/details/89678994</link><guid>https://blog.csdn.net/fy_long/article/details/89678994</guid><author>fy_long</author><pubDate>Mon, 29 Apr 2019 17:14:04 +0800</pubDate><description><![CDATA[Kubernetes Clientset


Kubernetes Clientset

资源类型 Scheme

types.go 文件
zz_generated.deepcopy.go 文件
register.go 文件


注册所有内置资源类型到 Scheme 对象
创建和使用 Kubernetes Clientset
创建支持所有资源类型的全局 Clientset
各资源类型的 Clien...]]></description><category></category></item><item><title><![CDATA[自定义 Controller]]></title><link>https://blog.csdn.net/fy_long/article/details/89678976</link><guid>https://blog.csdn.net/fy_long/article/details/89678976</guid><author>fy_long</author><pubDate>Mon, 29 Apr 2019 17:13:31 +0800</pubDate><description><![CDATA[自定义 Controller


自定义 Controller

使用 Informer 的自定义 Controller
参考




一般自定义 controller 的模式是：

创建一个 SharedIndexInformer 和 workerqueue。
在 SharedIndexInformer 中注册 OnAdd/OnUpdate/OnDelete 的处理函数是 enqueue，它向队...]]></description><category></category></item><item><title><![CDATA[workqueue]]></title><link>https://blog.csdn.net/fy_long/article/details/89678957</link><guid>https://blog.csdn.net/fy_long/article/details/89678957</guid><author>fy_long</author><pubDate>Mon, 29 Apr 2019 17:12:58 +0800</pubDate><description><![CDATA[workqueue


workqueue

Interface 接口

实现 Interface 接口的 Type 类型

Add() 方法
Get() 方法
Done() 方法
向 workqueue 添加 item 的 4 种情况




RateLimiter 接口

实现 RateLimter 接口的 BucketRateLimiter 类型
实现 RateLimter 接口的 Item...]]></description><category></category></item><item><title><![CDATA[SharedInformerFactory 接口]]></title><link>https://blog.csdn.net/fy_long/article/details/89678945</link><guid>https://blog.csdn.net/fy_long/article/details/89678945</guid><author>fy_long</author><pubDate>Mon, 29 Apr 2019 17:12:27 +0800</pubDate><description><![CDATA[SharedInformerFactory 接口


SharedInformerFactory 接口

自定向下
internalinterfaces.SharedInformerFactory 接口
实现 SharedInformerFactory 接口的类型 sharedInformerFactory

InformerFor() 方法
Start() 方法
ForResource() 方法...]]></description><category></category></item><item><title><![CDATA[Lister 接口]]></title><link>https://blog.csdn.net/fy_long/article/details/89678928</link><guid>https://blog.csdn.net/fy_long/article/details/89678928</guid><author>fy_long</author><pubDate>Mon, 29 Apr 2019 17:11:58 +0800</pubDate><description><![CDATA[Lister 接口


Lister 接口

GenericLister 和 GenericNamespaceLister 接口
codegent 生成的特定资源类型的 Informer 和 Lister




Lister 是可以通过对象名称、命名空间、标签选择器等查询条件 Get 或 List 对象的接口，一般是基于 Indexer 实现。
使用 codegen 工具可以为各资源类型生成类型...]]></description><category></category></item><item><title><![CDATA[Informer]]></title><link>https://blog.csdn.net/fy_long/article/details/89678910</link><guid>https://blog.csdn.net/fy_long/article/details/89678910</guid><author>fy_long</author><pubDate>Mon, 29 Apr 2019 17:11:26 +0800</pubDate><description><![CDATA[Informer


Informer

processorListener

add() 方法
pop() 方法
run() 方法


sharedProcessor

addListener() 和 addListenerLocked() 方法
distribute() 方法
run() 方法
shouldResync() 方法


SharedInformer 和 SharedIndexIn...]]></description><category></category></item><item><title><![CDATA[kubernetes 事件反射器]]></title><link>https://blog.csdn.net/fy_long/article/details/89678884</link><guid>https://blog.csdn.net/fy_long/article/details/89678884</guid><author>fy_long</author><pubDate>Mon, 29 Apr 2019 17:10:46 +0800</pubDate><description><![CDATA[kubernetes 事件反射器


kubernetes 事件反射器

ListWatcher 接口

实现 ListWatcher 接口的 ListWatch
使用 ListWatch 的 Informer


Reflector

Reflector 类型定义
创建 Reflector 对象的函数
Run() 方法
ListAndWatch() 方法


使用 Reflector 的 con...]]></description><category></category></item><item><title><![CDATA[Kubernetes 事件队列]]></title><link>https://blog.csdn.net/fy_long/article/details/89678868</link><guid>https://blog.csdn.net/fy_long/article/details/89678868</guid><author>fy_long</author><pubDate>Mon, 29 Apr 2019 17:10:15 +0800</pubDate><description><![CDATA[Kubernetes 事件队列


Kubernetes 事件队列

Queue 定义了队列接口
FIFO 是先入先出的队列

Add() 方法
Update() 方法
Delete() 方法
Pop() 方法
Replace() 方法
HasSyncd() 方法
Resync() 方法


DeltaFIFO 是记录对象历史事件的队列

DeltaFIFO 的生产者和消费者
记录对象事件的 De...]]></description><category></category></item><item><title><![CDATA[Kubernetes 对象缓存和索引]]></title><link>https://blog.csdn.net/fy_long/article/details/89678829</link><guid>https://blog.csdn.net/fy_long/article/details/89678829</guid><author>fy_long</author><pubDate>Mon, 29 Apr 2019 17:09:10 +0800</pubDate><description><![CDATA[Kubernetes 对象缓存和索引


Kubernetes 对象缓存和索引

对象缓存 Store
对象索引 Indexer
为对象生成索引值列表的 IndexFunc 和 IndexFunc 集合 Indexers
索引缓存 Index 和 Indices
为对象生成唯一标识 Key 的 KeyFunc
可并发访问的索引缓存 ThreadSafeStore

Add/Update() 方法
...]]></description><category></category></item><item><title><![CDATA[kubernetes1.13.4部署traefik]]></title><link>https://blog.csdn.net/fy_long/article/details/89248210</link><guid>https://blog.csdn.net/fy_long/article/details/89248210</guid><author>fy_long</author><pubDate>Fri, 12 Apr 2019 17:32:39 +0800</pubDate><description><![CDATA[基础环境
拥有一个完美运行的kubernetes1.13.4集群并已经部署过dashboard，可参考我的部署文章创建自己的集群。
部署步骤


编写部署需要的yaml文件


traefik-rbac.yaml
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
  name: traefik...]]></description><category></category></item><item><title><![CDATA[kubernetes1.13.4部署nginx-ingress]]></title><link>https://blog.csdn.net/fy_long/article/details/89248180</link><guid>https://blog.csdn.net/fy_long/article/details/89248180</guid><author>fy_long</author><pubDate>Fri, 12 Apr 2019 17:31:51 +0800</pubDate><description><![CDATA[基础环境
拥有一个完美运行的kubernetes1.13.4集群并已经部署过dashboard，可参考我的部署文章创建自己的集群。
部署步骤


编写部署需要的yaml文件


mandatory.yaml
apiVersion: v1
kind: Namespace
metadata:
  name: ingress-nginx
  labels:
    app.kubernetes.io/n...]]></description><category></category></item><item><title><![CDATA[kubernetes1.13.4部署EFK]]></title><link>https://blog.csdn.net/fy_long/article/details/89216968</link><guid>https://blog.csdn.net/fy_long/article/details/89216968</guid><author>fy_long</author><pubDate>Thu, 11 Apr 2019 18:13:52 +0800</pubDate><description><![CDATA[基础环境
拥有一个完美运行的kubernetes1.13.4集群，可参考我的部署文章创建自己的集群。
部署步骤


编写部署需要的yaml文件


es-psp-binding.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: gce:podsecuritypolicy:elastic...]]></description><category></category></item><item><title><![CDATA[kubernetes1.13.4集成安装heapster]]></title><link>https://blog.csdn.net/fy_long/article/details/89216940</link><guid>https://blog.csdn.net/fy_long/article/details/89216940</guid><author>fy_long</author><pubDate>Thu, 11 Apr 2019 18:12:52 +0800</pubDate><description><![CDATA[基础环境
拥有一个完美运行的kubernetes1.13.4集群并已经部署过dashboard，可参考我的部署文章创建自己的集群。
NT:heapster在kubernetes1.8以后不被推荐了，转而推荐使用metrics-server
部署步骤


编写部署需要的yaml文件
NT：下面的文件相较于官方文档有改动，解决了国内环境的镜像拉取问题，同时解决了几个小bug。大家可以对比参考。


g...]]></description><category></category></item></channel></rss>