> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nx1cloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy NexusOne

> Configure and run the core and modules tiers deployer.

NexusOne deploys across three tiers, such as core, modules, and tenant modules. This page covers
the deployment of the core and modules tiers, which you install with a Python wrapper script,
`shared_service_deployer.py`.

The Python wrapper script handles the deployment work for you. It creates Kubernetes Jobs that run
Terraform using the `nx1-deployer` image, then streams the logs back to your terminal until each
Job finishes.

## Configuration file

The configuration file is a single YAML file that you write and pass to the `shared_service_deployer.py`
Python wrapper script. The script reads the YAML file, then Terraform uses the variables.

The following is sample code that shows how to set NexusOne variables in a config file:

```yaml theme={null}
# config.yaml

# Required
domain: "example.nx1.io"
shared_services_namespace: "nx1-shared-services"

# Optional, with defaults shown
image_repo: "nx1registry-hgb9hgbwd8baguad.azurecr.io"
is_ocp: true
route_annotations:
  haproxy.router.openshift.io/timeout: "60m"
```

For the full list of variables each component accepts, refer to [Deployment variables](https://docs.nx1cloud.com/documentation/getting-started/deployment/deployment-variables.md).

## Deploy the core and modules tiers

The `shared_service_deployer.py` script runs against your Kubernetes API server using a
kubeconfig. That triggers a Job that runs the `nx1-deployer` image, which then runs Terraform.

You can run this script manually from a bastion host with cluster access, or wire it into your
CI/CD pipeline. Either way, the command itself doesn't change.

The following sample command describes how to deploy both tiers:

```bash theme={null}
./shared_service_deployer.py -c config.yaml --component all
```

## Additional resources

* For what each component does and which tier it deploys in, refer to
  [Deployment architecture](https://docs.nx1cloud.com/documentation/getting-started/deployment/deployment-architecture.md).
* For the variables that control these components, refer to
  [Deployment variables](https://docs.nx1cloud.com/documentation/getting-started/deployment/deployment-variables.md).
* For the core and modules deployer's full command reference, refer to
  [shared\_service\_deployer.py](https://docs.nx1cloud.com/cli-reference/shared-service-deployer/shared-service-deployer.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.