.video-container {
position: relative;
width: 100%;
padding-top: 56.25%; /* 16:9 aspect ratio (height/width = 9/16 * 100%) */
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
Istio流量治理实践1.Bookinfo项目介绍项目介绍:https://istio.io/latest/docs/examples/bookinfo/
后面所有练习都基于该项目:
2.部署Bookinfo项目首先在 Kubernetes 集群中,部署 Bookinfo 项目。
Istio 提供了用于测试功能的应用程序 Bookinfo,可以直接通过下述命令创建 Bookinfo:
12345678910#创建该项目的命名空间bookinfo[root@k8s-master0 ...
.video-container {
position: relative;
width: 100%;
padding-top: 56.25%; /* 16:9 aspect ratio (height/width = 9/16 * 100%) */
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
Istio服务网格安装部署1.使用 Istioctl 安装Istio1.1、Istio版本选择版本选择参考:https://istio.io/latest/docs/releases/supported-releases/#support-status-of-istio%02releases
要根据自己k8s集群的版本选择合适的Istio版本:
123456789[root@k8s-master01 ~]# kubectl get nodesNAME STATU ...
.video-container {
position: relative;
width: 100%;
padding-top: 56.25%; /* 16:9 aspect ratio (height/width = 9/16 * 100%) */
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
Istio介绍Istio是一个开源的服务网格(Service Mesh)产品,专为微服务架构设计,用于透明地管理服务间的通信、安全、监控和流量策略。Istio通过Sidecar拦截并控制服务间的所有流量,将复杂的微服务治理(如流量管理、安全策略)从业务代码中剥离,并下沉到基础设施层,使开发者更专注于业务逻辑,以提升开发效率。
Istio几乎无需更改任何代码就可以实现如下功能:
双向TLS加密
HTTP、gRPC、WebSocket和TCP流量的自动负载均衡
错误重试、故障转移和故障 ...
一、环境说明1.1基本环境配置该环境使用的是vmware虚拟的六台服务器,使用二进制的方式安装部署可用于生产环境的k8s集群!具体信息规划如下:
主机名
ip地址
说明
k8s-master01
192.168.0.81
主节点
k8s-master02
192.168.0.82
主节点
k8s-master03
192.168.0.83
主节点
k8s-node01
192.168.0.84
从节点
k8s-node02
192.168.0.85
从节点
k8s-node03
192.168.0.86
从节点
keepalived虚拟ip
192.168.0.236
keepalived虚拟ip(不占用机器)
配置信息
备注
系统版本
Rocky Linux 9.5
Containerd
latest
Pod网段
172.16.0.0/16
Service网段
10.96.0.0/16
如果需要修改这些网段,统一替换。Pod网段、Service网段以及宿主机网段不能重复,不能重复!!!
VIP(虚 ...
.video-container {
position: relative;
width: 100%;
padding-top: 56.25%; /* 16:9 aspect ratio (height/width = 9/16 * 100%) */
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
k8s弹性能力-基于KEDA的下一代弹性伸缩1.k8s原生弹性伸缩—HPA1.1HPA介绍在 Kubernetes(K8s)中,HPA 代表 Horizontal Pod Autoscaler(水平 Pod 自动扩缩容)。
它的主要作用是根据实际的资源利用率或自定义指标,自动增减工作负载中 Pod 的副本数量(Replicas)。例如,当系统流量激增导致 CPU 占用率超过预设阈值时,HPA 会自动增加 Pod 数量来分摊负载;当负载下降时,它会自动缩减 Pod 数量以节约资源 📈 ...
.video-container {
position: relative;
width: 100%;
padding-top: 56.25%; /* 16:9 aspect ratio (height/width = 9/16 * 100%) */
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
EB级分布式高可用存储平台落地1.分布式存储介绍1.1单节点或NFS存储存在的问题常见的存储设计如下:
1.2分布式存储的主要特性与优势支持近乎无限的扩容支持容错能力和数据冗余支持多机房多区域部署支持负载均衡和并行处理支持权限管理和多用户支持多种文件存储类型支持普通硬件设计
1.3分布式存储平台对比
特性/项目
Ceph
CubeFS
设计目标
统一存储解决方案,支持对象、块和文件存储
专注于文件存储和对象存储,适用云原生和大数据场景
存储类型
对象存储、块存 ...
.video-container {
position: relative;
width: 100%;
padding-top: 56.25%; /* 16:9 aspect ratio (height/width = 9/16 * 100%) */
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
配置管理-ConfigaMap和Secret
认识ConfigMap和Secret
创建ConfigMap和Secret的方式
以配置文件形式挂载ConfigMap和Secret
以环境变量形式挂载ConfigMap和Secret
更改挂载文件的名称和权
限解决挂载覆盖目录的问题
Secret管理域名证书
Secret管理镜像仓库密钥
Secret和ConfigMap配置只读
Secret和ConfigMap备份还原
Secret和ConfigMap使用注意事项 ...
Ingress
未读
.video-container {
position: relative;
width: 100%;
padding-top: 56.25%; /* 16:9 aspect ratio (height/width = 9/16 * 100%) */
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
一、什么是Ingress在 Kubernetes(K8s)环境中,Ingress 是一种 API 对象,用于管理集群内部服务(通常是 HTTP 服务)的外部访问,它提供了一种灵活的方式来定义和管理基于 HTTP/HTTPS 的路由规则,允许外部流量通过配置的规则访问 Kubernetes 集群中的服务。为集群中的服务提供了一个统一的入口,可以提供负载均衡、SSL终止和基于名称(域名)的虚拟主机,应用的灰度发布等功能。
Ingress 本身不直接处理流量,而是依赖于 In ...
.video-container {
position: relative;
width: 100%;
padding-top: 56.25%; /* 16:9 aspect ratio (height/width = 9/16 * 100%) */
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
k8s-容忍Toleration和污点Taint1.容忍和污点概念在 Kubernetes 中,污点(Taints) 和 容忍(Tolerations) 是一对协同工作的机制,用于控制哪些 Pod 可以被调度到特定的 Node(节点)上。
核心概念
污点(Taint):附加在 Node 上的属性。它就像给节点打上了「排斥标记」,默认情况下会拒绝所有不能容忍该污点的 Pod 被调度上来。
容忍(Toleration):配置在 Pod 规范(spec.tolerations)中的规则。 ...

















