liveBook · Manning

Resource template

As explained in Distributed Machine Learning Patterns

A resource template is an Argo Workflows template that submits a Kubernetes resource as part of workflow execution.

A resource template lets an Argo Workflows workflow submit a Kubernetes resource during execution. Its manifest specifies the resource kind, metadata, data, and action, such as creating a ConfigMap. section 8.4.1

Use the template to connect workflow execution with Kubernetes-native objects:

  • Submit the workflow to the cluster, then inspect workflow status and the resulting Kubernetes objects or logs. section 8.4.1

Creating a ConfigMap

A workflow resource template uses action: create and embeds a v1 ConfigMap manifest named cm-example with the key-value pair some: value. Argo submits this object to Kubernetes as part of the workflow.

How Distributed Machine Learning Patterns covers it

How deep it goes
Defines the action and manifest, then demonstrates submission and inspection without detailing controller internals.
Examples
Creates a Kubernetes ConfigMap named cm-example containing a simple key-value pair.
What it assumes
Assumes a Kubernetes cluster, Argo Workflows installation, and workflow service-account configuration.
What you can do after
Operate Argo Workflows to create a Kubernetes resource from an embedded manifest.
How it connects
Connects workflow templates with Kubernetes resources, ConfigMaps, Pods, and workflow submission.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Distributed Machine Learning Patterns. The section links point to the parts of the book it draws on.