Skip to main content

Create a Cluster Profile

Palette offers profile-based management for Kubernetes, enabling consistency, repeatability, and operational efficiency across multiple clusters. A cluster profile allows you to customize the cluster infrastructure stack, allowing you to choose the desired Operating System (OS), Kubernetes, Container Network Interfaces (CNI), Container Storage Interfaces (CSI). You can further customize the stack with add-on application layers. For more information about cluster profile types, refer to Cluster Profiles.

In this tutorial, you create a full profile directly from the Palette dashboard. Then, you add a layer to your cluster profile by using a community pack to deploy a web application.

Prerequisites

Create a Full Cluster Profile

Log in to Palette and navigate to the left Main Menu. Select Profiles to view the cluster profile page. You can view the list of available cluster profiles. To create a cluster profile, click on Add Cluster Profile.

View of the cluster Profiles page

Follow the wizard to create a new profile.

In the Basic Information section, assign the name azure-profile, a brief profile description, select the type as Full, and assign the tag env:azure. You can leave the version empty if you want to. Just be aware that the version defaults to 1.0.0. Click on Next.

Cloud Type allows you to choose the infrastructure provider with which this cluster profile is associated. Select Azure and click on Next.

The Profile Layers step is where you specify the packs that compose the profile. There are four required infrastructure packs and several optional add-on packs you can choose from. Every pack requires you to select the Pack Type, Registry, and Pack Name.

For this tutorial, use the following packs:

Pack NameVersionLayer
ubuntu-azure LTS22.4.xOperating System
Kubernetes1.27.xKubernetes
cni-calico-azure3.26.xNetwork
Azure Disk1.28.xStorage

As you fill out the information for each layer, click on Next to proceed to the next layer.

Click on Confirm after you have completed filling out all the core layers.

Azure cluster profile overview page

The review section gives an overview of the cluster profile configuration you selected. Click on Finish Configuration to finish creating the cluster profile.

Add a Pack

Navigate to the left Main Menu and select Profiles. Select the cluster profile you created earlier.

Click on Add New Pack at the top of the page.

Select the Palette Community Registry from the Registry dropdown. Then, click on the latest Hello Universe pack with version v1.1.2.

Screenshot of hello universe pack

Once you have selected the pack, Palette will display its README, which provides you with additional guidance for usage and configuration options. The pack you added will deploy the hello-universe application.

Screenshot of pack readme

Click on Values to edit the pack manifest. Click on Presets on the right-hand side.

This pack has two configured presets:

  1. Disable Hello Universe API configures the hello-universe application as a standalone frontend application. This is the default preset selection.
  2. Enable Hello Universe API configures the hello-universe application as a three-tier application with a frontend, API server, and Postgres database.

Select the Enable Hello Universe API preset. The pack manifest changes according to this preset.

Screenshot of pack presets

The pack requires two values to be replaced for the authorization token and for the database password when using this preset. Replace these values with your own base64 encoded values. The hello-universe repository provides a token that you can use.

Click on Confirm Updates. The manifest editor closes.

Click on Confirm & Create to save the manifest. Then, click on Save Changes to save this new layer to the cluster profile.

Wrap-Up

In this tutorial, you created a cluster profile, which is a template that contains the core layers required to deploy a host cluster using Microsoft Azure. You added a community pack to your profile to deploy a custom workload.

We recommend that you continue to the Deploy a Cluster tutorial to deploy this cluster profile to a host cluster onto Azure.