主页

Book 汉阙

书中的人物 孝武皇帝 刘彻 厉太子(刘据)-巫蛊之祸 刘进 刘病已(刘询) 昌邑王 刘贺 刘弗陵(孝昭) 霍去病 霍光 博望侯-张骞 苏武 坚昆王-李陵 僮仆都尉 傅介子 书中的地名 悬泉置 敦煌,酒泉,玉门关,阳关 白龙堆,千里斩楼兰,轮台,铁门,乌孙,大月氏,小月氏,西羌 思考 自刘邦拜萧何为相,到本书的霍光以大司马...

阅读更多

使用helm Controller 简化容器云平台应用商店的开发

熟练的阅读并且进行相应的开发,大概需要对以下知识的了解: k8s rest api 模型需要了解。 http协议需要熟练掌握。 openapi规范了解。 linux熟练掌握。 helm的理论架构了解。 k8s crd 的理解,controller概念掌握,rbac权限模型的理解。 helm私库index.yaml的理解与使用。 core dns的配置与使用。 整体结构图 helm是啥 helm是k8s的包管理器,也是k8s平台复杂应用部署事实上的标准。包含了应用打包,部署,升级,回滚,卸载等符合生命周期管理的功能。 架构变动 helm从v2到v3的版本升级,移除了重要的一个组件tiller,整体架构更简洁。 helm架构在云管理平台...

阅读更多

[转]nginx重新编译添加ssl模块

找到安装nginx的源码根目录,如果没有的话下载新的源码 http://nginx.org tar xvzf nginx-1.3.2.tar.gz 查看ngixn版本极其编译参数 /usr/local/nginx/sbin/nginx -V 进入nginx源码目录 cd nginx-1.3.2 以下是重新编译的代码和模块 ./configure --prefix=/usr/local/nginx--with-http_stub_status_module --with-http_ssl_module --with-file-aio --with-http_realip_module make 千万别make install,否则就覆盖安装了 make完之后在o...

阅读更多

[转]nginx长连接配置

Nginx 学习笔记 先说结论 server { listen 80; server_name **; client_max_body_size 200M; add_header Strict-Transport-Security "max-age=31536000"; location / { proxy_pass https://192.168.40.180:6443/; // 长连接配置开始 proxy_http_version 1.1; proxy_set_header Connection ""; proxy_buffering off; ...

阅读更多

[转]从外部访问kubernetes中的pod

从外部访问Kubernetes中的Pod 本文主要讲解访问kubenretes中的Pod和Serivce的5种方式,包括如下几种: hostNetwork hostPort NodePort LoadBalancer Ingress 说是暴露Pod其实跟暴露Service是一回事,因为Pod就是Service的backend。 hostNetwork: true 这是一种直接定义Pod网络的方式。 如果在Pod中使用hostNetwork:true配置的话,在这种pod中运行的应用程序可以直接看到pod启动的主机的网络接口。在主机的所有网络接口上都可以访问到该应用程序。以下是使用主机网络的pod的示例定义: apiVersion: v1 kind...

阅读更多

Jenkinsfile+gitstats

使用jenkinsfile搭配gitstats生成代码提交量报表 build image docker pull ubuntu docker run -it ubuntu /bin/bash apt-get update apt install gitstats -y && exit docker commit containerId wang1010q/gitstats docker push wang1010q/gitstats FROM ubuntu RUN apt-get update && apt install gitstats -y Jenkinsfile pipeline { agent { dock...

阅读更多

使用jenkins完成node项目自动化部署

pipeline{ agent any options { // 禁止同一个pipeline 并行执行 disableConcurrentBuilds() // 保存最近历史构建记录的数量 buildDiscarder(logRotator(numToKeepStr:'50')) } environment{ //后面使用commit id 打docker tag GIT_COMMIT_ID_SHORT = sh (script: "git rev-parse --short HEAD", returnStdout: true); } trig...

阅读更多

Sonar Project.properties

# an sonar-project.properties example file sonar.projectKey=org.apache.thrift sonar.projectName=Apache Thrift sonar.projectDescription= The Apache Thrift software framework, for scalable cross-language services development, combines a software stack with a code generation engine to build services that work efficiently and seamlessly between all ...

阅读更多