---
title: Charmhub | Deploy Etcd using Charmhub - The Open Operator Collection
description: Deploy the latest version of Etcd on any cloud.
url: https://charmhub.io/etcd/actions
---

# Etcd

[Canonical Kubernetes](https://charmhub.io/publisher/containers "View all packages from Canonical Kubernetes")

* [Canonical Kubernetes](https://charmhub.io/publisher/containers "View all packages from Canonical Kubernetes")
* [Cloud](https://charmhub.io/?filter=cloud)
* [Databases](https://charmhub.io/?filter=databases)

Platform:

24.04

22.04

20.04

18.04

16.04

stable cb466bf

```
juju deploy etcd
```

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

* [alarm-disarm](https://charmhub.io/etcd/actions#alarm-disarm)
* [alarm-list](https://charmhub.io/etcd/actions#alarm-list)
* [cis-benchmark](https://charmhub.io/etcd/actions#cis-benchmark)
* [compact](https://charmhub.io/etcd/actions#compact)
* [debug](https://charmhub.io/etcd/actions#debug)
* [defrag](https://charmhub.io/etcd/actions#defrag)
* [health](https://charmhub.io/etcd/actions#health)
* [package-client-credentials](https://charmhub.io/etcd/actions#package-client-credentials)
* [restore](https://charmhub.io/etcd/actions#restore)
* [snap-upgrade](https://charmhub.io/etcd/actions#snap-upgrade)
* [snapshot](https://charmhub.io/etcd/actions#snapshot)

[Learn about actions >](https://juju.is/docs/juju/action)

* alarm-disarm

  Disarm all alarms.
* alarm-list

  List all alarms.
* cis-benchmark

  Run the CIS Kubernetes Benchmark against snap-based components.

  Params

  + apply
    string

    Apply remediations to address benchmark failures. The default, 'none',
    will not attempt to fix any reported failures. Set to 'conservative'
    to resolve simple failures. Set to 'dangerous' to attempt to resolve
    all failures.

    Note: Applying any remediation may result in an unusable cluster.
  + config
    string

    Archive containing configuration files to use when running kube-bench.
    The default value is known to be compatible with snap components. When
    using a custom URL, append '#<hash\_type>=<checksum>' to verify the
    archive integrity when downloaded.
  + release
    string

    Archive containing the 'kube-bench' binary to run. The default value
    points to a stable upstream release. When using a custom URL, append
    '#<hash\_type>=<checksum>' to verify the archive integrity when
    downloaded.

    This may also be set to the special keyword 'upstream'. In this case,
    the action will compile and use a local kube-bench binary built from
    the master branch of the upstream repository:
    https://github.com/aquasecurity/kube-bench
* compact

  Compact etcd event history.

  Params

  + physical
    boolean

    Setting to True will cause the compaction process to exit only after
    all revisions have been physically removed from the database.
  + revision
    string

    Revision to compact to. Leave blank to compact to the latest revision.
* debug

  Collect debug data
* defrag

  Defragment the storage of the local etcd member.
* health

  Report the health of the cluster.
* package-client-credentials

  Generate a tarball of the client certificates to connect to the cluster
  remotely.
* restore

  Restore an etcd cluster's data from a snapshot tarball.

  Params

  + skip-backup
    boolean

    Dont backup any existing data, and skip directly to data restoration.
  + target
    string

    Path on disk to save any pre-existing data.
* snap-upgrade

  Execute a migration from the apt package to a snap package format.

  Params

  + use-resource
    boolean

    Default to using the resource (offline environments)
* snapshot

  Export and compress a backup of the data in the Etcd cluster.

  Params

  + keys-version
    string

    Version of keys to snapshoot. Allowed values 'v3' or 'v2'.
  + target
    string

    Location to save the etcd snapshot.
