---
title: Charmhub | Deploy MAAS Site Manager Operator for Kubernetes using Charmhub
  - The Open Operator Collection
description: Deploy the latest version of MAAS Site Manager Operator for Kubernetes
  as a Kubernetes Operator on any cloud.
url: https://charmhub.io/maas-site-manager-k8s/docs/t-deploy-postgresql
---

# MAAS Site Manager Operator for Kubernetes

[MAAS Maintainers](https://charmhub.io/publisher/maas-maintainers "View all packages from MAAS Maintainers")

* [MAAS Maintainers](https://charmhub.io/publisher/maas-maintainers "View all packages from MAAS Maintainers")

Platform:

1.1/beta 53

```
juju deploy maas-site-manager-k8s --channel 1.1/beta
```

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

---

#### Relevant links

* [Homepage](https://launchpad.net/maas-site-manager)

---

#### Contacts

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

---

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

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

# Deploy PostgreSQL

In this section, we’ll deploy PostgreSQL and create a Juju offer.

Before starting, make sure you are working in the correct Juju model:

```
juju switch msm
```

## [Deploy PostgreSQL](https://charmhub.io/maas-site-manager-k8s/docs/t-deploy-postgresql#p-34224-deploy-postgresql)

To deploy PostgreSQL, run the following:

```
juju deploy postgresql-k8s --channel 14/stable --trust
```

Then, run `juju status --watch 5s` and wait for the `postgresql-k8s/0` unit to report as `waiting/idle`.

**Note**: While waiting, `postgresql-k8s` may enter a blocked state, but will return to `waiting/idle` after some time

## [Create a Juju offer](https://charmhub.io/maas-site-manager-k8s/docs/t-deploy-postgresql#p-34224-create-a-juju-offer)

Next, create a Juju offer for Postgresql:

```
juju offer postgresql-k8s:database pgsql
```

**Next Step**: [Deploy Object Storage and S3 Integrator](https://charmhub.io/maas-site-manager-k8s/docs/t-deploy-s3-integrator)

---
