<feed xmlns="http://www.w3.org/2005/Atom"> <id>https://yuzhiquan.github.io/</id><title>小胖鱼@Think</title><subtitle>Cloud Native、Kubernetes、Go 与 LLM 基础设施的技术笔记。</subtitle> <updated>2026-11-04T09:57:01+08:00</updated> <author> <name>yuzhiquan</name> <uri>https://yuzhiquan.github.io/</uri> </author><link rel="self" type="application/atom+xml" href="https://yuzhiquan.github.io/feed.xml"/><link rel="alternate" type="text/html" hreflang="zh-CN" href="https://yuzhiquan.github.io/"/> <generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator> <rights> © 2026 yuzhiquan </rights> <icon>/assets/img/favicons/favicon.ico</icon> <logo>/assets/img/favicons/favicon-96x96.png</logo> <entry><title>Flannel改CNI方式</title><link href="https://yuzhiquan.github.io/2021/03/03/flannel-to-cni/" rel="alternate" type="text/html" title="Flannel改CNI方式" /><published>2021-03-03T00:00:00+08:00</published> <updated>2021-03-03T00:00:00+08:00</updated> <id>https://yuzhiquan.github.io/2021/03/03/flannel-to-cni/</id> <content type="text/html" src="https://yuzhiquan.github.io/2021/03/03/flannel-to-cni/" /> <author> <name>yuzhiquan</name> </author> <category term="k8s" /> <summary>背景： 目前的部署方式，ip分配由docker默认的bridge driver来进行ipam分配，目前还不支持配置为serial模式，某些情况下快速复用容器ip会造成一些时序问题 调研线性分配容器ip方案 方案设计： docker bridge driver 线性ip分配，libnetwork支持这一配置，但是在docker daemon创建default driver时却无法进行ipam-option配置，已经进行修复提交给社区 flannel改为cni模式，这样ip分配就有ipam binary来进行，而默认的host-local分配方式就是线性分配的 方案实施： 原有的flannel进程暂时不进行修改 1.获取cni插件，在node上执行 mkdir -p /opt/cni/bin/ &amp;amp;&amp;amp; mkdir -p /etc/cni/net.d/ wget ...</summary> </entry> <entry><title>python的属性设置</title><link href="https://yuzhiquan.github.io/2020/12/14/python_setattr/" rel="alternate" type="text/html" title="python的属性设置" /><published>2020-12-14T00:00:00+08:00</published> <updated>2020-12-14T00:00:00+08:00</updated> <id>https://yuzhiquan.github.io/2020/12/14/python_setattr/</id> <content type="text/html" src="https://yuzhiquan.github.io/2020/12/14/python_setattr/" /> <author> <name>yuzhiquan</name> </author> <category term="python" /> <summary>python中的属性管理由__dict__存储 __getattr__与__getattribute__ 区别 __getattr__在访问不存在的成员时才会触发，可以用来做部分异常处理 __getattribute__则拦截所有对属性的访问（包括对__dict__的访问），如果class同时定义了__getattr__和__getattribute__，__getattr__不会生效 ```python In [29]: class Test(object): …: def init(self,name): …: self.name=name …: def getattr(self,args,kwargs): …: if ‘age’ in args: …: return 20 …: d...</summary> </entry> <entry><title>Kubernetes架构</title><link href="https://yuzhiquan.github.io/2020/12/14/kubernetes-summary/" rel="alternate" type="text/html" title="Kubernetes架构" /><published>2020-12-14T00:00:00+08:00</published> <updated>2020-12-14T00:00:00+08:00</updated> <id>https://yuzhiquan.github.io/2020/12/14/kubernetes-summary/</id> <content type="text/html" src="https://yuzhiquan.github.io/2020/12/14/kubernetes-summary/" /> <author> <name>yuzhiquan</name> </author> <category term="k8s" /> <summary>本文在旧站为空白草稿（原文正文为空），内容待补。</summary> </entry> <entry><title>阿里云部署高可用K8S集群</title><link href="https://yuzhiquan.github.io/2020/12/14/k8s_install_in_aliyun_vpc/" rel="alternate" type="text/html" title="阿里云部署高可用K8S集群" /><published>2020-12-14T00:00:00+08:00</published> <updated>2020-12-14T00:00:00+08:00</updated> <id>https://yuzhiquan.github.io/2020/12/14/k8s_install_in_aliyun_vpc/</id> <content type="text/html" src="https://yuzhiquan.github.io/2020/12/14/k8s_install_in_aliyun_vpc/" /> <author> <name>yuzhiquan</name> </author> <category term="docker-go-k8s" /> <summary>阿里云部署高可用K8S集群 环境： 阿里云ECS，Ubuntu 16.04.3 LTS,共6台，其中三台master,三台node 阿里云VPC网络环境 k8s版本 kubectl version Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.4", GitCommit:"9befc2b8928a9426501d3bf62f72849d5cbcd5a3", GitTreeState:"clean", BuildDate:"2017-11-20T05:28:34Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Mino...</summary> </entry> <entry><title>Kubernetes service实现</title><link href="https://yuzhiquan.github.io/2020/12/14/k8s-service/" rel="alternate" type="text/html" title="Kubernetes service实现" /><published>2020-12-14T00:00:00+08:00</published> <updated>2020-12-14T00:00:00+08:00</updated> <id>https://yuzhiquan.github.io/2020/12/14/k8s-service/</id> <content type="text/html" src="https://yuzhiquan.github.io/2020/12/14/k8s-service/" /> <author> <name>yuzhiquan</name> </author> <category term="k8s" /> <summary>service类型 clusterip，默认通过iptables形成一个vip headless，为每个pod分配一个独有域名，访问svc时返回的是iplist loadbalancer，一般用于云厂商，需要cloud-provider支持 external，用于引入外部域名解析，类似域名cname，需要dns支持 nodeport,可以通过nodeport进行访问 clusterip实现 iptables 新增servcie，ip为：10.0.1.175（无法被ping）,后端pod为3个 kube-proxy会在所有node上写入iptables规则 -A KUBE-SERVICES -d 10.0.1.175/32 -p tcp -m comment --comment "default/hostnames: cluster IP" -m tcp...</summary> </entry> </feed>
