> For the complete documentation index, see [llms.txt](https://docs.garden.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.garden.io/bonsai-0.13/k8s-plugins/actions/run-test/kubernetes-pod.md).

# Kubernetes Pod

For Run and Test actions, either the `kubernetes-pod` or [`kubernetes-exec`](/bonsai-0.13/k8s-plugins/actions/run-test/kubernetes-exec.md) action types can be used.

[`kubernetes-pod` Run](/bonsai-0.13/reference/action-types/run/kubernetes-pod.md) and [`kubernetes-pod` test](/bonsai-0.13/reference/action-types/test/kubernetes-pod.md) will create a fresh Kubernetes workload and run your command in it. These actions are cached. This means that Garden will not rerun them if the version of the action hasn't changed. If a remote Kubernetes cluster is used, test results are stored there which allows to share test results between the team or CI runs to decrease the number or re-runs.

`kubernetes-pod` actions don't have to depend on the deploy actions. The manifests are gathered from the kubernetes manifests and deployed to the cluster.

```yaml
kind: Test
name: vote-integ-pod
type: kubernetes-pod
dependencies:
  - deploy.api
variables:
  hostname: vote.${var.baseHostname}
timeout: 60
spec:
  resource:
    kind: Deployment
    name: vote-integ-pod
  command: [/bin/sh, -c, "npm run test:integ"]
  values:
...
```
