# cldkctl edit

The edit command modifies an existing Kubernetes resource directly from the command line. This allows users to update configuration fields of pods, services, deployments, daemonsets, and other supported resources. When executed, this command typically opens the resource manifest in the default text editor (for example, vim), allowing live editing and saving changes back to the cluster.

## Usage

```
cldkctl edit [flags]
```

```
cldkctl edit [subcommand] [flags]

```

## Available command

<table><thead><tr><th width="248.6666259765625">Command</th><th>Description</th></tr></thead><tbody><tr><td><code>clusterrole</code></td><td>Modify an existing ClusterRole</td></tr><tr><td><code>clusterrolebinding</code></td><td>Modify an existing ClusterRoleBinding</td></tr><tr><td><code>configmap</code></td><td>Modify a ConfigMap’s configuration</td></tr><tr><td><code>daemonset</code></td><td>Modify a DaemonSet’s configuration</td></tr><tr><td><code>datavolume</code></td><td>Modify a Data Volume’s configuration</td></tr><tr><td><code>deployment</code></td><td>Modify a Deployment’s configuration</td></tr><tr><td><code>ingress</code></td><td>Modify an Ingress resource’s configuration</td></tr><tr><td><code>ingressclass</code></td><td>Modify an Ingress Class’s configuration</td></tr><tr><td><code>persistentvolume</code></td><td>Modify a Persistent Volume’s configuration</td></tr><tr><td><code>persistentvolumeclaim</code></td><td>Modify a Persistent Volume Claim’s configuration</td></tr><tr><td><code>pod</code></td><td>Modify a Pod’s configuration</td></tr><tr><td><code>role</code></td><td>Modify an existing Role’s configuration</td></tr><tr><td><code>secret</code></td><td>Modify a Secret’s data</td></tr><tr><td><code>service</code></td><td>Modify a Service’s configuration</td></tr><tr><td><code>serviceaccount</code></td><td>Modify a Service Account’s configuration</td></tr><tr><td><code>statefulset</code></td><td>Modify a StatefulSet’s configuration</td></tr></tbody></table>

## Flags

{% hint style="info" %}
This command supports [global flags.](/cloudeka-api-list/global-flags.md) Refer to the Global Flags section for details.
{% endhint %}

| Column                 | Description                                        |
| ---------------------- | -------------------------------------------------- |
| -h, --help             | Help for the edit command.                         |
| -n, --namespace string | Specify the Kubernetes namespace for the resource. |
| -p, --project string   | Specify the project ID.                            |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-edit.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
