Skip to content

Install and Deploy UDS (15m)

Getting Started with UDS Bundles

UDS Core provides published bundles that serve multiple purposes: you can utilize them for experimenting with UDS Core or for UDS Package development when you only require specific components of UDS Core. These bundles leverage UDS K3d to establish a local k3d cluster.

UDS Bundles deployed for development and testing purposes are comprised of a shared configuration that equips users with essential tools, emulating a development environment for convenience. If deploying to a production environment, users have the ability to modify variables and configurations to best fit specific mission needs by creating their own bundle.

For additional information on UDS Bundles, please see the UDS Bundles page.

Deploy UDS Core

In this section, you will deploy UDS Core for the first time.

Step 1: Install the UDS CLI

The very first step is installation of the UDS CLI. Having installed Homebrew previously, you can do so with the following command:

Terminal window
brew tap defenseunicorns/tap && brew install uds

Step 2: Deploy the UDS Bundle

The UDS Bundle being deployed in this example is the k3d-core-demo bundle, which creates a local k3d cluster with UDS Core installed.

To deploy this bundle, run the uds deploy k3d-core-demo:X.X.X command in the terminal, replacing the “X” with the current release. For example, if the current release is 0.26.0:

Terminal window
uds deploy k3d-core-demo:0.26.0
# deploy this bundle?
y

Optional:

Use the following command to visualize resources in the cluster via k9s:

Terminal window
uds zarf tools monitor

Step 3: Clean Up

Use the following command to tear down the k3d cluster:

Terminal window
k3d cluster delete uds

If you opted to use Colima, use the following command to tear down the virtual machine that the cluster was running on:

Terminal window
colima delete -f

UDS Bundle Development

In addition to the demo bundle, there is also a k3d-slim-dev bundle designed specifically for working with UDS Core with only Istio, Keycloak, and Pepr installed. To use it, execute the following command:

Terminal window
uds deploy k3d-core-slim-dev:X.X.X

Developing UDS Core

UDS Core development leverages the uds zarf dev deploy command. To simplify the setup process, a dedicated UDS Task is available. Please ensure you have NodeJS version 20 or later installed before proceeding.

Below is an example of the workflow developing the metrics-server package:

Terminal window
# Create the dev environment
uds run dev-setup
# If developing the Pepr module:
npx pepr dev
# If not developing the Pepr module (can be run multiple times):
npx pepr deploy
# Deploy the package (can be run multiple times)
uds run dev-deploy --set PKG=metrics-server

Testing UDS Core

You can perform a complete test of UDS Core by running the following command:

Terminal window
uds run test-uds-core

This command initiates the creation of a local k3d cluster, installs UDS Core, and executes a set of tests identical to those performed in CI. If you wish to run tests targeting a specific package, you can utilize the PKG environment variable.

The example below runs tests against the metrics-server package:

Terminal window
UDS_PKG=metrics-server uds run test-single-package

Feedback

Was this page helpful?
Yes
No