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

92. Kubewarden 证书轮换在 ArgoCD 上的问题

Environment 环境

Rancher, ArgoCD 牧场主,ArgoCD
Kubewarden-controller v3.1.0

Situation 地理位置

After upgrading Kubewarden and running it on an RKE2 cluster managed by ArgoCD, the TLS certificate rotates, leading to 'unknown issuer' errors.
升级 Kubewarden 并在 ArgoCD 管理的 RKE2 集群上运行后,TLS 证书会轮换,导致“未知发行者”错误。

At a certain point, ArgoCD detected a change and triggered a controller sync, resulting in the rotation of the secret certificate
在某个时刻,ArgoCD 检测到变化并触发控制器同步,导致密钥证书的轮换

<span style="color:#000000"><span style="background-color:#ffffff"><span style="background-color:#efefef"><code>{"level":"info","ts":"2025-01-17T08:41:25Z","logger":"controller-runtime.certwatcher","msg":"Updated current TLS certificate"} </code></span></span></span>

The kubewarden policy-server doesn't always recognize the certificate rotation, causing discrepancies between the certificate presented by the policy server and the one in the secret.
Kubewarden 策略服务器并不总是识别证书轮换,导致策略服务器呈现的证书与秘密文件中的证书之间存在差异。

<span style="color:#000000"><span style="background-color:#ffffff"><span style="background-color:#efefef"><code>Post "<a>
Resolution 结局

Modify the ArgoCD Application to includeignoreDifferencesto prevent ArgoCD from detecting changes in the dynamically generated certificates.
修改 ArgoCD 应用程序,包含忽略差异,以防止 ArgoCD 检测动态生成证书的变化。

Add the following configurations to the ArgoCD application, adjusting the namespace as necessary:
向 ArgoCD 应用程序添加以下配置,并根据需要调整命名空间:

ignoreDifferences: - group: "" kind: Secret name: kubewarden-ca namespace: kubewarden-system jsonPointers: - "/data" - group: "" kind: Secret name: kubewarden-webhook-server-cert namespace: kubewarden-system jsonPointers: - "/data" - group: 'admissionregistration.k8s.io' kind: 'ValidatingWebhookConfiguration' name: 'kubewarden-controller-validating-webhook-configuration' jqPathExpressions: - '.webhooks[]?.clientConfig.caBundle' - group: 'admissionregistration.k8s.io' kind: 'MutatingWebhookConfiguration' name: 'kubewarden-controller-mutating-webhook-configuration' jqPathExpressions: - '.webhooks[]?.clientConfig.caBundle'

Restart the policy server after applying theignoreDifferencesconfiguration to ensure it picks up the new certificate.
应用ignoreDifferences配置后重启策略服务器,确保它能获取新证书。

Cause 病因

The issue is caused by dynamically generating certificates during the Helm chart runtime, which ArgoCD detects as changes, triggering a sync and certificate rotation.After deployment, ArgoCD renders the chart again for comparison, which generates new certificates. The comparison detects differences, making the application out-of-sync right away. If auto-sync with self-heal is enabled, ArgoCD forcefully syncs the chart every 24 hours when the rendered chart cache expires. This behaviour can be simulated at any time by performing a hard refresh of the application from the ArgoCD UI. Since the CA certificate changes, the cert-controller has to rotate the policy server certificate after some time, which eventually causes the issue
问题源于在 Helm 图表运行时动态生成证书,ArgoCD 检测到这些变化,触发同步和证书轮换。部署后,ArgoCD 会再次渲染图表进行比较,从而生成新的证书。比较检测到差异,导致应用立刻不同步。如果启用了自动同步和自修复,ArgoCD 会在渲染的图表缓存到期后,每 24 小时强制同步图表。这种行为可以通过从 ArgoCD 界面进行硬刷新来随时模拟。由于 CA 证书发生变化,证书控制器必须在一段时间后轮换策略服务器证书,这最终导致了问题

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

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

相关文章:

  • Ostrakon-VL像素终端实战:为盲人顾客生成语音版货架导航
  • 洛雪音乐音源项目:如何免费获取全网高品质音乐资源的完整指南
  • 2026年半导体清洗设备厂家推荐:厦门和伟达超声波设备有限公司,定制化清洗槽解决方案 - 品牌推荐官
  • nuScenes数据集避坑指南:从数据下载到多模态可视化完整流程
  • Zemax非序列模式入门:从光源到探测器的完整实战指南(附常见问题解答)
  • Kafka 成功消费消息的完整流程图
  • 2026进口显微维氏硬度计权威推荐榜:性能卓越品牌盘点与用户真实反馈 - 品牌推荐大师
  • 上海高端腕表抛光价格全解析:2026年六城2.8万例数据揭示的工艺真相与品牌修复成本 - 时光修表匠
  • Granite TimeSeries FlowState R1高可用部署架构:基于Kubernetes的容器化方案
  • cv_resnet101_face-detection_cvpr22papermogface实战效果:会议照片自动去重+人脸聚类预处理演示
  • Pixel Mind Decoder 创意应用:驱动STM32嵌入式设备的情绪交互灯光
  • GTX1650也能跑!Windows11上OLLAMA+AnythingLLM本地部署Llama3保姆级教程
  • 2026年成都中职升本科机构推荐:成都微畔教育,对口单招/高职单招/职教高考全覆盖 - 品牌推荐官
  • AI-AGENT概念解析 - LLM模型和AI领域助手
  • 前后端时间数据类型不一致如何解决
  • 2026年西门子数控系统维修服务推荐:长沙市晨骏自动化专业解决驱动器/主板/按键失灵等故障 - 品牌推荐官
  • 终极窗口自由:SRWE让你的应用程序突破分辨率限制的完整指南
  • Mac Mouse Fix:让你的10美元鼠标比苹果触控板更好用的终极指南
  • 如何为黑群晖DSM7.0.1添加2.5G网卡和NVME固态硬盘:详细配置教程
  • Oracle 迁移到 PostgreSQL:低业务中断、可校验、可回退
  • 别再为UI动画发愁了!用Spine+Unity 2021制作丝滑2D动画的保姆级流程
  • CBconvert:漫画格式全平台转换高效解决方案
  • 三三复制商业模式系统介绍
  • 2026年倒角机厂家推荐:长恩精机有限公司,小型/新型/自动/工业倒角机全系供应 - 品牌推荐官
  • 2026房梁榫卯装修材料厂家推荐:沭阳县牡丹木业,结构/加固/装修/装饰材料一站式供应 - 品牌推荐官
  • 高效数据采集解决方案:快手内容获取工具的技术实现与应用指南
  • Graphormer基础教程:OGB benchmark数据加载逻辑与本地缓存机制
  • 推荐靠谱的AI优化公司,厦门广推网络科技值得关注 - mypinpai
  • 紧急提醒 支付宝立减金别浪费!这样回收,轻松赚零花钱 - 可可收
  • 关键词搜索和SEO优化有什么关系_常见的关键词搜索误区有哪些