Configure Palette Agent Version
In connected clusters, the Palette agent gets upgraded automatically with Palette upgrades, unless you explicitly pause upgrades. In airgap clusters, this does not happen automatically. When you want to upgrade the agent version, you can include the new agent version in a new cluster profile, and upgrade the cluster using the new profile.
This page teaches you how to identify the matching agent version of a Palette instance, as well as how to specify a Palette agent package in the Operating System (OS) pack of a cluster profile. This is useful for upgrading the Palette agent on an airgap Edge cluster and for launching new connected clusters while using an older version of the Palette agent.
Prerequisites
-
An active Edge cluster.
-
Linux Machine (Physical or VM) with an AMD64 architecture.
-
Palette API key. Refer to the User Authentication resource to learn how to create a Palette API key.
-
An Edge type cluster profile. Refer to Create Edge Native Cluster Profile guide to learn how to create an Edge Native cluster profile. You may also have other add-on profiles that you wish to attach to your cluster.
-
The
pack.content.images
parameter in your profiles contains the exact location of container images to be downloaded.
Procedure
Identify the Target Agent Version
If you already know the agent version you want to use for your cluster, you can skip this step.
-
The target agent version depends on the Palette instance you use to build content bundles for your Edge cluster. Use the following request to identify the target version. If you are using self-hosted Palette or VerteX, replace
api.spectrocloud.com
with the fully qualified domain name of your API endpoints. Replace theapiKey
field with your API key.curl --location 'https://api.spectrocloud.com/v1/services/stylus/version' \
--header 'apiKey: ******'You can expect a response similar to the following. In the following response, the target agent version is 4.5.5.
{
"metadata": {
"creationTimestamp": "0001-01-01T00:00:00.000Z",
"deletionTimestamp": "0001-01-01T00:00:00.000Z",
"lastModifiedTimestamp": "0001-01-01T00:00:00.000Z"
},
"spec": {
"latestVersion": {
"content": "name: stylus\nversion: 4.5.5\nbuildId: \"20241025\"\nmajorVersion: \"4.5\"\napplyFilepath: /roar/stylus/4.5/4.5.5/apply/manifest.yaml\ndeleteFilepath: \"\"\n",
"name": "manifest.yaml",
"path": "nickfury/4.5/4.5.5/apply/services.yaml"
},
"name": "stylus"
}
}
Upgrade Palette Agent Version
-
Log in to Palette.
-
From the left Main Menu, select Profiles. Select the profile you want your cluster to upgrade to.
-
Create a new version of the profile. For more information, refer to Update a Cluster.
-
In the OS layer of the profile, include the following lines. Replace
versionNumber
with your target agent version number you obtained in the first step or any other version number you want to use. Replaceamd64
witharm64
if your hardware usesarm64
architecture.pack:
content:
images:
- image: "{{.spectro.pack.edge-native-byoi.options.system.uri}}"
- image: "container://us-docker.pkg.dev/palette-images/edge/stylus-linux-amd64:v<versionNumber>"
options:
system.uri: ttl.sh/ubuntu:k3s-1.29.5-v4.5.8-palette-demo
stylusPackage: container://us-docker.pkg.dev/palette-images/edge/stylus-linux-amd64:v<versionNumber>infoFollowing the EdgeForge process, it's likely that your provider image has a
peVersion
parameter. You can use a different version value in thepeVersion
parameter from the version you use forstylusPackage
. -
Click Save Changes to publish the new version.
- Airgap
- Connected
-
Follow Build Content Bundles and Export Cluster Definition to build a content bundle using your new cluster profile and export the cluster definition.
-
Upload the content bundle to your cluster through Local UI. For more information, refer to Upload Content Bundle.
-
Update your cluster using the new cluster definition. For more information, refer to Update Local Cluster.
- Refer to Update a Cluster to update your cluster with the new profile version.
Validate
- Airgap
- Connected
-
Log in to Local UI. Refer to Access Local UI Console for guidance.
-
In the Edge Host page, confirm that the agent version has been updated in the Overview table.
-
Log in to Palette.
-
From the left Main Menu, click Clusters.
-
Select your cluster.
-
In the Cluster Details page, ensure that the Agent version field is the same as you specified.