内网 k8s 中部署 argocd 问题记录

ArgoCD 部署问题记录 github 克隆问题 注意: 克隆仓库问题 log 不会显示在 GUI 界面中, 尽量使用 cli 操作 如遇到 ssh 克隆仓库时被服务器拒绝问题, 此问题多半是代理服务器导致的, 可以尝试使用 ssh over https 方案: #旧 [email protected]:Kreedzt/argocd-demo.git #新 ssh://[email protected]:443/Kreedzt/argocd-demo.git ingress 健康检查一直 processing 问题 参考: https://github.com/argoproj/argo-cd/issues/5620 https://github.com/argoproj/argo-cd/issues/1704 这是 argocd 没有针对 ingress 做默认的健康检查兜底导致的, 若不想每个项目都改动, 可参考此回复解决 https://github.com/argoproj/argo-cd/issues/1704#issuecomment-1605855853 修改 argocd-cm 的 configMap, 添加 resource.customizations 数据即可 apiVersion: v1 data: resource.customizations: | networking.k8s.io/Ingress: health.lua: | hs = {} hs.status = "Healthy" return hs kind: ConfigMap metadata: name: argocd-cm

<span title='2023-11-01 00:00:00 +0000 UTC'>2023-11-01</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;69 words&nbsp;·&nbsp;Kreedzt

内网 k8s 中使用 traefik 作为 ingress(一)

目标 traefik 服务正常启动 部署 nginx 部署测速后可访问 环境准备 kubectl helm 安装 traefik 参考 官方文档 安装教程 注册仓库 helm repo add traefik https://traefik.github.io/charts helm repo update 部署 从 helm chart 市场下载一份默认值的 yaml 文件进行修改: 命名为 traefick-values.yml, 着重修改以下地方: ports: web: # 重定向 http -> https redirectTo: websecure websecure: tls: enabled: true service: externalIPs: # 对于内网环境, 部署 traefik 会卡在 externalIP 为 pending 的状态, 此处需要显式声明 IP 地址 - 192.168.x.x # 作为默认的 ingress, 替换已有的 ingress ingressClass: enabled: true isDefaultClass: true 执行命令以部署:...

<span title='2023-10-06 00:00:00 +0000 UTC'>2023-10-06</span>&nbsp;·&nbsp;3 min&nbsp;·&nbsp;437 words&nbsp;·&nbsp;Kreedzt