# 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="https://2916937215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRc4KTKGprZI2sPWKoaLe%2Fuploads%2Fgit-blob-b78ae2c5f60df9396c803e3fe50cc43b97dd86b7%2Fupdates-6.png?alt=media" alt=""><figcaption></figcaption></figure>
2. Check the latest version for your deployment.

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

   <figure><img src="https://2916937215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRc4KTKGprZI2sPWKoaLe%2Fuploads%2Fgit-blob-d425cd952ce1d28cf3fd3ce43b11f94232244033%2Fupdates-7.png?alt=media" 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="https://2916937215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRc4KTKGprZI2sPWKoaLe%2Fuploads%2Fgit-blob-a6e0babbb8e561de98d6b0761a62bbb423a9c09c%2Fupdates-8.png?alt=media" 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="https://2916937215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRc4KTKGprZI2sPWKoaLe%2Fuploads%2Fgit-blob-457a90837b759c548b1a6d08ee70680e0dd452ba%2Fupdates-1.png?alt=media" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://2916937215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRc4KTKGprZI2sPWKoaLe%2Fuploads%2Fgit-blob-4b963c815a0629d8dbac7ebe9a491268f750ab84%2Fupdates-2.png?alt=media" 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="https://2916937215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRc4KTKGprZI2sPWKoaLe%2Fuploads%2Fgit-blob-d1267960b0031e2744ce03b1998b4ef6a2d55740%2Fupdates-3.png?alt=media" alt=""><figcaption></figcaption></figure>

      <figure><img src="https://2916937215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRc4KTKGprZI2sPWKoaLe%2Fuploads%2Fgit-blob-7110c6a86b11f59b5507d34059697ccfbe0e599e%2Fupdates-4.png?alt=media" 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="https://2916937215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRc4KTKGprZI2sPWKoaLe%2Fuploads%2Fgit-blob-71e817b4b39b37da27c5ab6a5172b4754da6a1d0%2Fupdates-5.png?alt=media" 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).
