---
title: Charmhub | Deploy Jenkins K8s using Charmhub - The Open Operator Collection
description: Deploy the latest version of Jenkins K8s as a Kubernetes Operator on
  any cloud.
url: https://charmhub.io/jenkins-k8s/docs/how-to-resize-jenkins-storage
---

# Jenkins K8s

[Canonical IS DevOps](https://charmhub.io/publisher/canonical-is-devops "View all packages from Canonical IS DevOps")

* [Canonical IS DevOps](https://charmhub.io/publisher/canonical-is-devops "View all packages from Canonical IS DevOps")

Platform:

stable 201

```
juju deploy jenkins-k8s
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

---

#### Contacts

* [Submit a bug](https://github.com/canonical/jenkins-k8s-operator/issues)

---

Share your thoughts on this charm with the community on discourse.

[Join the discussion](https://discourse.charmhub.io/)

# How to resize the Jenkins home storage volume

The default size of the jenkins-home storage volume for a fresh installation is 1GB. While this works for most scenarios, operators might need to have more storage for installing plugins, storing artifacts, and running builds/checking out SCMs on the built-in node.

A low disk-space on the built-in node will cause the node to go offline, blocking Jenkins from running jobs.

### [Create a backup of the current Jenkins charm instance](https://charmhub.io/jenkins-k8s/docs/how-to-resize-jenkins-storage#p-31260-create-a-backup-of-the-current-jenkins-charm-instance)

Follow the “Create a backup” section of [the charm’s backup and restore documentation](https://charmhub.io/jenkins-k8s/docs/how-to-backup-and-restore-jenkins) to create an archive of the Jenkins data on your host system

### [Deploy the new Jenkins charm instance, specifying the size of the storage volume](https://charmhub.io/jenkins-k8s/docs/how-to-resize-jenkins-storage#p-31260-deploy-the-new-jenkins-charm-instance-specifying-the-size-of-the-storage-volume)

Create a new application with the `--storage` flag. In this example we’ll deploy the charm with a storage of 10GB:

```
juju deploy jenkins-k8s-new --storage jenkins-home=10GB
```

### [Restore the created backup onto the newly created Jenkins charm instance](https://charmhub.io/jenkins-k8s/docs/how-to-resize-jenkins-storage#p-31260-restore-the-created-backup-onto-the-newly-created-jenkins-charm-instance)

Follow the “Restore the backup on a new (or existing) charm instance” section of [the charm’s backup and restore documentation](https://charmhub.io/jenkins-k8s/docs/how-to-backup-and-restore-jenkins) to create an archive of the Jenkins data on your host system. Remember to update the `JENKINS_UNIT` environment variable. For our example we have `JENKINS_UNIT=jenkins-k8s-new/0`.

---
