跳到正文
Skillpedia
部署与云(DevOps)17k · #10767

kubesphere-devops-argocd

它能做什么

这个技能帮助 AI 智能体在 KubeSphere DevOps 中配置 ArgoCD。适合从 Git 部署应用、并希望逐步了解设置和排查方法的团队。

适用场景

  • ✓当你想通过 ArgoCD 从 Git 仓库设置持续部署时。
  • ✓当你需要为一组集群创建应用或 ApplicationSet 时。
  • ✓当 ArgoCD 同步失败,并且你想找出原因时。

技能链接

https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-devops-argocd/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/kubesphere/kubesphere/blob/master/skills/kubesphere-devops-argocd/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我在 KubeSphere DevOps 中创建一个 ArgoCD 应用,从我们的 Git 仓库部署我们的应用。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会说明两种创建应用的方式,然后帮你设置并检查同步是否正常。它也可以讲解单点登录和仓库凭据的配置。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

KubeSphere DevOps ArgoCD Configuration

Overview

KubeSphere DevOps includes ArgoCD v2.11.7 as a bundled subchart for GitOps continuous deployment. ArgoCD follows the declarative GitOps pattern, automatically syncing application state with Git repositories.

When to Use

  • Setting up GitOps continuous deployment
  • Configuring ArgoCD applications and ApplicationSets
  • Enabling SSO authentication via Dex
  • Managing multi-cluster deployments
  • Troubleshooting ArgoCD sync issues
  • Configuring repository credentials

KubeSphere GitOps Integration

Two Ways to Create Applications

1. Direct ArgoCD Application (Admin Only)

  • Created in argocd namespace
  • Requires access to ArgoCD namespace
  • Full control over ArgoCD configuration

2. KubeSphere GitOps Application (Tenant-Friendly)

  • Created via /kapis/gitops.kubesphere.io/v1alpha1/
  • Application CR created in tenant namespace
  • KubeSphere automatically creates corresponding ArgoCD Application
  • Tenant doesn't need direct ArgoCD access

Architecture

┌─────────────────────────────────────────────────────────────┐
│                    Tenant Namespace                          │
│  ┌──────────────────────────────────────────────┐           │
│  │  Application (gitops.kubesphere.io/v1alpha1) │           │
│  │  - Created by tenant via KubeSphere API      │           │
│  │  - Label: gitops.kubesphere.io/argocd-location: argocd │  │
│  └──────────────────┬───────────────────────────┘           │
└──────────────────────┼──────────────────────────────────────┘
                       │
                       │ KubeSphere Controller watches
                       │ and creates corresponding
                       ▼
┌─────────────────────────────────────────────────────────────┐
│                    argocd Namespace                          │
│  ┌──────────────────────────────────────────────┐           │
│  │  Application (argoproj.io/v1alpha1)          │           │
│  │  - Created automatically by KubeSphere       │           │
│  │  - References tenant namespace as target     │           │
│  └──────────────────┬───────────────────────────┘           │
└──────────────────────┼──────────────────────────────────────┘
                       │
                       │ ArgoCD Controller reconciles
                       ▼
┌─────────────────────────────────────────────────────────────┐
│                    Tenant Namespace                          │
│  ┌──────────────────────────────────────────────┐           │
│  │  Deployed Resources (Pods, Services, etc.)   │           │
│  │  - Created by ArgoCD                         │           │
│  │  - Managed via GitOps                        │           │
│  └──────────────────────────────────────────────┘           │
└─────────────────────────────────────────────────────────────┘

Key Differences

Aspect Direct ArgoCD KubeSphere GitOps
Namespace argocd Tenant's namespace
Access Required ArgoCD namespace Tenant namespace only
API Endpoint N/A (kubectl) /kapis/gitops.kubesphere.io/v1alpha1/
Tenant Can Create ❌ No ✅ Yes
ArgoCD UI Access ✅ Yes ❌ No (transparent)
Multi-tenancy Shared Isolated per tenant

Architecture

ArgoCD Components

Component Pod Name Pattern Purpose
Application Controller devops-agent-argocd-application-controller-* Reconciles Application state
ApplicationSet Controller devops-agent-argocd-applicationset-controller-* Manages ApplicationSet CRDs
Dex Server devops-agent-argocd-dex-server-* SSO authentication proxy
Notifications Controller devops-agent-argocd-notifications-controller-* Event notifications
Redis devops-agent-argocd-redis-* Cache and state storage
Repo Server devops-agent-argocd-repo-server-* Git repository operations
ArgoCD Server devops-agent-argocd-server-* API and UI

Namespace: argocd (configurable via argocd.namespace)

Installation & Verification

Check ArgoCD Status

# Verify ArgoCD namespace exists
kubectl get ns argocd

# Check all ArgoCD pods
kubectl get pods -n argocd

# Check ArgoCD services
kubectl get svc -n argocd

Access ArgoCD UI

# Get ArgoCD server service
kubectl get svc devops-agent-argocd-server -n argocd

# Port-forward for local access
kubectl port
常见问题

租户没有管理员权限,能创建 ArgoCD 应用吗?

可以。该技能介绍了一条 KubeSphere GitOps 路径,可以在租户命名空间中创建应用。

该技能涵盖单点登录吗?

涵盖。它包括通过 Dex 启用登录。

仓库访问怎么办?

该技能涵盖为 ArgoCD 配置仓库凭据。

详情

作者的原始描述

Use when configuring ArgoCD in KubeSphere DevOps, including GitOps deployments, application management, SSO setup, or troubleshooting ArgoCD issues

repo: kubesphere/kubesphere

热度

GitHub 星标
17k
排名
#10767
许可证
—
更新时间
2026/7/14

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能