Command Palette

Search for a command to run...

Назад к скиллам
скилл № 76643

dot-ai-port-setup

Set up Port integrations to sync Kubernetes resources and GitHub Actions to Port.io

БесплатноБез исполняемых скриптов
vfarcicот vfarcic★ 49 звёзд на GitHub

Установить dot-ai-port-setup в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Setup Port Integrations

Set up Port integrations to sync Kubernetes resources and GitHub Actions to Port.io.

Prerequisites

Check the following and instruct the user to install/configure if missing:

  • kubectl - installed and configured with cluster access
  • helm - installed (for checking chart versions)
  • gh - GitHub CLI installed and authenticated
  • Environment variables set:
    • PORT_CLIENT_ID
    • PORT_CLIENT_SECRET

General Guidelines

  • Always check latest versions of third-party tools (Helm charts, GitHub Actions, etc.) before creating manifests. Use helm search repo or check the official documentation.
  • Consult Port MCP tools when in doubt - use them to explore existing blueprints, entities, actions, and integrations.
  • Validate each step before moving to the next - verify resources are created, synced, and working as expected.
  • User actions vs automated: Some steps require user action (marked with "User action required") - present these as instructions, then STOP and wait for user confirmation before proceeding to the next step.

Step 0: Discover Environment

Before starting, discover what tools are available and gather configuration:

  1. GitOps Tool: Check for ArgoCD (argocd namespace) or Flux (flux-system namespace)
  2. ESO: Check for External Secrets Operator CRD and available ClusterSecretStores
  3. Manifest directory: Ask the user where manifests should be stored (e.g., apps/, manifests/, k8s/)
GitOps Tool Deployment Method Self-Service Actions
ArgoCD ArgoCD Application manifests in Git Commit YAML to Git → ArgoCD syncs
Flux Flux HelmRelease/Kustomization in Git Commit YAML to Git → Flux syncs
Neither Manifests in Git + kubectl apply Commit YAML to Git → kubectl apply
ESO Status Secrets Method
Installed with ClusterSecretStore Use ExternalSecret to pull from secret manager
Not installed Create Secret directly with kubectl create secret

Note: Always store manifests in Git for auditability, regardless of GitOps availability.

GitOps Workflow Rules

IMPORTANT: When ArgoCD or Flux is detected, NEVER run kubectl apply on application manifests.

Instead, follow this workflow:

  1. Write manifests to Git - Create the YAML files in the manifest directory
  2. Commit and push - The GitOps tool will detect changes and sync automatically
  3. Verify sync status - Use kubectl get applications -n argocd (ArgoCD) or flux get all (Flux)

For GitOps resources (ArgoCD Applications, Flux Kustomizations/HelmReleases):

  • Discover the deployment pattern by examining existing resources in the cluster
  • Add new manifests to the appropriate watched directory so GitOps syncs them automatically

For Secrets without ESO:

  • Use kubectl create secret directly (secrets cannot be stored unencrypted in Git)

Part 1: Kubernetes Exporter

Step 1: Create Port Credentials Secret

Create a Secret named port-credentials in the port-k8s-exporter namespace with keys PORT_CLIENT_ID and PORT_CLIENT_SECRET.

  • With ESO: Create an ExternalSecret referencing the available ClusterSecretStore
  • Without ESO: Create the Secret directly with kubectl create secret

Step 2: Deploy the K8s Exporter

Deploy the port-k8s-exporter Helm chart from https://port-labs.github.io/helm-charts.

Key Helm values:

  • secret.useExistingSecret: true and secret.name: port-credentials
  • overwriteConfigurationOnRestart: true (forces use of configMap config)
  • stateKey and extraEnv[].CLUSTER_NAME set to cluster identifier
  • configMap.config with resource mappings (see Step 4)

Deployment method based on discovery:

  • ArgoCD: Create ArgoCD Application manifest
  • Flux: Create HelmRepository + HelmRelease manifests
  • Neither: Run helm install then commit values to Git

Step 3: Create Blueprints in Port

Default blueprints (always created by the exporter):

  • cluster (Port concept, not a K8s resource)
  • namespace (from namespaces)
  • workload (from deployments, daemonsets, statefulsets)

Discover and recommend:

  1. Run kubectl api-resources to list all available resources
  2. Exclude resources already covered by defaults (namespaces, deployments, daemonsets, statefulsets)
  3. Present findings to the user with recommendations
  4. Let user select which additional resources to track

Create selected blueprints using Port MCP tools. All blueprints should have:

  • Relation to namespace blueprint
  • creationTimestamp property

Step 4: Configure Resource Mappings

In the Helm values configMap.config, define mappings for the resources selected in Step 3.

For nested resources (arrays inside a resource spec), use itemsToParse:

- kind: your.api/v1/yourresource
  selector:
    query: "true"
  port:
    itemsToParse: .spec.items
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл dot-ai-port-setup?

Set up Port integrations to sync Kubernetes resources and GitHub Actions to Port.io

Как установить скилл dot-ai-port-setup?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл dot-ai-port-setup запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить dot-ai-port-setup с