文章分类 -  Kubernetes

摘要:1.编译安装luajit: wget https://github.com/openresty/luajit2/archive/refs/tags/v2.1-20220411.tar.gz mv v2.1-20220411.tar.gz luajit2-v2.1-20220411.tar.gz ta 阅读全文
posted @ 2023-04-19 14:00 しみずよしだ 阅读(321) 评论(0) 推荐(0)
摘要:二进制部署 安装ES 使用之前 Elasticsearch环境 # 设置内存大小 [root@xianchaonode2 elasticsearch]# cat /usr/local/elasticsearch/config/jvm.options -Xms2g -Xmx2g #启动ES [elas 阅读全文
posted @ 2023-04-19 00:43 しみずよしだ 阅读(348) 评论(0) 推荐(0)
摘要:helm 把 kubernetes 资源打包到一个 chart 中,制作并完成各个 chart 和 chart 本身依赖关系并利用chart 仓库实现对外分发,而 helm 还可通过 values.yaml 文件完成可配置的发布,如果 chart 版本更新了,helm 自动支持滚更更新机制,还可以一 阅读全文
posted @ 2023-04-12 22:27 しみずよしだ 阅读(72) 评论(0) 推荐(0)
摘要:[root@xianchaomaster1 ~]# mkdir Rancher [root@xianchaomaster1 ~]# cd Rancher/ You have new mail in /var/spool/mail/root [root@xianchaomaster1 Rancher] 阅读全文
posted @ 2023-04-10 20:21 しみずよしだ 阅读(95) 评论(0) 推荐(0)
摘要:1.1 Ingress 和 Ingress Controller 深度解读 互动:为什么要使用 k8s 原生的 Ingress controller 做七层负载均衡? 1.1.1 Ingress 介绍 Ingress 官网定义:Ingress 可以把进入到集群内部的请求转发到集群中的一些服务上,从而 阅读全文
posted @ 2023-04-09 20:31 しみずよしだ 阅读(437) 评论(0) 推荐(1)
摘要:NetworkPolicy Ingress及Egress简介及案例 kubectl create ns linux kubectl create ns python kubectl label ns linux nsname=linux kubectl label ns python nsname= 阅读全文
posted @ 2023-04-09 20:30 しみずよしだ 阅读(371) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-04-09 20:29 しみずよしだ 阅读(16) 评论(0) 推荐(0)
摘要:网络通信-总结Overlay: 基于VXLAN、NVGRE等封装技术实现overlay叠加网络Macvlan: 基于Docker宿主机物理网卡的不同子接口实现多个虚拟van,一个子接口就是一个虚拟vlan,容器通过宿主机的路由功能和外网保持通信 阅读全文
posted @ 2023-04-09 20:29 しみずよしだ 阅读(198) 评论(0) 推荐(0)
摘要:日志收集案例三:容器内置日志手机服务器进程 结合 日志收集之前Kafka - zookeeper - logstash - ES - Kibana 一、镜像制作 #可以直接使用已经制做好的镜像 registry.cn-hangzhou.aliyuncs.com/birkhoff/tomcat-app 阅读全文
posted @ 2023-04-09 20:28 しみずよしだ 阅读(42) 评论(0) 推荐(0)
摘要:日志案例二、sidecar模式构架 一、制作logstash-sidecar镜像 #logstash-image-Dockerfile 每个node中添加logstash [root@xianchaomaster1 1.logstash-image-Dockerfile]# ll total 972 阅读全文
posted @ 2023-04-07 07:19 しみずよしだ 阅读(287) 评论(0) 推荐(0)
摘要:[root@xianchaomaster1 magedu-limit-case]# cat case2-pod-memory-and-cpu-limit.yml #apiVersion: extensions/v1beta1 apiVersion: apps/v1 kind: Deployment 阅读全文
posted @ 2023-04-06 19:27 しみずよしだ 阅读(35) 评论(0) 推荐(0)
摘要:日志收集的目的 分布式日志数据统一收集,实现集中式查询和管理 故障排查 安全信息和事件管理 报表统计及展示功能 日志收集的价值 日志查询 问题排查 故障恢复 故障自愈 应用日志分析、错误报警 性能分析、用户行为分析 日志收集流程 日志案例之一:Daemonset收集日志架构 实验端口总结 名称 开放 阅读全文
posted @ 2023-04-03 17:45 しみずよしだ 阅读(282) 评论(0) 推荐(0)
摘要:自定义Zookeeper镜像 [root@xianchaomaster1 zookeeper]# ll total 36884 drwxr-xr-x. 2 root root 24 Aug 9 2022 bin -rwxr-xr-x 1 root root 265 Apr 1 19:22 build 阅读全文
posted @ 2023-04-01 20:32 しみずよしだ 阅读(41) 评论(0) 推荐(1)
摘要:配置文件 ctr images pull registry.cn-hangzhou.aliyuncs.com/zhangshijie/cadvisor-amd64:v0.39.3 [root@xksmaster1 case]# cat case1-daemonset-deploy-cadvisor. 阅读全文
posted @ 2023-03-31 14:29 しみずよしだ 阅读(55) 评论(1) 推荐(0)
摘要:Node-exporter 安装脚本 [root@xksnode1 prometheus]# cat node-exporter-1.3.1-onekey-install.sh #!/bin/bash PKG="node_exporter-1.3.1.linux-amd64.tar.gz" S_DI 阅读全文
posted @ 2023-03-31 10:08 しみずよしだ 阅读(66) 评论(0) 推荐(0)
摘要:#PromQL 查询数据类型 瞬时向量、瞬时数据 范围向量、范围数据 标量、纯量数据 字符串 #指标数据类型 counter gauge histogram summary #PromQL聚合运算 max():最大值 min():最小值 avg():平均值 sum():求数据值相加的和 count( 阅读全文
posted @ 2023-03-31 10:00 しみずよしだ 阅读(36) 评论(0) 推荐(0)
摘要:1.kubernetes 部署prometheus以及二进制部署的prometheus实现服务发现 https://www.cnblogs.com/birkhoffxia/articles/17275357.html 2.prometheus 基于consul、file、dns实现服务发现、 cAd 阅读全文
posted @ 2023-03-29 13:37 しみずよしだ 阅读(14) 评论(0) 推荐(0)
摘要:k8s容器管理工具,https://github.com/astefanutti/kubebox * ✓ Namespace selection and pods list watching * ✓ Container log scrolling / watching * ✓ Container r 阅读全文
posted @ 2023-03-29 09:43 しみずよしだ 阅读(9) 评论(0) 推荐(0)
摘要:[root@xksmaster1 RBAC-yaml-case]# vim xks-role.yaml kind: Role apiVersion: rbac.authorization.k8s.io/v1 metadata: namespace: xks name: xks-role rules: 阅读全文
posted @ 2023-03-29 09:31 しみずよしだ 阅读(10) 评论(0) 推荐(0)
摘要:配置wordpress-nginx:v1 [root@xianchaomaster1 nginx]# ll total 20 -rwxr-xr-x. 1 root root 310 Mar 28 23:48 build-command.sh -rw-r--r--. 1 root root 361 M 阅读全文
posted @ 2023-03-29 00:42 しみずよしだ 阅读(14) 评论(0) 推荐(0)