当前k8s版本:1.17,在使用cronjob的时候发现调度的时间不对,配置的是0 0 * * *,但实际运行时间为早上8点,推测是时区问题没跑了~
[阅读全文]
fluentd
综合需要考虑的问题 最好只处理指定namespace的日志 非标准日志的处理(SQL和Gin的日志),考虑忽略非标准日志 加入k8s metadata 按名称空间加
[阅读全文]
sonarqube+gitlab
目标 安装SonarQube,在gitlab-runner上运行SonarScanner,SonarQube与Gitlab的账户打通 安装Son
[阅读全文]
goland私有仓库
https://golang.org/cmd/go/#hdr-Modules__module_versions__and_more https://golang.org/ref/mod#private-modules https://golang.org/ref/mod#vcs-find https://golang.org/doc/tutorial/create-module https://sagikazarmark.hu/blog/vanity-import-paths-in-go/ https://medium.com/@dayakar88/a-guide-to-solve-no-go-import-meta-tags-for-private-repositories-with-go-modules-6b9237f9c9f 为了gitlab-ci在构建时拉取私有仓库依赖,构建工作使用的docker容器的dockerfile需要加上: RUN git config –global url.“git@192.168.1.10:".insteadOf “https://192.168.1.10/” COPY gitlab-ci /root/.ssh/id_rsa
[阅读全文]
go plugin从入门到放弃
最开始看到go plugin很兴奋,太实用了。正好手上项目也能用得上,所以花了几天心思去研究一下,所以就有了这篇文章的心德:go plugin从
[阅读全文]
go learning
数据类型 int/uint类型位数不是固定的,根据运行平台可能是32位或64位 获取Int类型位数:strconv.IntSize Go不允许隐式
[阅读全文]
brew 切换源
切换到国内源 1 2 3 4 5 6 7 8 9 10 # 替换brew.git cd "$(brew --repo)" git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git # 替换homebrew-core.git cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git # 刷新 brew update 切换
[阅读全文]
go开发windows应用添加图标
开源工具源码地址:github.com/akavel/rsrc 下载rsrc工具 创建一个manifest文件 1 2 3 4 5 6 7 8 9 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity
[阅读全文]
使用gitlab + gitlab runner + nexus + k8s技术栈搭建devops全流程
版本清单 gitlab:12.8.1-ce.0 gitlab runner:v12.9.0 nexus:3.21.1 k8s:1.17.4 istio:1.5.1
[阅读全文]
mysql federated引擎使用
跨服务器操作mysql数据库的需求,mysql提供了federated引擎,进行表映射,然后进行操作 步骤: 确认federated引擎是否启用
[阅读全文]