# GrpcActionV1

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/GRPCActionV1.cs)

GRPCActionV1 represents a GRPC-based action within a Kubernetes resource.

## Definition

```csharp
namespace Aspire.Hosting.Kubernetes.Resources;

public sealed class GrpcActionV1
{
    // ...
}
```

## Remarks

This action defines a GRPC operation by specifying the target service and port. It is typically used in Kubernetes probes to perform health checks and ensure the connectivity and functionality of a GRPC service within a containerized environment.

## Constructors

- [GrpcActionV1](/reference/api/csharp/aspire.hosting.kubernetes/grpcactionv1/constructors.md#constructor)

## Properties

- [Port](/reference/api/csharp/aspire.hosting.kubernetes/grpcactionv1/properties.md#port) : `int` `get; set` -- Gets or sets the port number used for the gRPC service communication.
- [Service](/reference/api/csharp/aspire.hosting.kubernetes/grpcactionv1/properties.md#service) : `string` `get; set` -- Gets or sets the name of the GRPC service to be targeted.
