摘要: 1. 当前环境 kubernetes v1.17 dashboard v2.0.0-rc5 2. 部署dashboard kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-rc5/aio/de 阅读全文
posted @ 2020-02-09 17:27 whyfate 阅读(685) 评论(0) 推荐(0) 编辑
摘要: 1. 当前环境 要实现hpa,metrics server 需要部署到集群中, 它可以通过 resource metrics API 对外提供度量数据,Horizontal Pod Autoscaler 正是根据此 API 来获取度量数据。 2. 部署metrics server k8s部署参考网站 阅读全文
posted @ 2020-02-08 23:07 whyfate 阅读(1000) 评论(0) 推荐(0) 编辑
摘要: 1. 部署alertmanager 镜像 prom/alertmanager 配置文件在 /etc/alertmanager/alertmanager.yml alertmanager.yml: | global: resolve_timeout: 5m route: group_by: ['ale 阅读全文
posted @ 2020-02-03 17:03 whyfate 阅读(1355) 评论(0) 推荐(0) 编辑
摘要: 1. 部署node-exporter apiVersion: apps/v1 kind: DaemonSet metadata: name: node-exporter-deploy spec: selector: matchLabels: app: node-exporter template: 阅读全文
posted @ 2020-01-31 16:50 whyfate 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 1. 部署elasticsearch + kibana 2. 部署fluentd 参考网站:https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/fluentd elasticsearch 修改 fluentd es 阅读全文
posted @ 2020-01-28 22:15 whyfate 阅读(852) 评论(0) 推荐(0) 编辑
摘要: 官方链接:https://kubernetes.io/zh/docs/tasks/inject data application/environment variable expose pod information/ 阅读全文
posted @ 2020-01-25 22:02 whyfate 阅读(9168) 评论(0) 推荐(1) 编辑
摘要: 1. nexus3是什么? nexus3是一个统一的仓库系统,可以作为nuget、docker、maven、npm等的仓库,可以使用一个平台管理。 2. 部署 3.配置 docker仓库设置 8082 的代理端口 配置访问权限,Security Realms 把 Docker Bearer Toke 阅读全文
posted @ 2020-01-24 22:01 whyfate 阅读(1356) 评论(0) 推荐(1) 编辑
摘要: 1. k8s PV 与 PVC PV 是已经由管理员提供或者动态使用供应的集群中的一块存储的存储类。它是集群中的资源,就像节点是集群资源一样。PV是类似于Volumes的卷插件,但是其生命周期独立于使用PV的任何单个Pod。此API对象捕获NFS,iSCSI或特定于云提供商的存储系统的存储实现的详细 阅读全文
posted @ 2020-01-24 21:34 whyfate 阅读(1527) 评论(0) 推荐(0) 编辑
摘要: 1. 创建访问Secret 2. 拉取镜像的配置 参考链接:https://kubernetes.io/zh/docs/concepts/containers/images/ 阅读全文
posted @ 2020-01-24 20:39 whyfate 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 1. PodPreset 的作用 将一些公用的参数设置到pod中去,例如 时区统一设置为东八区等 2. API Server 开启PodPreset 编辑文件 /etc/kubernetes/manifests/kube apiserver.yaml,添加配置 runtime config=sett 阅读全文
posted @ 2020-01-22 16:05 whyfate 阅读(1207) 评论(0) 推荐(0) 编辑