# getKubernetesDeployments

> Function getKubernetesDeployments in pulumi-portainer.

<!-- Generated from the pulumi-portainer SDK. -->

Function getKubernetesDeployments in pulumi-portainer.

Invoke token: `portainer:index/getKubernetesDeployments:getKubernetesDeployments`.

## Example

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

```ts
import * as portainer from "pulumi-portainer"

const result = await portainer.getKubernetesDeployments({
  environmentId: 0,
})
```

`getKubernetesDeploymentsOutput` accepts Input values and returns `Output` of the same result.

## Arguments

| Property        | Type     | Required | Description |
| --------------- | -------- | -------- | ----------- |
| `environmentId` | `number` | yes      |             |
| `fieldSelector` | `string` | no       |             |
| `id`            | `string` | no       |             |
| `labelSelector` | `string` | no       |             |
| `namespace`     | `string` | no       |             |

## Result

| Property        | Type                                   | Always present | Description |
| --------------- | -------------------------------------- | -------------- | ----------- |
| `deployments`   | `GetKubernetesDeploymentsDeployment[]` | yes            |             |
| `environmentId` | `number`                               | yes            |             |
| `fieldSelector` | `string`                               | no             |             |
| `id`            | `string`                               | yes            |             |
| `labelSelector` | `string`                               | no             |             |
| `namespace`     | `string`                               | no             |             |

## `GetKubernetesDeploymentsDeployment`

Output object `GetKubernetesDeploymentsDeployment`. Fields below belong to this object.

| Property              | Type                        | Always present | Description |
| --------------------- | --------------------------- | -------------- | ----------- |
| `availableReplicas`   | `number`                    | no             |             |
| `creationTimestamp`   | `string`                    | no             |             |
| `generation`          | `number`                    | no             |             |
| `images`              | `string[]`                  | no             |             |
| `labels`              | `{ [key: string]: string }` | no             |             |
| `name`                | `string`                    | no             |             |
| `namespace`           | `string`                    | no             |             |
| `observedGeneration`  | `number`                    | no             |             |
| `readyReplicas`       | `number`                    | no             |             |
| `replicas`            | `number`                    | no             |             |
| `unavailableReplicas` | `number`                    | no             |             |
| `updatedReplicas`     | `number`                    | no             |             |
