本文从探索了TKEStack 1.6中部分告警失效的原因,并提出修复手段。
Read MoreTKEStack v1.6.0 global集群中serviceaccount总是默认拥有所有权限
本文从探索了TKEStack 1.6中global集群任何serviceaccount均具有cluster-admin权限原因。
Read MoreTKEStack组件不能访问registry域名问题
本文从探索了TKEStack 1.5版本中TKEStack组件不能访问registry域名的原因,并给出解决办法。
Read MoreWhy rest.Storage interface contains only one method
rest.Storage interface contains only one method. This page show how could it utilize golang reflection to do the job.
Read MoreKubernetes sample-apiserver 代码阅读
启动过程 main.go: func main() { logs.InitLogs() defer logs.FlushLogs() stopCh := genericapiserver.SetupSignalHandler() options := server.NewWardleServerOptions(os.Stdout, os.Stderr) cmd := server.NewCommandStartWardleServer(options, stopCh) cmd.Flags().AddGoFlagSet(flag.CommandLine) if err := cmd.Execute(); err != nil { klog.Fatal(err) } } options 调用 server.NewWardleServerOption 构建了一个 WardleServerOptions 配置对象 type WardleServerOptions struct { RecommendedOptions *genericoptions.RecommendedOptions SharedInformerFactory informers.SharedInformerFactory StdOut io.Writer StdErr io.Writer } RecommendedOptions 的解释为: // RecommendedOptions contains the recommended options for running an API server. // If you add something to this list, it should be in a logical grouping.
Read More