# KubernetesVolume

> Resource KubernetesVolume in pulumi-portainer.

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

Resource KubernetesVolume in pulumi-portainer.

Pulumi type: `portainer:index/kubernetesVolume:KubernetesVolume`.

`name` is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

## 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 resource = new portainer.KubernetesVolume("kubernetesVolume", {
  endpointId: 0,
  manifest: "<manifest>",
  type: "<type>",
})
```

## Arguments

| Property             | Type     | Required | Description                                                                                                 |
| -------------------- | -------- | -------- | ----------------------------------------------------------------------------------------------------------- |
| `endpointId`         | `number` | yes      | Identifier of the Portainer Kubernetes endpoint where the volume resource is managed.                       |
| `kubernetesVolumeId` | `string` | no       |                                                                                                             |
| `manifest`           | `string` | yes      | YAML or JSON manifest describing the Kubernetes volume resource to deploy.                                  |
| `namespace`          | `string` | no       | Kubernetes namespace for namespaced volume resources (required for `persistent-volume-claim`).              |
| `type`               | `string` | yes      | Type of Kubernetes volume resource: `persistent-volume-claim`, `persistent-volume`, or `volume-attachment`. |

## Outputs

Computed outputs are produced by the provider. They are not constructor arguments.

| Property             | Type     | Computed | Description                                                                                                 |
| -------------------- | -------- | -------- | ----------------------------------------------------------------------------------------------------------- |
| `endpointId`         | `number` | no       | Identifier of the Portainer Kubernetes endpoint where the volume resource is managed.                       |
| `kubernetesVolumeId` | `string` | no       |                                                                                                             |
| `manifest`           | `string` | no       | YAML or JSON manifest describing the Kubernetes volume resource to deploy.                                  |
| `namespace`          | `string` | no       | Kubernetes namespace for namespaced volume resources (required for `persistent-volume-claim`).              |
| `type`               | `string` | no       | Type of Kubernetes volume resource: `persistent-volume-claim`, `persistent-volume`, or `volume-attachment`. |
