> For the complete CircleCI developer hub index, see [llms.txt](https://circleci.com/developer/llms.txt)

# aztechian/kubectl

Manages various version of kubectl to auto-install in your CI environment


## Commands

### apply

Apply a file to your cluster with kubectl


| Parameter | Type | Default | Description |
|---|---|---|---|
| `context` | string |  | kubectl configuration context to use |
| `file` | string | deploy | File or directory to be deployed |
| `namespace` | string | default | The namespace where resources should be deployed |

### install

Install the desired version of kubectl executable in your job


| Parameter | Type | Default | Description |
|---|---|---|---|
| `version` | string | 1.19.9 | Full version number of kubectl to install |

## Jobs

### apply

Applies a file via kubectl


| Parameter | Type | Default | Description |
|---|---|---|---|
| `file` | string | deploy | Deploys a file via kubectl |
| `kubecontext` | string |  | Kubeconfig context to use |
| `namespace` | string | default | Namespace to deploy into |

## Executors

### default

This is a sample executor using Docker and Node.


| Parameter | Type | Default | Description |
|---|---|---|---|
| `tag` | string | lts | Pick a specific circleci/node image variant: https://hub.docker.com/r/cimg/node/tags
 |

## Examples

### example

Sample example description.


```yaml
version: '2.1'
orbs:
  <orb-name>: aztechian/kubectl-orb@1.0.0
workflows:
  use-my-orb:
    jobs:
      - kubectl-orb/apply
```