Workload Details Screen

Understand the Workload Details Screen in Humanitec.

Overview

The Workload Details Screen opens when you click on a Workload in the App Details Screen. The screen looks different depending on whether you have a Draft, Active Deployment or Past Deployment selected.

There are some common elements across these three modes.

Common elements of Workload Detail Screen
  1. The App that the Workload belongs to.

  2. The Environment that the Workload is in.

  3. The Deployment or Draft that the screen represents. Clicking it allows quick switching between different Deployments and Drafts.

  4. The Workload being shown in the screen. Clicking it allows quick switching between different Workloads.

  5. The Container tabs allows switching between containers in the Workload.

  6. The Close button returns you to the App Details Screen.

  7. The Workload panel shows things at the Workload level.

  8. The Container panel shows things that are container specific. The content here is controlled by the Container tabs.

The content of the Workload and Container panels changes depending on whether a Draft, Active Deployment or Past Deployment is selected.

Draft

If a Draft is selected in the Draft & Deployment list when you click on a Workload, the elements in the Workflow Details screen will be editable. Edits you make will be added to the active Draft.

Workload Panel

There are 3 editable sections in the Workload Panel.

  1. Resource dependencies provide a way of declaring a dependency on a resource running outside the cluster. See Add Databases and other External Resources for more details.

  2. Ingress allows to define routing rules for DNS resources defined in the Resource dependencies section above.

  3. Service account allows for a specific service account to be used to run the workload in the cluster. The service account name must exist at deployment time.

Container Panel

There are 4 editable sections in the Container Panel. Containers can be added and removed via the Container Tabs.

  1. A Container can be removed from the workload via the menu on the Container tab.

  2. A new Container can be added via the âž•at the end of the row of Container tabs.

  3. The Image version can be changed via the dropdown.

  4. Environment Variables can be defined for the container. See Working with Environment Variables for more details.

  5. Files can be mounted within a container. See Working with Files for more details.

  6. Container configuration allows things like resource limits, liveness probes and overrides for the container command to be specified.

Active Deployment

The Active Deployment version of the Workload Details screen is essentially a read-only version of the Draft Workload Details screen above. There are 2 additions that make it relevant to Active Deployments.

2 additional sections compared in Active Deployments mode
  1. The Replicas section allows the number of replicas of the workload to be changed and shows errors reported by Kubernetes about the workload.

  2. The Container logs section shows live logs from the containers in the workload.

Past Deployment

The Past Deployment version of the Workload Detail Screen is the same as the Active Deployment version except that the Replicas section is no longer present. As logs are periodically purged, only recent deployments will have logs visible.