跳到正文
cccskills
免费在 GitHub 公开

k8s-helm

Manage Helm charts, releases, and repositories. Use for Helm installations, upgrades, rollbacks, chart development, and release management.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(4)

  • SKILL.md5.7 KB
  • references/CHART-STRUCTURE.md7.9 KB
  • scripts/lint-chart.sh2.7 KB
  • TROUBLESHOOTING.md4.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Helm Chart Management

Comprehensive Helm v3 operations using kubectl-mcp-server's 16 Helm tools.

When to Apply

Use this skill when:

  • User mentions: "helm", "chart", "release", "values", "repository"
  • Operations: installing charts, upgrading releases, rollbacks
  • Keywords: "package", "template", "lint", "repo add"

Priority Rules

PriorityRuleImpactTools
1Template before install (dry run)CRITICALtemplate_helm_chart
2Check existing releases firstCRITICALlist_helm_releases
3Lint charts before packagingHIGHlint_helm_chart
4Note revision before upgradeHIGHget_helm_history
5Verify values after upgradeMEDIUMget_helm_values
6Update repos before searchLOWupdate_helm_repos

Quick Reference

TaskToolExample
Install chartinstall_helm_chartinstall_helm_chart(name, chart, namespace)
Upgrade releaseupgrade_helm_releaseupgrade_helm_release(name, chart, namespace, values)
Rollbackrollback_helm_releaserollback_helm_release(name, namespace, revision)
List releaseslist_helm_releaseslist_helm_releases(namespace)
Get valuesget_helm_valuesget_helm_values(name, namespace)
Template (dry run)template_helm_charttemplate_helm_chart(name, chart, namespace)

Install Chart

install_helm_chart(
    name="my-release",
    chart="bitnami/nginx",
    namespace="web",
    values={"replicaCount": 3, "service.type": "LoadBalancer"}
)

Upgrade Release

upgrade_helm_release(
    name="my-release",
    chart="bitnami/nginx",
    namespace="web",
    values={"replicaCount": 5}
)

Rollback Release

rollback_helm_release(
    name="my-release",
    namespace="web",
    revision=1
)

Uninstall Release

uninstall_helm_chart(name="my-release", namespace="web")

Release Management

List Releases

list_helm_releases(namespace="web")

list_helm_releases()

Get Release Details

get_helm_release(name="my-release", namespace="web")

Release History

get_helm_history(name="my-release", namespace="web")

Get Release Values

get_helm_values(name="my-release", namespace="web")

Get Release Manifest

get_helm_manifest(name="my-release", namespace="web")

Repository Management

Add Repository

add_helm_repo(name="bitnami", url="https://charts.bitnami.com/bitnami")

List Repositories

list_helm_repos()

Update Repositories

update_helm_repos()

Search Charts

search_helm_charts(keyword="nginx")

search_helm_charts(keyword="postgres", repo="bitnami")

Chart Development

Template Chart (Dry Run)

template_helm_chart(
    name="my-release",
    chart="./my-chart",
    namespace="test",
    values={"key": "value"}
)

Lint Chart

lint_helm_chart(chart="./my-chart")

Package Chart

package_helm_chart(chart="./my-chart", destination="./packages")

Common Workflows

New Application Deployment

add_helm_repo(name="bitnami", url="...")

search_helm_charts(keyword="postgresql")

template_helm_chart(...)

install_helm_chart(...)

get_helm_release(...)

Upgrade with Rollback Safety

get_helm_history(name, namespace)

upgrade_helm_release(name, chart, namespace, values)

rollback_helm_release(name, namespace, revision)

Multi-Environment Deployment

install_helm_chart(
    name="app",
    chart="./charts/app",
    namespace="dev",
    values={"replicas": 1},
    context="development"
)

install_helm_chart(
    name="app",
    chart="./charts/app",
    namespace="staging",
    values={"replicas": 2},
    context="staging"
)

install_helm_chart(
    name="app",
    chart="./charts/app",
    namespace="prod",
    values={"replicas": 5},
    context="production"
)

Chart Structure

See references/CHART-STRUCTURE.md for best practices on organizing Helm charts.

Troubleshooting

See TROUBLESHOOTING.md for common issues.

Release Stuck in Pending

get_helm_release(name, namespace)

get_pods(namespace, label_selector="app.kubernetes.io/instance=<release>")

Failed Installation

get_helm_history(name, namespace)

get_events(namespace)

uninstall_helm_chart(name, namespace)

Values Not Applied

get_helm_values(name, namespace)

template_helm_chart(...)

upgrade_helm_release(...)

Scripts

See scripts/lint-chart.sh for automated chart validation.

Best Practices

  1. Always Template First

    template_helm_chart(name, chart, namespace, values)
    
  2. Use Semantic Versioning

    install_helm_chart(..., version="1.2.3")
    
  3. Store Values in Git

    • values-dev.yaml
    • values-staging.yaml
    • values-prod.yaml
  4. Namespace Isolation

    • One namespace per release
    • Easier cleanup and RBAC

Prerequisites

  • Helm CLI: Required for all Helm operations
    curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
    

Related Skills

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Configure Kubernetes autoscaling with HPA, VPA, and KEDA. Use for horizontal/vertical pod autoscaling, event-driven scaling, and capacity management.

中文简介正在准备中。当前显示原文说明。

rohitg00/kubectl-mcp-server9642026年4月9日 更新

Kubernetes backup and restore with Velero. Use when creating backups, restoring applications, managing disaster recovery, or migrating workloads between clusters.

中文简介正在准备中。当前显示原文说明。

rohitg00/kubectl-mcp-server9642026年4月9日 更新

Browser automation for Kubernetes dashboards and web UIs. Use when interacting with Kubernetes Dashboard, Grafana, ArgoCD UI, or other web interfaces. Requires MCP_BROWSER_ENABLED=true.

中文简介正在准备中。当前显示原文说明。

rohitg00/kubectl-mcp-server9642026年4月9日 更新

k8s-capi

免费

Cluster API lifecycle management for provisioning, scaling, and upgrading Kubernetes clusters. Use when managing cluster infrastructure or multi-cluster operations.

中文简介正在准备中。当前显示原文说明。

rohitg00/kubectl-mcp-server9642026年4月9日 更新

k8s-certs

免费

Kubernetes certificate management with cert-manager. Use when managing TLS certificates, configuring issuers, or troubleshooting certificate issues.

中文简介正在准备中。当前显示原文说明。

rohitg00/kubectl-mcp-server9642026年4月9日 更新

Cilium and Hubble network observability for Kubernetes. Use when managing network policies, observing traffic flows, or troubleshooting connectivity with eBPF-based networking.

中文简介正在准备中。当前显示原文说明。

rohitg00/kubectl-mcp-server9642026年4月9日 更新

查看 rohitg00 的全部技能

报告此技能的问题