[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C48K7Q8VPJ8TWQ1830DHRR":3,"skill-same:01M6C48K7Q8VPJ8TWQ1830DHRR":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":46,"linkOnly":47,"markdownContent":48,"markdownBody":49,"frontMatter":50,"refName":56,"commitSha":57,"skillDirectory":5,"forksCount":58,"repositoryHtmlUrl":59,"repositoryHomepageUrl":17,"ownerHtmlUrl":60,"ownerBlogUrl":61,"ownerDescription":62,"updatedAt":63,"install":64,"resources":77},"01M6C48K7Q8VPJ8TWQ1830DHRR","confighub-usage-guide","ConfigHub 配置管理指南","A comprehensive guide for using ConfigHub to manage Kubernetes configuration across multiple environments using Configuration as Data principles. This rulebook covers installation, configuration management, variant handling, and operational workflows.","使用 ConfigHub 基于「配置即数据」原则跨多个环境管理 Kubernetes 配置的综合指南。本规则手册涵盖安装、配置管理、变体处理和运维工作流。","stakpak\u002Fcommunity-paks","stakpak","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F86326525?v=4","01M6C48005ADA10YG0BQQX0J4Q","Stakpak","01M6C4804JD6KKZR9AQ9TYS0BT",4,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fstakpak\u002Fcommunity-paks\u002Fblob\u002Fmain\u002Fconfighub-usage-guide\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9076S7ETYWTQVVK45G","云原生计算与容器编排","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"guide","confighub usage guide","kubernetes","workflows","config","dev","data","team","management","environment","confighub","configuration-management","gitops-alternative","config-as-data","multi-environment","2026-11-10 10:12:30",false,"---\nname: confighub-usage-guide\ndescription: |\n  A comprehensive guide for using ConfigHub to manage Kubernetes configuration across multiple environments using Configuration as Data principles. This rulebook covers installation, configuration management, variant handling, and operational workflows.\nlicense: MIT\ntags:\n  - confighub\n  - kubernetes\n  - configuration-management\n  - gitops-alternative\n  - config-as-data\n  - multi-environment\nmetadata:\n  author: Stakpak \u003Cteam@stakpak.dev>\n  version: \"1.0.2\"\n---\n\n# ConfigHub Usage Guide\n\n## Goals\n\nThis rulebook helps you:\n- Adopt ConfigHub's Configuration as Data approach for managing Kubernetes deployments\n- Manage configuration variants across multiple environments (dev, staging, prod)\n- Implement safe change workflows with review, approval, and rollback capabilities\n- Eliminate configuration drift between desired and live state\n- Automate configuration validation, transformation, and deployment\n\n---\n\n## Key Concepts\n\n### Configuration as Data vs Infrastructure as Code\n\nConfigHub stores **fully rendered, literal configuration** (WET - Write Every Time) instead of templates with variables. This means:\n- No Helm templates, no variable interpolation, no conditionals\n- Every environment's config is stored independently in standard YAML\n- Changes are made via API\u002FCLI, not git commits and CI\u002FCD pipelines\n- Configuration can be queried, validated, and transformed using composable tools\n\n### Core Entities\n\n- **Unit:** A collection of related Kubernetes resources (e.g., Deployment + Service + Ingress)\n- **Space:** Logical grouping for units, typically representing an environment or team\n- **Revision:** Immutable snapshot of a unit's configuration at a point in time\n- **Worker:** Process running in your infrastructure that executes apply\u002Fdestroy\u002Frefresh operations\n- **Target:** Represents a deployment destination (Kubernetes cluster)\n- **Function:** Code that reads\u002Fwrites configuration data (readonly, mutating, or validating)\n- **Trigger:** Automated function execution on configuration changes (validation, policy enforcement)\n- **Link:** Dependency relationship between units for value propagation and apply ordering\n\n---\n\n## Workflow\n\n### Step 1: Install the CLI\n\nInstall the `cub` CLI tool:\n\n```bash\ncurl -fsSL https:\u002F\u002Fhub.confighub.com\u002Fcub\u002Finstall.sh | bash\n```\n\nAdd to your PATH:\n\n```bash\n# Choose one method:\nsudo ln -sf ~\u002F.confighub\u002Fbin\u002Fcub \u002Fusr\u002Flocal\u002Fbin\u002Fcub\n# OR\nexport PATH=~\u002F.confighub\u002Fbin:$PATH\n```\n\n**Reasoning:** The CLI is your primary interface for ConfigHub operations. It provides both interactive and scriptable access to all ConfigHub features.\n\n### Step 2: Authenticate and Set Context\n\nLogin and configure your default space:\n\n```bash\n# Authenticate via browser\ncub auth login\n\n# Set default space (replace with your space slug)\ncub context set --space \u003CSPACE_SLUG>\n\n# Verify context\ncub context get\n```\n\n**Reasoning:** Context configuration reduces repetitive flags in subsequent commands.\n\n### Step 3: Create Space Hierarchy for Environments\n\nOrganize your environments using spaces with labels:\n\n```bash\n# Create a home space for shared entities\ncub space create home\n\n# Create environment-specific spaces\ncub space create app-dev --label Environment=dev --label Application=myapp\ncub space create app-staging --label Environment=staging --label Application=myapp\ncub space create app-prod --label Environment=prod --label Application=myapp\n\n# Create platform spaces for shared infrastructure\ncub space create platform-dev --label Environment=dev\ncub space create platform-prod --label Environment=prod\n```\n\n**Reasoning:** Spaces provide isolation boundaries. Labels enable bulk operations across related spaces using where filters.\n\n### Step 4: Set Up Validation Triggers\n\nInstall essential validation triggers in your home space:\n\n```bash\n# Schema validation (always recommended)\ncub trigger create --space home valid-k8s Mutation Kubernetes\u002FYAML vet-schemas\n\n# Placeholder validation (prevents applying incomplete config)\ncub trigger create --space home complete-k8s Mutation Kubernetes\u002FYAML vet-placeholders\n\n# Context enforcement (adds metadata to resources)\ncub trigger create --space home context-k8s Mutation Kubernetes\u002FYAML ensure-context true\n```\n\nApply triggers to other spaces:\n\n```bash\nhomeSpaceID=\"$(cub space get home --jq '.Space.SpaceID')\"\ncub space create app-dev --label Environment=dev --where-trigger \"SpaceID = '$homeSpaceID'\"\n```\n\n**Reasoning:** Triggers enforce policies automatically. Installing them early prevents invalid configurations from being created or applied.\n\n### Step 5: Deploy and Configure Workers\n\nCreate and deploy a worker to enable apply\u002Fdestroy\u002Frefresh operations:\n\n```bash\n# Create worker entity\ncub worker create --space platform-dev cluster-worker\n\n# Install worker in your cluster\ncub worker install cluster-worker \\\n  --space platform-dev \\\n  --env IN_CLUSTER_TARGET_NAME=dev-cluster \\\n  --export --include-secret | kubectl apply -f -\n\n# Verify worker is connected\ncub worker list --space \"*\"\n```\n\n**Reasoning:** Workers execute operations in your infrastructure with your credentials. They never send credentials to ConfigHub, maintaining security boundaries.\n\n### Step 6: Import or Create Initial Configuration\n\n**Option A: Import from existing cluster**\n\n```bash\n# Import specific resources\ncub unit import --space app-dev frontend \\\n  --namespace myapp \\\n  --resource-type apps\u002Fv1\u002FDeployment \\\n  --resource-name frontend\n\n# Import entire namespace\ncub unit import --space app-dev myapp-all \\\n  --namespace myapp\n```\n\n**Option B: Create from Helm chart**\n\n```bash\n# Add Helm repo\nhelm repo add bitnami https:\u002F\u002Fcharts.bitnami.com\u002Fbitnami --force-update\n\n# Install chart as ConfigHub unit\ncub helm install myapp bitnami\u002Fnginx \\\n  --space app-dev \\\n  --namespace myapp \\\n  --values values.yaml\n```\n\n**Option C: Create from YAML files**\n\n```bash\n# Validate locally first\ncub function local vet-schemas deployment.yaml\n\n# Create unit\ncub unit create --space app-dev frontend deployment.yaml\n```\n\n**Reasoning:** ConfigHub works with existing infrastructure. Import captures current state, while Helm integration leverages the ecosystem. Direct YAML creation works for custom configurations.\n\n### Step 7: Create Configuration Variants\n\nClone units to create environment variants:\n\n```bash\n# Clone single unit to another space\ncub unit create --space app-staging \\\n  --upstream-space app-dev \\\n  --upstream-unit frontend\n\n# Clone all units from dev to multiple prod spaces\ncub unit create --space app-dev \\\n  --where-space \"Labels.Environment = 'prod'\"\n```\n\n**Reasoning:** Cloning maintains upstream\u002Fdownstream relationships, enabling controlled propagation of changes while preserving environment-specific overrides.\n\n### Step 8: Manage Dependencies with Links\n\nCreate links to propagate values and control apply order:\n\n```bash\n# Link backend to namespace (propagates namespace value)\ncub link create --space app-dev - backend app-namespace\n\n# Link backend to database (establishes apply order)\ncub link create --space app-dev - backend database\n\n# Bulk link all units to namespace\ncub link create --space \"*\" \\\n  --where-space \"Slug = 'app-dev'\" \\\n  --where-from \"Slug != 'app-namespace'\" \\\n  --where-to \"Slug = 'app-namespace'\"\n```\n\n**Reasoning:** Links automate value substitution (replacing placeholders) and ensure correct apply\u002Fdestroy ordering based on dependencies.\n\n### Step 9: Attach Targets to Units\n\nAttach deployment targets to enable apply operations:\n\n```bash\n# Attach target to specific unit\ncub unit set-target --space app-dev frontend platform-dev\u002Fdev-cluster\n\n# Bulk attach to all units in environment\ncub unit set-target --space \"*\" \\\n  --where \"Space.Labels.Environment = 'dev'\" \\\n  platform-dev\u002Fdev-cluster\n```\n\n**Reasoning:** Targets specify where configuration should be applied. Units without targets cannot be applied.\n\n### Step 10: Make Configuration Changes\n\nUse functions to modify configuration:\n\n```bash\n# Update container image\ncub function do --space app-dev --unit frontend \\\n  --change-desc \"Update to v1.2.3\" \\\n  set-image-reference main \":v1.2.3\"\n\n# Set resource limits\ncub function do --space app-dev --unit frontend \\\n  set-container-resources main all 500m 512Mi 2\n\n# Set environment variable\ncub function do --space app-dev --unit frontend \\\n  set-env-var main DATABASE_URL \"postgres:\u002F\u002Fdb:5432\u002Fmyapp\"\n\n# Bulk update across environments\ncub function do --space \"*\" \\\n  --where \"Labels.Application = 'myapp' AND Space.Labels.Environment = 'prod'\" \\\n  --change-desc \"Production image update\" \\\n  set-image-reference main \":v1.2.3\"\n```\n\n**Reasoning:** Functions provide type-safe, validated configuration changes. They're more reliable than manual YAML editing and support bulk operations.\n\n### Step 11: Implement Change Management with ChangeSets\n\nGroup related changes using ChangeSets:\n\n```bash\n# Create ChangeSet\ncub changeset create --space home release-v123 \\\n  --description \"Release v1.2.3: Bug fixes and new features\"\n\n# Open ChangeSet (add units to it)\ncub unit update --patch --space app-prod \\\n  --filter home\u002Fprod-app-filter \\\n  --changeset home\u002Frelease-v123 \\\n  --change-desc \"Starting release v1.2.3 rollout\"\n\n# Make changes (they'll be part of the ChangeSet)\ncub function do --space app-prod \\\n  --changeset home\u002Frelease-v123 \\\n  --filter home\u002Fprod-app-filter \\\n  --change-desc \"Update image to v1.2.3\" \\\n  set-image-reference main \":v1.2.3\"\n\n# Close ChangeSet\ncub unit update --patch --space app-prod \\\n  --filter home\u002Fprod-app-filter \\\n  --changeset -\n```\n\n**Reasoning:** ChangeSets provide atomic, trackable change groups. They enable coordinated rollouts and rollbacks across multiple units.\n\n### Step 12: Review and Approve Changes\n\nIf approval triggers are configured:\n\n```bash\n# Approve specific revision\ncub unit approve --space app-prod frontend --revision 5\n\n# Bulk approve ChangeSet\ncub unit approve --space app-prod \\\n  --filter home\u002Fprod-app-filter \\\n  --changeset home\u002Frelease-v123\n```\n\n### Step 13: Apply Configuration\n\nApply changes to clusters:\n\n```bash\n# Apply single unit\ncub unit apply --space app-dev frontend\n\n# Apply all units in environment\ncub unit apply --space \"*\" \\\n  --where \"Space.Labels.Environment = 'dev'\"\n\n# Apply with dry-run first\ncub unit apply --space app-prod frontend --dry-run\n```\n\n### Step 14: Monitor and Refresh State\n\nKeep ConfigHub in sync with live state:\n\n```bash\n# Refresh single unit\ncub unit refresh --space app-dev frontend\n\n# Bulk refresh\ncub unit refresh --space \"*\" \\\n  --where \"Space.Labels.Environment = 'dev'\"\n\n# Check drift\ncub unit get --space app-dev frontend --jq '.Unit.DriftStatus'\n```\n\n### Step 15: Rollback When Needed\n\nRevert to previous configurations:\n\n```bash\n# View revision history\ncub unit get --space app-dev frontend --jq '.Unit.Revisions'\n\n# Rollback to specific revision\ncub unit rollback --space app-dev frontend --revision 3\n\n# Rollback entire ChangeSet\ncub unit rollback --space app-prod \\\n  --filter home\u002Fprod-app-filter \\\n  --changeset home\u002Frelease-v123\n```\n\n---\n\n## References\n\n- [ConfigHub Documentation](https:\u002F\u002Fdocs.confighub.com)\n- [Configuration as Data Principles](https:\u002F\u002Fdocs.confighub.com\u002Fconcepts\u002Fconfig-as-data)\n- [CLI Reference](https:\u002F\u002Fdocs.confighub.com\u002Fcli)\n","# ConfigHub Usage Guide\n\n## Goals\n\nThis rulebook helps you:\n- Adopt ConfigHub's Configuration as Data approach for managing Kubernetes deployments\n- Manage configuration variants across multiple environments (dev, staging, prod)\n- Implement safe change workflows with review, approval, and rollback capabilities\n- Eliminate configuration drift between desired and live state\n- Automate configuration validation, transformation, and deployment\n\n---\n\n## Key Concepts\n\n### Configuration as Data vs Infrastructure as Code\n\nConfigHub stores **fully rendered, literal configuration** (WET - Write Every Time) instead of templates with variables. This means:\n- No Helm templates, no variable interpolation, no conditionals\n- Every environment's config is stored independently in standard YAML\n- Changes are made via API\u002FCLI, not git commits and CI\u002FCD pipelines\n- Configuration can be queried, validated, and transformed using composable tools\n\n### Core Entities\n\n- **Unit:** A collection of related Kubernetes resources (e.g., Deployment + Service + Ingress)\n- **Space:** Logical grouping for units, typically representing an environment or team\n- **Revision:** Immutable snapshot of a unit's configuration at a point in time\n- **Worker:** Process running in your infrastructure that executes apply\u002Fdestroy\u002Frefresh operations\n- **Target:** Represents a deployment destination (Kubernetes cluster)\n- **Function:** Code that reads\u002Fwrites configuration data (readonly, mutating, or validating)\n- **Trigger:** Automated function execution on configuration changes (validation, policy enforcement)\n- **Link:** Dependency relationship between units for value propagation and apply ordering\n\n---\n\n## Workflow\n\n### Step 1: Install the CLI\n\nInstall the `cub` CLI tool:\n\n```bash\ncurl -fsSL https:\u002F\u002Fhub.confighub.com\u002Fcub\u002Finstall.sh | bash\n```\n\nAdd to your PATH:\n\n```bash\n# Choose one method:\nsudo ln -sf ~\u002F.confighub\u002Fbin\u002Fcub \u002Fusr\u002Flocal\u002Fbin\u002Fcub\n# OR\nexport PATH=~\u002F.confighub\u002Fbin:$PATH\n```\n\n**Reasoning:** The CLI is your primary interface for ConfigHub operations. It provides both interactive and scriptable access to all ConfigHub features.\n\n### Step 2: Authenticate and Set Context\n\nLogin and configure your default space:\n\n```bash\n# Authenticate via browser\ncub auth login\n\n# Set default space (replace with your space slug)\ncub context set --space \u003CSPACE_SLUG>\n\n# Verify context\ncub context get\n```\n\n**Reasoning:** Context configuration reduces repetitive flags in subsequent commands.\n\n### Step 3: Create Space Hierarchy for Environments\n\nOrganize your environments using spaces with labels:\n\n```bash\n# Create a home space for shared entities\ncub space create home\n\n# Create environment-specific spaces\ncub space create app-dev --label Environment=dev --label Application=myapp\ncub space create app-staging --label Environment=staging --label Application=myapp\ncub space create app-prod --label Environment=prod --label Application=myapp\n\n# Create platform spaces for shared infrastructure\ncub space create platform-dev --label Environment=dev\ncub space create platform-prod --label Environment=prod\n```\n\n**Reasoning:** Spaces provide isolation boundaries. Labels enable bulk operations across related spaces using where filters.\n\n### Step 4: Set Up Validation Triggers\n\nInstall essential validation triggers in your home space:\n\n```bash\n# Schema validation (always recommended)\ncub trigger create --space home valid-k8s Mutation Kubernetes\u002FYAML vet-schemas\n\n# Placeholder validation (prevents applying incomplete config)\ncub trigger create --space home complete-k8s Mutation Kubernetes\u002FYAML vet-placeholders\n\n# Context enforcement (adds metadata to resources)\ncub trigger create --space home context-k8s Mutation Kubernetes\u002FYAML ensure-context true\n```\n\nApply triggers to other spaces:\n\n```bash\nhomeSpaceID=\"$(cub space get home --jq '.Space.SpaceID')\"\ncub space create app-dev --label Environment=dev --where-trigger \"SpaceID = '$homeSpaceID'\"\n```\n\n**Reasoning:** Triggers enforce policies automatically. Installing them early prevents invalid configurations from being created or applied.\n\n### Step 5: Deploy and Configure Workers\n\nCreate and deploy a worker to enable apply\u002Fdestroy\u002Frefresh operations:\n\n```bash\n# Create worker entity\ncub worker create --space platform-dev cluster-worker\n\n# Install worker in your cluster\ncub worker install cluster-worker \\\n  --space platform-dev \\\n  --env IN_CLUSTER_TARGET_NAME=dev-cluster \\\n  --export --include-secret | kubectl apply -f -\n\n# Verify worker is connected\ncub worker list --space \"*\"\n```\n\n**Reasoning:** Workers execute operations in your infrastructure with your credentials. They never send credentials to ConfigHub, maintaining security boundaries.\n\n### Step 6: Import or Create Initial Configuration\n\n**Option A: Import from existing cluster**\n\n```bash\n# Import specific resources\ncub unit import --space app-dev frontend \\\n  --namespace myapp \\\n  --resource-type apps\u002Fv1\u002FDeployment \\\n  --resource-name frontend\n\n# Import entire namespace\ncub unit import --space app-dev myapp-all \\\n  --namespace myapp\n```\n\n**Option B: Create from Helm chart**\n\n```bash\n# Add Helm repo\nhelm repo add bitnami https:\u002F\u002Fcharts.bitnami.com\u002Fbitnami --force-update\n\n# Install chart as ConfigHub unit\ncub helm install myapp bitnami\u002Fnginx \\\n  --space app-dev \\\n  --namespace myapp \\\n  --values values.yaml\n```\n\n**Option C: Create from YAML files**\n\n```bash\n# Validate locally first\ncub function local vet-schemas deployment.yaml\n\n# Create unit\ncub unit create --space app-dev frontend deployment.yaml\n```\n\n**Reasoning:** ConfigHub works with existing infrastructure. Import captures current state, while Helm integration leverages the ecosystem. Direct YAML creation works for custom configurations.\n\n### Step 7: Create Configuration Variants\n\nClone units to create environment variants:\n\n```bash\n# Clone single unit to another space\ncub unit create --space app-staging \\\n  --upstream-space app-dev \\\n  --upstream-unit frontend\n\n# Clone all units from dev to multiple prod spaces\ncub unit create --space app-dev \\\n  --where-space \"Labels.Environment = 'prod'\"\n```\n\n**Reasoning:** Cloning maintains upstream\u002Fdownstream relationships, enabling controlled propagation of changes while preserving environment-specific overrides.\n\n### Step 8: Manage Dependencies with Links\n\nCreate links to propagate values and control apply order:\n\n```bash\n# Link backend to namespace (propagates namespace value)\ncub link create --space app-dev - backend app-namespace\n\n# Link backend to database (establishes apply order)\ncub link create --space app-dev - backend database\n\n# Bulk link all units to namespace\ncub link create --space \"*\" \\\n  --where-space \"Slug = 'app-dev'\" \\\n  --where-from \"Slug != 'app-namespace'\" \\\n  --where-to \"Slug = 'app-namespace'\"\n```\n\n**Reasoning:** Links automate value substitution (replacing placeholders) and ensure correct apply\u002Fdestroy ordering based on dependencies.\n\n### Step 9: Attach Targets to Units\n\nAttach deployment targets to enable apply operations:\n\n```bash\n# Attach target to specific unit\ncub unit set-target --space app-dev frontend platform-dev\u002Fdev-cluster\n\n# Bulk attach to all units in environment\ncub unit set-target --space \"*\" \\\n  --where \"Space.Labels.Environment = 'dev'\" \\\n  platform-dev\u002Fdev-cluster\n```\n\n**Reasoning:** Targets specify where configuration should be applied. Units without targets cannot be applied.\n\n### Step 10: Make Configuration Changes\n\nUse functions to modify configuration:\n\n```bash\n# Update container image\ncub function do --space app-dev --unit frontend \\\n  --change-desc \"Update to v1.2.3\" \\\n  set-image-reference main \":v1.2.3\"\n\n# Set resource limits\ncub function do --space app-dev --unit frontend \\\n  set-container-resources main all 500m 512Mi 2\n\n# Set environment variable\ncub function do --space app-dev --unit frontend \\\n  set-env-var main DATABASE_URL \"postgres:\u002F\u002Fdb:5432\u002Fmyapp\"\n\n# Bulk update across environments\ncub function do --space \"*\" \\\n  --where \"Labels.Application = 'myapp' AND Space.Labels.Environment = 'prod'\" \\\n  --change-desc \"Production image update\" \\\n  set-image-reference main \":v1.2.3\"\n```\n\n**Reasoning:** Functions provide type-safe, validated configuration changes. They're more reliable than manual YAML editing and support bulk operations.\n\n### Step 11: Implement Change Management with ChangeSets\n\nGroup related changes using ChangeSets:\n\n```bash\n# Create ChangeSet\ncub changeset create --space home release-v123 \\\n  --description \"Release v1.2.3: Bug fixes and new features\"\n\n# Open ChangeSet (add units to it)\ncub unit update --patch --space app-prod \\\n  --filter home\u002Fprod-app-filter \\\n  --changeset home\u002Frelease-v123 \\\n  --change-desc \"Starting release v1.2.3 rollout\"\n\n# Make changes (they'll be part of the ChangeSet)\ncub function do --space app-prod \\\n  --changeset home\u002Frelease-v123 \\\n  --filter home\u002Fprod-app-filter \\\n  --change-desc \"Update image to v1.2.3\" \\\n  set-image-reference main \":v1.2.3\"\n\n# Close ChangeSet\ncub unit update --patch --space app-prod \\\n  --filter home\u002Fprod-app-filter \\\n  --changeset -\n```\n\n**Reasoning:** ChangeSets provide atomic, trackable change groups. They enable coordinated rollouts and rollbacks across multiple units.\n\n### Step 12: Review and Approve Changes\n\nIf approval triggers are configured:\n\n```bash\n# Approve specific revision\ncub unit approve --space app-prod frontend --revision 5\n\n# Bulk approve ChangeSet\ncub unit approve --space app-prod \\\n  --filter home\u002Fprod-app-filter \\\n  --changeset home\u002Frelease-v123\n```\n\n### Step 13: Apply Configuration\n\nApply changes to clusters:\n\n```bash\n# Apply single unit\ncub unit apply --space app-dev frontend\n\n# Apply all units in environment\ncub unit apply --space \"*\" \\\n  --where \"Space.Labels.Environment = 'dev'\"\n\n# Apply with dry-run first\ncub unit apply --space app-prod frontend --dry-run\n```\n\n### Step 14: Monitor and Refresh State\n\nKeep ConfigHub in sync with live state:\n\n```bash\n# Refresh single unit\ncub unit refresh --space app-dev frontend\n\n# Bulk refresh\ncub unit refresh --space \"*\" \\\n  --where \"Space.Labels.Environment = 'dev'\"\n\n# Check drift\ncub unit get --space app-dev frontend --jq '.Unit.DriftStatus'\n```\n\n### Step 15: Rollback When Needed\n\nRevert to previous configurations:\n\n```bash\n# View revision history\ncub unit get --space app-dev frontend --jq '.Unit.Revisions'\n\n# Rollback to specific revision\ncub unit rollback --space app-dev frontend --revision 3\n\n# Rollback entire ChangeSet\ncub unit rollback --space app-prod \\\n  --filter home\u002Fprod-app-filter \\\n  --changeset home\u002Frelease-v123\n```\n\n---\n\n## References\n\n- [ConfigHub Documentation](https:\u002F\u002Fdocs.confighub.com)\n- [Configuration as Data Principles](https:\u002F\u002Fdocs.confighub.com\u002Fconcepts\u002Fconfig-as-data)\n- [CLI Reference](https:\u002F\u002Fdocs.confighub.com\u002Fcli)\n",{"name":5,"tags":51,"license":16,"metadata":52,"description":55},[41,33,42,43,44,45],{"author":53,"version":54},"Stakpak \u003Cteam@stakpak.dev>","1.0.2","A comprehensive guide for using ConfigHub to manage Kubernetes configuration across multiple environments using Configuration as Data principles. This rulebook covers installation, configuration management, variant handling, and operational workflows.\n","main","d9bbde9885439c55adad930456b2660b0c37c052",1,"https:\u002F\u002Fgithub.com\u002Fstakpak\u002Fcommunity-paks","https:\u002F\u002Fgithub.com\u002Fstakpak","https:\u002F\u002Fwww.stakpak.dev","AI that runs your Infra","2026-07-04 20:18:32",{"source":9,"skillName":5,"commands":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add stakpak\u002Fcommunity-paks --skill confighub-usage-guide",{"tool":70,"command":71},"bunx","bunx skills add stakpak\u002Fcommunity-paks --skill confighub-usage-guide",{"tool":73,"command":74},"pnpm","pnpm dlx skills add stakpak\u002Fcommunity-paks --skill confighub-usage-guide","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstakpak\u002Fcommunity-paks\u002Fblob\u002Fmain\u002Fconfighub-usage-guide\u002FSKILL.md",true,[],[79,111,138,164,190,214],{"skillNo":80,"name":81,"nameZh":82,"description":83,"descriptionZh":84,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":85,"categories":86,"keywords":93,"publishedAt":46},"01M6C49TTAVC8Q9CTTC05F6VSR","vllm-deployment","vLLM 高性能推理部署","Deploy vLLM for high-performance LLM inference. Covers Docker CPU\u002FGPU deployments and cloud VM provisioning with OpenAI-compatible API endpoints.","部署 vLLM 以实现高性能 LLM 推理。涵盖 Docker 的 CPU\u002FGPU 部署、云虚拟机配置以及 OpenAI 兼容的 API 端点。","https:\u002F\u002Fgithub.com\u002Fstakpak\u002Fcommunity-paks\u002Fblob\u002Fmain\u002Fvllm-deployment\u002FSKILL.md",[87,90],{"categoryNo":88,"categoryName":89,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",{"categoryNo":91,"categoryName":92,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C7TWSEQ7QTRNCZXZP1RXM5","AI 模型推理与服务部署",[94,95,96,97,98,99,100,101,38,102,103,104,105,106,36,107,108,109,110],"vllm deployment","vLLM","deployment","docker","cloud","openai-api","llm inference","learning","api","provisioning","machine-learning","gpu","openai","vm","deploy","performance","inference",{"skillNo":112,"name":113,"nameZh":114,"description":115,"descriptionZh":116,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":117,"categories":118,"keywords":123,"publishedAt":46},"01M6C49R31XN7KJ7Y0Y78XVYTQ","terrateam-usage-guide","Terrateam 配置与使用指南","A comprehensive guide for configuring and using Terrateam, an open-source GitOps CI\u002FCD platform for Terraform and OpenTofu. Covers configuration file structure, access control, workflows, OIDC authentication, drift detection, and best practices for managing infrastructure through pull requests.","配置和使用 Terrateam 的综合指南。Terrateam 是一个用于 Terraform 和 OpenTofu 的开源 GitOps CI\u002FCD 平台。涵盖配置文件结构、访问控制、工作流、OIDC 身份验证、漂移检测以及通过拉取请求（Pull Request）管理基础设施的最佳实践。","https:\u002F\u002Fgithub.com\u002Fstakpak\u002Fcommunity-paks\u002Fblob\u002Fmain\u002Fterrateam-usage-guide\u002FSKILL.md",[119,120],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":121,"categoryName":122,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C8X79YT9M7G8WNMPEXSGQQ","Terraform 基础设施即代码管理",[124,31,125,126,127,38,128,129,130,131,132,36,133,134,135,136,137,34],"terrateam usage guide","file","opentofu","access","open","detection","oidc","ci","pull","terraform","best practices","authentication","infrastructure","pull requests",{"skillNo":139,"name":140,"nameZh":141,"description":142,"descriptionZh":143,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":144,"categories":145,"keywords":152,"publishedAt":46},"01M6C49N78AMM570EGPDXEZZDY","simple-deployment-on-vm","云虚拟机安全部署","How to do simple but secure deployments using virtual machines on different cloud providers","如何在不同云提供商的虚拟机上进行简单但安全的部署","https:\u002F\u002Fgithub.com\u002Fstakpak\u002Fcommunity-paks\u002Fblob\u002Fmain\u002Fsimple-deployment-on-vm\u002FSKILL.md",[146,149],{"categoryNo":147,"categoryName":148,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理",{"categoryNo":150,"categoryName":151,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BT9F3Z67AB1M6CHA8X75WW","云架构师",[153,107,96,154,36,155,156,38,157,158,159,160,161,98,162,108,163],"simple deployment on vm","tls configuration","virtual","how","ec2","Providers","tls","aws","dns","secure","security",{"skillNo":165,"name":166,"nameZh":167,"description":168,"descriptionZh":169,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":170,"categories":171,"keywords":176,"publishedAt":46},"01M6C49J8PRVT623JWRTTKFNJV","nextjs-on-aws","Next.js 应用 AWS 部署方案对比","This document compares various AWS deployment options for Next.js applications, analyzing costs, benefits, limitations, and providing recommendations based on different use cases.","本文档比较了 Next.js 应用的各种 AWS 部署方案，分析其成本、优势和局限性，并针对不同使用场景给出建议。","https:\u002F\u002Fgithub.com\u002Fstakpak\u002Fcommunity-paks\u002Fblob\u002Fmain\u002Fnextjs-on-aws\u002FSKILL.md",[172,175],{"categoryNo":173,"categoryName":174,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QT9C9D1D585RWPEV0M1","云解决方案架构设计",{"categoryNo":150,"categoryName":151,"taxonomyType":23,"taxonomyTypeDesc":24},[177,160,178,179,180,181,38,182,183,184,185,186,36,96,187,188,189],"nextjs on aws","nextjs","use","aws deployment","js","Next.js","analysis","applications","analyzing","cost","architecture","migration","cost-analysis",{"skillNo":191,"name":192,"nameZh":193,"description":194,"descriptionZh":195,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":196,"categories":197,"keywords":202,"publishedAt":46},"01M6C49F5B4BF2CHNT4X08XP69","migrating-bitnami-to-bitnami-legacy","Bitnami 图表与镜像迁移至 Legacy","This rule book helps you migrate Bitnami Helm charts and container images from the bitnami repository to the bitnamilegacy repository.\n\nThis migration is necessary due to Bitnami's transition, effective August 28th, 2025, where existing images will be moved to the legacy repo","本规则手册帮助你将 Bitnami Helm charts（图表）和容器镜像从 bitnami 仓库迁移到 bitnamilegacy 仓库。\n\n由于 Bitnami 的过渡调整（自 2025 年 8 月 28 日起生效），现有镜像将被移至 legacy 仓库，因此此次迁移十分必要。","https:\u002F\u002Fgithub.com\u002Fstakpak\u002Fcommunity-paks\u002Fblob\u002Fmain\u002Fmigrating-bitnami-to-bitnami-legacy\u002FSKILL.md",[198,199],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":200,"categoryName":201,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BX897P9QPJERQAH7H350W9","云迁移与工作负载移植",[203,204,38,205,206,207,208,209,210,211,36,212,213],"migrating bitnami to bitnami legacy","container images","helm","migrate","bitnami-helm-charts","bitnami-legacy","bitnami","container","repo","repository","Charts",{"skillNo":215,"name":216,"nameZh":217,"description":218,"descriptionZh":219,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":220,"categories":221,"keywords":226,"publishedAt":46},"01M6C49CHCPGZZ42P5W1MTV3WS","k3s-backup","K3s 集群备份与恢复","Backup and recovery solution for K3s clusters. Includes scheduled, pre-shutdown, and manual backup strategies with recovery procedures.","面向 K3s 集群的备份与恢复方案。包括定时备份、关机前备份和手动备份策略，以及相应的恢复流程。","https:\u002F\u002Fgithub.com\u002Fstakpak\u002Fcommunity-paks\u002Fblob\u002Fmain\u002Fk3s-backup\u002FSKILL.md",[222,223],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":224,"categoryName":225,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSSTY86MWS6W5GDQWB1ADQ","备份与灾难恢复",[227,228,229,36,230,38],"backup","k3s","k3s backup","recovery"]