background picture of the home page

Hi,Friend

Kubernetes 挂载示例

ConfigMapConfigMap作用是存储不加密的数据到etcd中,让Pod以变量或数据卷Volume挂载到容器中应用场景配置文件Nginx 挂载 ConfigMap 配置文件创建配置文件创建一个配置文件 nginx.confuser nginx;worker_processes auto;

thumbnail of the cover of the post

metrics-server

简介从Kubernetes 1.8开始,Kubernetes通过Metrics API提供资源使用指标,例如容器CPU和内存使用率。这些度量可以由用户直接访问(例如,通过使用kubectl top命令),或者由集群中的控制器(例如,Horizontal Pod Autoscaler)使用来进行决策,

thumbnail of the cover of the post

Kubernetes 使用 Ceph RBD/NFS 存储

Kubernetes/Ceph 技术堆栈要使用 Ceph 块设备,您必须在 Kubernetes 环境中安装和配置Ceph-CSI。 下图描绘了Kubernetes/Ceph 技术堆栈。创建 pool默认情况下,Ceph块设备使用RBD池。 为Kubernetes卷存储创建一个池。 确保您的Ceph

thumbnail of the cover of the post

Ceph 集群搭建

ceph 基础架构Ceph 存储集群至少需要一个 Ceph Monitor 和两个 OSD 守护进程。而运行 Ceph 文件系统客户端时,则必须要有元数据服务器( Metadata Server )。Ceph OSDsCeph OSDs: Ceph OSD 守护进程( Ceph OSD )的功能是存

thumbnail of the cover of the post

Go 编程规范

用 recover 处理 goroutine 中 panic异步开启 goroutine 的地方,需要在最顶层增加recover(),捕捉panic,避免个别 goroutine 出错导致整体退出:package mainimport ( "fmt" "t

thumbnail of the cover of the post

一文教你搞懂 Go 中栈操作

LInux 进程在内存布局多任务操作系统中的每个进程都在自己的内存沙盒中运行。在 32 位模式下,它总是 4GB 内存地址空间,内存分配是分配虚拟内存给进程,当进程真正访问某一虚拟内存地址时,操作系统通过触发缺页中断,在物理内存上分配一段相应的空间再与之建立映射关系,这样进程访问的虚拟内存地址,会被

thumbnail of the cover of the post