Workloads
A Workload is a self-service feature for creating Kubernetes resources using the Helm charts available to the team from the catalog.
Authentication and authorization labels
Platform workloads that participate in platform-managed access control use two pod labels together:
otomi.io/auth: platformselects pods targeted by the IstioRequestAuthenticationresource that validates JWTs against Keycloak.otomi.io/auth-policy: <tier>selects pods targeted by an IstioAuthorizationPolicywith actionALLOW. The label value names the access tier for the workload, such asplatform,platform-admin,platform-team, ormonitoring-<teamId>.
The otomi.io/auth-policy value describes who may access the workload, not the identity of the workload itself. Multiple workloads can share the same tier label so they can reuse the same AuthorizationPolicy.
Gateway-level authentication policies use targetRefs on the Gateway. Tier-based authorization uses pod label selectors so one policy can target the intended workloads across namespaces.
View workloads
To view a list of workloads belonging to your team, click on Workloads in the main menu of the App Platform Console while in the Team view. The resulting table lists each workload alongside the following details:
| Property | Description |
|---|---|
| Name | The name of the workload |
| Argocd | Link to the Argo CD application in the Argo CD UI |
| Image update strategy | The configured update strategy for the workload |
| Status | The status of the workload. Click on the Argo CD application link to see more status details |
Create a workload
Before creating a workload from the developer catalog, we'll need the repository and the tag of the image you would like to use.
-
Go to the list of Builds and add the repository of the build to use to your clipboard. Remember the tag.
-
Go to Workloads in the left menu and click on Create Workload.
-
Select a template from the catalog to use.
-
Add a
Namefor the workload. -
(Optional) Configure the
Auto image updater. Default isDisabled.The Auto Image Updater will (based on the update strategy) automatically update the container images of a workload.
Select the update strategy. Choose between:
-
Digest: Inspects a single tag in the registry for changes, and updates the image on any change to the previous state. Requires to provide a
repositoryand atag. -
Semver: Update based on semantic versions. Example:
v1.0would allow the image to be updated to any patch version within the 1.0 minor release.
There are 2 other properties available:
imageParameterandtagParameter. Change the parameters in case your Helm application contains more than one image in the manifests or uses another parameters to define which image to render in the manifests. -
-
In the workload
values, change the following parameters:image: repository: <paste from clipboard> tag: latest -
Click Submit.
After a few minutes, all the needed Argo CD resources (one applicationSet per Workload) to deploy your workload will be created. In the workloads list, click on the Application link of your workload to see the status of your workload.
The values of a workload can be changed at any time. Changes will automatically be deployed.
Updated 18 days ago
