# How to update helm deployments

You can either upgrade the entire helm chart or choose to update individual container images based on your preference.

## Upgrading helm chart version

1. Update the helm repo

   ```bash
   helm repo update
   ```

   <figure><img src="/files/4rX3pd0igro5PYcqydAw" alt=""><figcaption></figcaption></figure>
2. Check the latest version for your deployment.

   ```bash
   helm show chart akto/akto-mini-runtime
   ```

   <figure><img src="/files/dQCNqfCZnDFSLgS3CoaG" alt=""><figcaption></figcaption></figure>
3. Upgrade the helm chart to the latest version for your deployment in your namespace.

   ```bash
   helm upgrade akto-mini-runtime akto/akto-mini-runtime -n <namespace> --version 0.1.6
   ```

   <figure><img src="/files/9FxRj8UXyqtYUT0MWaDs" alt=""><figcaption></figcaption></figure>

## Directly updating container images

1. Check the image pull policy for the deployment. To check the image pull policy run the following commands.

   ```bash
   kubectl get deployments -n dev
   kubectl get deployment akto-mini-runtime-mini-runtime -n dev -o yaml
   ```

   <figure><img src="/files/FVKhDcnp54kg1NM2DiaW" alt=""><figcaption></figcaption></figure>

   <figure><img src="/files/ryCuYuXLYsG5FlQBxtT2" alt=""><figcaption></figcaption></figure>
2. According to your image pull policy, follow ahead:
   1. **imagePullPolicy: Always** : If image pull policy is set to always, first check if the tag for the image is set to `latest`, if not then set it. Then run the rollout command. This will restart the pods in the deployment and download the latest builds.

      ```bash
      kubectl set image deployment/akto-mini-runtime-mini-runtime akto-api-security-runtime=aktosecurity/mini-runtime:latest -n dev
      kubectl rollout restart deployment akto-mini-runtime-mini-runtime -n dev
      ```

      <figure><img src="/files/So1KwW1Qq0KZRHl7Rgpc" alt=""><figcaption></figcaption></figure>

      <figure><img src="/files/5AiXi4XWtW2hj1eQYara" alt=""><figcaption></figcaption></figure>
   2. **imagePullPolicy: IfNotPresent** : If image pull policy is set to IfNotPresent, we would need to use versioned images for the modules which would contain the newer builds.

      ```bash
      kubectl set image deployment/akto-mini-runtime-mini-runtime akto-api-security-runtime=aktosecurity/mini-runtime:1.42.3_local -n dev
      ```

      <figure><img src="/files/v3DFDOme7IwDQBG24PgM" alt=""><figcaption></figcaption></figure>

## Get Support for your Akto setup

There are multiple ways to request support from Akto. We are 24X7 available on the following:

1. In-app `intercom` support. Message us with your query on intercom in Akto dashboard and someone will reply.
2. Join our [discord channel](https://www.akto.io/community) for community support.
3. Contact <support@akto.io> for email support.
4. Contact us [here](https://www.akto.io/contact-us).


---

# 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.akto.io/troubleshooting/updates.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.
