当前位置: 首页 > news >正文

76. 如何在 RKE CLI 和 Rancher v2.x 配置的 RKE Kubernetes 集群中启用 ingress-nginx 的遗留 TLS 版本

Environment 环境

An RKE Kubernetes cluster provisioned by the Rancher Kubernetes Engine (RKE) CLI or Rancher v2.x
由 Rancher Kubernetes Engine (RKE) CLI 或 Rancher v2.x 配置的 RKE Kubernetes 集群

Situation 地理位置
This article details how to enable TLS 1.1 on the ingress-nginx controller in Rancher Kubernetes Engine (RKE) CLI or Rancher v2.x provisioned RKE Kubernetes clusters.
本文详细介绍了如何在 Rancher Kubernetes Engine(RKE)CLI 或 Rancher v2.x 配置 RKE 集群中的 ingress-nginx 控制器上启用 TLS 1.1。
Pre-requisites: 先修条件:
  • For RKE CLI provisioned clusters, you will require the RKE binary and access to the cluster configuration YAML, rkestate file and kubectl access with the kubeconfig for the cluster sourced
    对于 RKE CLI 配置集群,你需要 RKE 二进制文件,并访问集群配置 YAML、rkestate 文件和 kubectl 访问,使用 kubeconfig 访问集群的来源
  • For Rancher v2.x provisioned RKE clusters, you will require cluster owner or global admin permissions in Rancher
    对于 Rancher v2.x 配置的 RKE 集群,你需要在 Rancher 中获得集群所有者或全局管理员权限
Resolution 结局

Configuration for RKE CLI provisioned clusters
RKE CLI 配置集群配置

  1. Edit the cluster configuration YAML file to include thessl-protocolsoption for the ingress, as follows:
    编辑集群配置的 YAML 文件,加入入口的ssl 协议选项,具体如下:

    ingress: provider: nginx options: ssl-protocols: "TLSv1.1 TLSv1.2"
  2. Apply the changes to the cluster, by invokingrke up:
    通过调用rke up,将这些更改应用到集群上:

    rke up --config <cluster configuration yaml file>
  3. Verify the new configuration:
    验证新配置:

    for pod in $(kubectl get pods -l app=ingress-nginx -n ingress-nginx --no-headers -o name | awk -F '/' '{print $2}'); do echo -n "Checking $pod .... "; kubectl -n ingress-nginx exec "$pod" -- bash -c "cat /etc/nginx/nginx.conf | grep ssl_protocols | grep '1.1' > /dev/null 2>&1 && echo 'Good' || echo 'Bad'"; done

Configuration for Rancher-provisioned RKE clusters
Rancher 配置的 RKE 集群配置

  1. Login into the Rancher UI
    登录牧场主界面

  2. Go toCluster Management
    前往集群管理
  3. ClickEdit Configfor the relevant Rancher-provisioned RKE cluster
    点击编辑配置以查看相关的 Rancher 配置 RKE 集群
  4. ClickEdit as YAML
    点击编辑为 YAML 代码
  5. Include thessl-protocolsoption for the ingress, as follows:
    为入口包含SSL 协议选项,具体如下:

    ingress: provider: nginx options: ssl-protocols: "TLSv1.1 TLSv1.2"
  6. ClickSaveat the bottom of the page
    点击页面底部的保存

  7. Wait for cluster to finish upgrading
    等集群升级完成
  8. Explore the cluster and launch a kubectl shell
    探索星团并发射库贝克特尔炮弹
  9. Run the following inside the kubectl shell to verify the new argument:
    在 kubectl shell 内运行以下操作以验证新参数:
    for pod in $(kubectl get pods -l app=ingress-nginx -n ingress-nginx --no-headers -o name | awk -F '/'

访问Rancher-K8S解决方案博主,企业合作伙伴 :
https://blog.csdn.net/lidw2009

http://www.jsqmd.com/news/531839/

相关文章:

  • 毕设程序java基于区块链的脐橙溯源系统 基于分布式账本技术的赣南脐橙全生命周期追溯平台 基于智能合约的柑橘类农产品可信溯源管理系统
  • 保姆级教程:用Docker Compose一键部署LibreSpeed测速服务(附环境变量详解)
  • Camunda开源协议可否商用
  • PMIC:现代电子设备的能源大脑与智能调度中心
  • SpringBoot与SpringCloud版本搭配避坑指南:从1.x到2.x的实战经验分享
  • 如何用HiFi-GAN在CPU上实现13倍速的语音合成?实战教程来了
  • SEO_解决网站收录问题的SEO诊断与解决办法
  • Axure RP中文界面配置指南:本地化改造提升原型设计效率
  • Comsol多孔疏锂模型:实现锂的均匀沉积与电池性能的优化
  • Enterprise Architect 12实战:如何将已有C++源码快速转换为UML类图
  • 2026年婴幼儿润肤乳产品推荐:秋冬季节宝宝干痒泛红舒缓高性价比产品分析 - 品牌推荐
  • 2026四川旧楼加装电梯高性价比服务商推荐榜:别墅电梯10大品牌/别墅电梯三层大概多少钱/别墅电梯厂家价格/别墅电梯厂家哪家好/选择指南 - 优质品牌商家
  • RAG技术的认知重构:当检索增强遭遇产业落地的冰火两重天
  • Claude vs Gemini 技术拆解对比:2026年两大顶级模型镜像站如何选?
  • Word文档插入代码总乱格式?手把手教你用Code2Word实现完美排版(含常见问题解决方案)
  • VideoAgentTrek Screen Filter在运维监控中的应用:自动过滤服务器仪表盘敏感信息
  • Qwen3.5-35B-A3B-AWQ-4bit图文问答入门必看:上传→提问→多轮对话完整操作流程
  • 2026年婴幼儿润肤乳产品推荐:新生儿日常护理防干痒口碑品牌及成分安全分析 - 品牌推荐
  • 车载毫米波雷达DDMA-MIMO系统优化:Empty-band算法与相位补偿法在发射通道解调及速度解模糊中的协同应用与性能验证
  • RWKV7-1.5B-g1a快速上手:5分钟完成首次prompt交互与结果验证
  • Xinference-v1.17.1数学建模竞赛:优化算法实战案例解析
  • GitHub MCP Server完整指南:AI助手与GitHub的无缝连接
  • 3D高斯光栅化技术:Blender插件的创新应用与实践指南
  • Wan2.2-I2V-A14B开发者案例:封装私有API服务并接入内部内容管理系统
  • 别再全局关Cache了!ZYNQ PS端DDR访问性能优化:细说Cache Flush与Invalidate的正确姿势
  • 77. Rancher 2.11 到 2.12 升级清单——修复审计日志、集群和界面缓存
  • 如何高效实现PDF到Markdown转换:PDF-To-Markdown Converter深度解析
  • Z-Image-Turbo应用指南:电商海报、社交配图一键生成
  • axios二次封装
  • Mermaid:用文本构建专业图表的开源工具解决方案