kubesphere-devops-credentials
Use when managing credentials in KubeSphere DevOps, including repository credentials, kubeconfig, and API tokens
npx skills add kubesphere/kubesphere --skill kubesphere-devops-credentials --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# KubeSphere DevOps Credentials ## Overview Credentials in KubeSphere DevOps are Kubernetes Secrets with specific labels and annotations. They are synced to Jenkins for use in pipelines. Supported types include SSH keys, username/password, and secret tokens. ## When to Use - Creating credentials for Git repositories - Setting up deployment credentials (kubeconfig, registry) - Managing API tokens for external services - Troubleshooting credential access issues - Migrating credentials between DevOps projects ## Credential Types | Type | Use Case | Secret Key | |------|----------|------------| | **SSH** | Git repositories | `username`, `privatekey` | | **Basic** | Username/password | `username`, `password` | | **Secret** | API tokens, secrets | `secret` | | **Kubeconfig** | Kubernetes clusters | `kubeconfig` (v1.1.x only) | | **SSH Username/Pass** | Git with user/pass | `username`, `password` | | **String** | Generic text/tokens | `secret` | ## Resource Structure Credentials are stored as Kubernetes Secrets with DevOps labels: ```yaml apiVersion: v1 kind: Secret metadata: name: my-credential namespace: project-xxx # DevOps project namespace labels: devops.kubesphere.io/credential: "tr
- Overview
- When to Use
- Credential Types
- Resource Structure
- API Endpoints
- Common Operations
- List Credentials
- Create SSH Credential
- Create Basic Auth Credential
- Create Basic Auth for Git Access Token (GitHub/GitLab)
- Create Secret Text Credential
- Using Credentials in Pipelines
- SSH Key for Git Checkout
- WithCredentials Step
curl "https://kubesphere-api/kapis/devops.kubesphere.io/v1alpha3/namespaces/{devops}/credentials" \
curl -X POST "https://kubesphere-api/kapis/devops.kubesphere.io/v1alpha3/namespaces/{devops}/credentials" \
For GitHub/GitLab access tokens
curl -X POST "https://kubesphere-api/kapis/devops.kubesphere.io/v1alpha3/namespaces/{devops}/gitrepositories" \
cat <<EOF | kubectl apply -f -
Via API
curl "https://kubesphere-api/kapis/devops.kubesphere.io/v1alpha3/namespaces/{devops}/gitrepositories" \
Via kubectl
kubectl get gitrepositories -n demo-project
set -eWhat does the kubesphere-devops-credentials skill do?
Use when managing credentials in KubeSphere DevOps, including repository credentials, kubeconfig, and API tokens
How do I install it?
Run `npx skills add kubesphere/kubesphere --skill kubesphere-devops-credentials --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From kubesphere/kubesphere, a repository with 17,016 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
