logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

n9e源码阅读-agent-3-添加自定义系统指标采集

1. monStart采集监控指标,从该函数开始func main() {...if config.Config.Enable.Mon {monStart()}...}func monStart() {...//采集系统指标funcs.BuildMappers()funcs.Collect()...}2. 添加自定义指标type FuncsAndInterval struct {Fs[]fun

#golang
failed to register layer: Error processing tar file(exit status 1): archive/tar: invalid tar header

网上通用解法:保存镜像时:docker save -o [image].tar// 重点是加上-o选项load镜像时:docker load -i [image].tarhttps://programmerah.com/docker-load-error-processing-tar-fileexit-status-1-archive-tar-invalid-tar-header-23841/本次

#docker
n9e源码阅读-agent-3-添加自定义系统指标采集

1. monStart采集监控指标,从该函数开始func main() {...if config.Config.Enable.Mon {monStart()}...}func monStart() {...//采集系统指标funcs.BuildMappers()funcs.Collect()...}2. 添加自定义指标type FuncsAndInterval struct {Fs[]fun

#golang
Open Policy Agent(OPA) rego使用

下载opa文档地址https://www.openpolicyagent.org/docs/latest/#1-download-opacurl -L -o opa https://openpolicyagent.org/downloads/v0.33.1/opa_linux_amd64_staticchmod a+x opamv opa /usr/local/bin非交互式运行package r

n9e源码阅读-agent-3-添加agent上报信息

1. reportStart()函数上报本机信息给ams,从该函数开始func main() {...if config.Config.Enable.Report {reportStart()}...2. 定时循环上报func reportStart() {go report.LoopReport()}func LoopReport() {duration := time.Duration(con

#golang
R系实时KVM

1 warning host doesn't support requested feature: CPUID.01H:EDX.ds [bit 21] 修改nova.conf在[libvirt]下添加cpu_mode=host-passthrough2 创建虚拟机时Insufficient compute resources: Requested instance N...

#linux
rke安装k8s

文档地址:https://docs.rancher.cn/docs/rancher2.5/installation/resources/k8s-tutorials/ha-rke/_index/https://docs.rancher.cn/docs/rke/_index环境准备1. 安装docker-ce2. 禁用所有worker节点交换功能3. 修改内核参数net.bridge.bridge-n

#k8s#rancher
查看k8s secret/tls证书过期时间

将ca.crt和tls.crt的值分别拷贝到文件中,文件名为ca.crt和tls.crt,然后使用base64解码(ca.crt同)

文章图片
#运维#kubernetes
k8s集群管理工具

rancherhelm repo add rancher-stable http://rancher-mirror.oss-cn-beijing.aliyuncs.com/server-charts/stablekubectl create namespace cattle-systemhelm install rancher rancher-stable/rancher --namespace

#k8s
使用Restful API访问k8s集群

创建命名空间或者使用已有的命令空间kubectl create ns myns创建serviceaccount名称为mysc,命名空间为mynskubectl create serviceaccount mysc -n myns使用RBAC赋权创建Role定义访问资源的权限,rules参考使用 RBAC 鉴权 | KubernetesapiVersion: rbac.authorization.k

#restful#k8s
    共 16 条
  • 1
  • 2
  • 请选择