k8s部署OpenELB

k8s部署OpenELB

k8s部署OpenELB

部署OpenELB至K8s集群

yaml 复制代码
# k8s部署OpenELB
kubectl apply -f https://raw.githubusercontent.com/openelb/openelb/refs/heads/master/deploy/openelb.yaml

# 查看openelb的pod状态
kubectl get pods -n openelb-system

配置示例: layer2模式

下面的示例创建了一个EIP资源对象, 它提供了一个IP地址池LoadBlancer Service使用.

yaml 复制代码
apiVersion: network.kubesphere.io/v1alpha2 # 定义资源的 API 版本
kind: Eip # 定义资源的类型为 Eip
metadata: # 元数据部分
  name: eip-pool # 资源的名称为 eip-pool
  annotations: # 注解部分
    eip.openelb.kubesphere.io/is-default-eip: "true" # 标记该 EIP 为默认的 EIP
spec: # 资源的具体配置
  address: 172.29.7.51-172.29.7.80 # 可用的 EIP 地址范围
  # 使用的二层网络协议
  protocol: layer2 # OpenELB 模式,支持 BGP、layer2、VIP 三种模式,此处为 layer2
  interface: enp1s0 # 监听 ARP 或 NDP 请求时使用的网卡名称,仅在 layer2 模式下有效
  disable: false # 是否禁用该 EIP,false 表示未禁用

查看

shell 复制代码
# 查看名为 eip-tool 的 Eip 资源对象的详细信息
kubectl get eip eip-tool
相关推荐
玉&心14 分钟前
在Docker中部署前端和后端的实现
运维·docker·容器
wdfk_prog34 分钟前
Docker 常用语法与命令:CLI、Dockerfile 与 Compose 速查
运维·docker·容器
无敌糖果1 小时前
K8S network namespace错误分析
docker·容器·kubernetes
郝开1 小时前
Docker Compose 模块化多环境配置规范指南:示例搭建Kibana 9.4.2
docker·容器·kibana
运维老郭1 小时前
Prometheus 监控 K8s 从入门到入坑:工作原理 + 部署实操 + 避坑指南
云原生·容器·kubernetes
AAA@峥1 小时前
从零搭建 Prometheus 完整监控告警体系|Linux 部署 + node_exporter+Grafana 可视化
云原生·grafana·prometheus
虎王物联2 小时前
Docker BuildKit多阶段构建:IoT固件交叉编译流水线实战
运维·物联网·ci/cd·docker·容器·物联网嵌入式
10mAh3 小时前
【Docker】磁盘空间被占满怎么清理?——overlay2、容器日志与 Build Cache 排查实战
docker·容器·eureka
xhaxy3 小时前
docker,k8s安装,k8s集群搭建(OS7)
docker·容器·kubernetes
SelectDB技术团队4 小时前
Apache Doris 多云原生实践:SaaS、BYOC 与四大公有云覆盖
数据库·阿里云·云原生·华为云·腾讯云·亚马逊云·写入更新