Przejdź do treści
Biblioteka skilli
DevOps i chmura · Budowanie i kod

create-infrastructure

/create-infrastructure

Generuje YAML Infrastructure Definition w Harness dla celów wdrożenia, np. klastra Kubernetes, i tworzy go przez MCP.

Repozytorium
harness-skills ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
23.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 23.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Generuje YAML Infrastructure Definition w Harness dla celów wdrożenia, np. klastra Kubernetes, i tworzy go przez MCP.

Wyzwalacze z opisu

create infrastructureinfrastructure definitionk8s cluster configdeployment target
Oryginalny opis (EN)

Generate Harness Infrastructure Definition YAML for deployment targets and create via MCP. Use when user says "create infrastructure", "infrastructure definition", "k8s cluster config", "deployment target", or wants to configure where workloads run.

Jak działa

  1. Instructions
  2. Infrastructure Types
  3. Creating via MCP
  4. Examples
  5. Performance Notes
  6. Troubleshooting
Sekcje z nagłówków SKILL.md, w oryginale · 180 linii, 472 słów
Podgląd SKILL.md
---
name: create-infrastructure
description: Generate Harness Infrastructure Definition YAML for deployment targets and create via MCP. Use when user says "create infrastructure", "infrastructure definition", "k8s cluster config", "deployment target", or wants to configure where workloads run.
metadata:
  author: Harness
  version: 2.0.0
  mcp-server: harness-mcp-v2
  summary: Define infrastructure (K8s, ECS, Serverless)
license: Apache-2.0
compatibility: Requires Harness MCP v2 server (harness-mcp-v2)
---

# Create Infrastructure

Generate Harness Infrastructure Definition YAML and push via MCP.

## Instructions

1. **Identify infrastructure type** - KubernetesDirect, KubernetesGcp (GKE), KubernetesAzure (AKS), ECS, or ServerlessAwsLambda
2. **Ensure prerequisites exist** - The environment and cloud/cluster connector must be created first
3. **Generate YAML** using the templates below, referencing the correct connector and environment
4. **Create via MCP** using `harness_create` with resource_type `infrastructure`

## Infrastructure Types

### KubernetesDirect
```yaml
infrastructureDefinition:
  name: K8s Production
  identifier: k8s_prod
  orgIdentifier: default
  projectIdentifier: my_project
  environmentRef: prod
  deploymentType: Kubernetes
  type: KubernetesDirect
  spec:
    connectorRef: k8s_connector
    namespace: my-app-prod
    releaseName: release-<+INFRA_KEY_SHORT_ID>
  allowSimultaneousDeployments: false
```

### KubernetesGcp (GKE)
```yaml
infrastructureDefinition:
  name: GKE Cluster
  identifier: gke_prod
  environmentRef: prod
  deploymentType: Kubernetes
  type: KubernetesGcp
  spec:
    connectorRef: gcp_connector
    cluster: my-gke-cluster
    namespace: my-app
    releaseName: release-<+INFRA_KEY_SHORT_ID>
```

### KubernetesAzure (AKS)
```yaml
infrastructureDefinition:
  name: AKS Cluster
  identifier: aks_prod
  environmentRef: prod
  deploymentType: Kubernetes
  type: KubernetesAzure
  spec:
    connectorRef: azure_connector
    subscriptionId: <subscription_id>
    resourceGroup: my-rg
    cluster: my-aks-cluster
    namespace: my-app
    releaseName: release-<+INFRA_KEY_SHORT_ID>
```

### ECS
```yaml
infrastructureDefinition:
  name: ECS Fargate
  identifier: ecs_prod
  environmentRef: prod
  deploymentType: ECS
  type: ECS
  spec:
    connectorRef: aws_connector
    region: us-east-1
    cluster: my-ecs-cluster
```

### ServerlessAwsLambda
```yaml
infrastructureDefinition:
  name: Lambda
  identifier: lambda_prod
  environmentRef: prod
  deploymentType: ServerlessAwsLambda
  type: ServerlessAwsLambda
  spec:
    connectorRef: aws_connector
    region: us-east-1
    stage: prod
```

### AzureWebApp
```yaml
infrastructureDefinition:
  name: Azure Web App
  identifier: azure_webapp_prod
  environmentRef: prod
  deploymentType: AzureWebApp
  type: AzureWebApp
  spec:
    connectorRef: azure_connector
    subscriptionId: <subscription_id>
    resourceGroup: my-rg
```

### Asg (Auto Scaling Group)
```yaml
infrastructureDefinition:
  name: ASG Production
  identifier: asg_prod
  environmentRef: prod
  deploymentType: Asg
  type: Asg
  spec:
    connectorRef: aws_connector
    region: us-east-1
```

### GoogleCloudFunctions
```yaml
infrastructureDefinition:
  name: Cloud Functions
  identifier: gcf_prod
  environmentRef: prod
  deploymentType: GoogleCloudFunctions
  type: GoogleCloudFunctions
  spec:
    connectorRef: gcp_connector
    region: us-central1
    project: my-gcp-project
```

### Pdc (Physical Data Center)
```yaml
infrastructureDefinition:
  name: On-Prem Servers
  identifier: pdc_prod
  environmentRef: prod
  deploymentType: Ssh
  type: Pdc
  spec:
    connectorRef: pdc_connector
    hosts:
      - host1.example.com
      - host2.example.com
```

## Creating via MCP

```
Call MCP tool: harness_create
Parameters:
  resource_type: "infrastructure"
  org_id: "<organization>"
  project_id: "<project>"
  body: <infrastructure YAML>
```

## Examples

- "Create a K8s infrastructure for prod" - KubernetesDirect with prod namespace
- "Set up GKE infrastructure" - KubernetesGcp with GCP connector
- "Create ECS Fargate infrastructure" - ECS type with AWS connector
- "Create Azure Web App infrastructure" - AzureWebApp type with subscription and resource group
- "Set up on-prem infrastructure" - Pdc type with host list for SSH deployments

## Performance Notes

- Verify the referenced connector and environment exist before creating the infrastructure definition.
- Ensure namespace and cluster names are accurate — typos will cause deployment failures.
- Use `<+INFRA_KEY_SHORT_ID>` in releaseName to guarantee uniqueness across deployments.

## Troubleshooting

- `CONNECTOR_NOT_FOUND` - Create the cloud/K8s connector first
- `ENVIRONMENT_NOT_FOUND` - Create the environment first
- `releaseName` must be unique per deployment; use `<+INFRA_KEY_SHORT_ID>`
- `deploymentType` must match the service definition's type (e.g., Kubernetes service needs KubernetesDirect infra)
- `allowSimultaneousDeployments: false` is the default; set to `true` only if concurrent deploys are safe

Wersje

W bazie nie ma innych skilli o nazwie create-infrastructure.

Migawka bazy z 13.11.2026 · wersja paczki c46508805d7c (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100create-service
    Generuje YAML usługi Harness dla wdrożeń Kubernetes, Helm, ECS, Serverless, SSH i WinRm, z artefaktami z Docker Hub, ECR i S3, i tworzy ją przez MCP.
  • 100create-trigger
    Generuje YAML wyzwalacza Harness do automatycznego uruchamiania pipeline'ów: webhook, cron, zaplanowane buildy i wyzwalacze artefaktów, i tworzy go przez MCP.
  • 90infrastructure
    Stosuje konwencje Terraform, Kubernetes i Helm przy edycji modułów, manifestów i wykresów wdrożeniowych.
  • 100deploy
    Weryfikuje wdrożenie infrastruktury po wypchnięciu zmian konfiguracji do Kubernetes, Helm, Hydra i Kratos oraz sprawdza status rolloutu.
  • 100infrastructure-engineer
    Projektuje i wdraża infrastrukturę chmurową: architekturę, IaC (Terraform, Pulumi), potoki CI/CD, Kubernetes, sieci, obserwowalność i utwardzanie bezpieczeństwa.
  • 100arn-infra-pipeline
    Tworzy pipeline CI/CD dla wdrożeń infrastruktury w GitHub Actions, GitLab CI lub Bitbucket Pipelines.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.