摘要: 阅读全文
posted @ 2020-03-15 08:55 jayce9102 阅读(118) 评论(0) 推荐(0) 编辑
摘要: service/networking/hostaliases-pod.yaml apiVersion: v1 kind: Pod metadata: name: hostaliases-pod spec: restartPolicy: Never hostAliases: - ip: "127.0. 阅读全文
posted @ 2020-03-11 10:28 jayce9102 阅读(92) 评论(0) 推荐(0) 编辑
摘要: node('haimaxy-jnlp') { stage('Clone') { echo "1.Clone Stage" git url: "https://github.com/cnych/jenkins-demo.git" script { build_tag = sh(returnStdout 阅读全文
posted @ 2020-03-09 21:39 jayce9102 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 一、helm命令 helm search #关键字搜索charts helm pull #压缩下载chart到本地,可以使用--untar下载解压) helm install #部署chart到kubernetes helm list #查看已部署的charts(注意--namespace或-n) 阅读全文
posted @ 2020-02-27 22:04 jayce9102 阅读(5163) 评论(0) 推荐(0) 编辑
摘要: 一、现象 使用yum makecache命令时报错 [root@MiWiFi-R3L-srv ~]# yum makecache Loaded plugins: fastestmirror Repository base is listed more than once in the configu 阅读全文
posted @ 2020-02-18 18:52 jayce9102 阅读(1218) 评论(0) 推荐(0) 编辑
摘要: 1、查看命令 kubectl get pod/deployment/service/namespace #资源类查看 kubectl get pod -o wide #资源类详细查看 kubectl describe pod pod_name #单一详细查看(最详尽) 2、常用命令 kubectl  阅读全文
posted @ 2020-02-17 21:05 jayce9102 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 一、集群命令 1、显示版本信息 kubectl version 2、显示集群访问接口 kubectl cluster-info 3、获取当前系统的API Server相关信息 kubectl api-versions 4、访问kubernetes REST API(基于本地代理) kubectl p 阅读全文
posted @ 2020-02-17 21:02 jayce9102 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 一、Fluentd简介 Fluentd是一个完全免费且完全开源的日志收集器 Fluentd将日志视为JSON 二、Fluentd特性 使用JSON统一日志结构:使用JSON后,下游的数据处理起来相当的容易,因为JSON结构在保留了灵活的模式的同时,可以被无障碍的使用 可插拔的架构 最低的资源需求:F 阅读全文
posted @ 2020-02-17 16:39 jayce9102 阅读(3079) 评论(0) 推荐(0) 编辑
摘要: 一、方案的目的 方案用于解决什么问题(问题是否真的存在?) 问题的根本原因是什么?(问题是否可以消灭?) 解决问题的价值(ls是没必要用一个脚本去运行的) 二、方案制定的原则 深入了解方案的核心内容:我要做什么,用于解决什么问题 进行资料收集,参考类似方案 至少制定2组解决方案(用于对比) 分析各方 阅读全文
posted @ 2020-02-13 11:17 jayce9102 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 一、node节点维护流程 对k8s集群资源进行梳理,先确认集群资源是否允许进行该操作 若集群资源不足,可加入新的node节点之后再进行维护操作 确认无资源问题后进行pod驱逐:kubelet drain <node_name>( 检查对应节点状态是否处于SchedulingDisabled 检查no 阅读全文
posted @ 2020-02-12 11:09 jayce9102 阅读(2872) 评论(0) 推荐(0) 编辑