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

110. Rancher Prime 注册升级因 SCC 注册命名空间所有权冲突而失败

Environment 环境

Rancher v2.12.x and above
Rancher v2.12.x 及以上版本

Situation 地理位置

When performing a Helm upgrade of Rancher along with SCC registration arguments as specified in the doc, the operation may fail with the following error:
当按照文档规定对 Rancher 进行 Helm 升级并使用 SCC 注册参数时,操作可能会因以下错误而失败:

<span style="color:#000000"><span style="background-color:#ffffff"><span style="background-color:#efefef"><code>Error: UPGRADE FAILED: Unable to continue with update: Namespace "cattle-scc-system" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: key "<a>
Resolution 结局

Prerequisites: 先修条件:

Please make sure you have cluster-admin privileges and kubectl access to the cluster.
请确保你拥有集群管理员权限和 kubectl 访问集群权限。

1 ) Patch the Namespace Metadata by running the commands below:
1)通过运行以下命令修补命名空间元数据:

<span style="color:#000000"><span style="background-color:#ffffff"><span style="background-color:#efefef"><code>kubectl label namespace cattle-scc-system <a>2) Verify the labels and annotations are applied correctly
2)确认标签和注释是否正确应用

<span style="color:#000000"><span style="background-color:#ffffff"><span style="background-color:#efefef"><code>kubectl get namespace cattle-scc-system -o yaml</code></span></span></span>

3) Re-run the Helm upgrade of the Rancher command.
3)重新运行 Rancher 指挥部的 Helm 升级。

Cause 病因

The namespacecattle-scc-systemwas created/managed outside of Helm (by Rancher directly).
牛群-scc-命名空间是由 Rancher 直接在 Helm 之外创建和管理的。

Helm requires resources it manages to have specific labels and annotations to track ownership.
Helm 需要资源,它设法拥有特定的标签和注释来跟踪所有权。

Current metadata shows: 当前元数据显示:

app.kubernetes.io/managed-by=rancher(expected:Helm)
app.kubernetes.io/managed-by=rancher(预期:舵手

Missing annotations: 缺少注释:

meta.helm.sh/release-name

meta.helm.sh/release-namespace

Because of this mismatch, Helm refuses to adopt the namespace.
由于这种不匹配,Helm 拒绝采用该命名空间。

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

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

相关文章:

  • Vue2项目实战:v-md-editor从安装到二次封装全流程(附常见问题解决)
  • CF1205C Palindromic Paths
  • 3分钟终极指南:如何用Fast-GitHub插件彻底解决GitHub访问缓慢问题
  • 从星链到遥感卫星:工程师视角下的轨道摄动实战避坑指南
  • 破坏性测试实战指南:从理论到实践的完整流程解析
  • SEO_2024年最新SEO实战策略,助你获取精准流量
  • 破解专精特新小巨人申报难题:DPMR四阶申报法如何提升通过率? - 速递信息
  • 五加同创:钢制平开门/防弹门窗/防爆墙/防爆窗/防爆门/防辐射门/随道防护门/隔声门/隔音门/医疗门/密闭窗/密闭门/选择指南 - 优质品牌商家
  • 111. Azure AD 客户端秘密到期导致 Rancher 登录失败
  • GitHub中文界面插件实战:深度解析智能翻译引擎与进阶定制方案
  • ESP32-S3 驱动 OV2640 摄像头:从嘉立创例程到AP模式无线图传
  • 同学花200降AI我花50就搞定了差在哪
  • csp预习day1
  • 离散系统稳定性分析的实用方法与工程应用
  • 112. Rancher v2.x Windows 日志收集脚本
  • 本土化突围:Gitee如何重新定义企业级项目管理工具价值
  • 3个维度解锁SillyTavern:打造专属AI对话体验的全攻略
  • HarmonyOS 5.0实战:基于Promise与拦截器构建企业级网络请求库
  • PX4开发环境一站式配置:源码、QGroundControl、MAVROS与ROS Melodic联调全记录
  • 用“目标→策略→动作→标准”四步法,把挂在墙上的目标,变成落在地上的结果
  • ESP32远程OTA升级踩坑实录:HTTPS证书处理、固件链接失效与阿里云配置的那些‘坑’(附避坑代码)
  • 115. OOM(内存不足),高内存消耗,基本故障排除步骤
  • 5大核心功能解析:GHelper轻量替代方案如何优化华硕笔记本性能
  • Mac上IntelliJ IDEA 2024.1.1启动报错?手把手教你删除-javaagent修复(附详细路径)
  • 知网AIGC检测算法2026年更新了什么这样降AI才有效
  • 收藏备用!小白程序员必看:从基础到进阶,彻底吃透Prompt与提示工程
  • Debian 12.0 + Nginx + Let’s Encrypt:5分钟搞定HTTPS配置(含自动续期)
  • 给技术人的另类书单:从《纳瓦尔宝典》的‘代码杠杆’谈到工程师的财富与幸福实践
  • 全球与中国边缘保护系统市场现状洞察与未来走向研判
  • 46397