Skip to main content
Version: v3.9.0

YAML uploader

The dropzone is how you create and update most resources. It deploys the file. It does not open a preview.

You will find Drag YAML here or upload on the resource lists: Edgelet nodes, all four workload lists, every Config page except Console Config, Services, Access Control, NATS accounts, and NATS users. Operators has the dropzone without a table. Overview, the map, Mesh Graph, Events, Users, Groups, and My Account do not.

Dropzone

Adding a file​

  • Drop one file on the dashed box, or click the box and pick a file.
  • The name must end in .yaml or .yml. Anything else raises Only YAML files are allowed.
  • If you drop several files, the console takes the first one.
  • A multi-document file is one file with several YAML documents separated by ---. That is the way to deploy a set of resources together.

Upload accepts either API group. When the console generates YAML, it writes datasance.com/v3. Importers accept either group.

Field lists for each kind stay in Get started and Learn. This page only says which kinds the dropzone accepts.

What the file may contain​

Each document needs kind. These kinds are accepted:

KindWhat it becomes
AgentAn Edgelet node
SecretA secret
CertificateAuthorityA certificate authority
CertificateA certificate
ConfigMapA config map
VolumeMountA volume mount
RoleA role
RoleBindingA role binding
ServiceAccountA service account
NatsAccountRuleA NATS account rule
NatsUserRuleA NATS user rule
RegistryA registry
ModelAn AI model catalog entry
KnowledgeAn AI knowledge catalog entry
RuntimeClassA runtime class
CatalogItemA catalog microservice
ApplicationTemplateAn application template
MicroserviceTemplateA microservice template
ApplicationAn application, including its microservices when they are inline
MicroserviceOne microservice
ServiceA network service

A document with a missing or unknown kind is skipped and reported. The rest of the file still deploys.

Where those objects are declared:

Order inside one file​

Before anything is sent, documents are ordered so dependencies exist first:

  1. Agent
  2. Secret
  3. CertificateAuthority
  4. Certificate
  5. ConfigMap
  6. VolumeMount
  7. Role
  8. RoleBinding
  9. ServiceAccount
  10. NatsAccountRule
  11. NatsUserRule
  12. Registry
  13. Model
  14. Knowledge
  15. RuntimeClass
  16. CatalogItem
  17. ApplicationTemplate
  18. MicroserviceTemplate
  19. Application
  20. Microservice
  21. Service

You can write the file in any order. The uploader sorts it.

What happens after you drop the file​

There is no review step. The console parses the file, then creates or updates each resource.

  1. Parse errors appear as error toasts, one per problem.
  2. If nothing in the file is valid, the toast is No valid resources found in YAML file.
  3. Each valid resource is checked. If it already exists, the console updates it. If it does not, the console creates it.
  4. Each resource gets its own toast. A failure names the kind and the identifier.
  5. A summary toast closes the upload: Successfully deployed a count of resources, or Deployed a count failed for the rest.
  6. The list you uploaded from refreshes when that kind is one it shows. Other kinds in the same file still deploy. Their pages pick them up when you open them or when their poll runs.

A few kinds have extra rules:

KindRule
Certificate, CertificateAuthorityAn existing certificate is not patched. The toast tells you to delete it and upload again.
RegistryA document with an id updates that registry. A document without an id creates one.
AgentAn existing Edgelet node is matched by name and updated.
ApplicationA new document creates the application. An existing name is updated. On System Application List, a new application is created as a system application. Saving from the pencil is narrower than upload. The editor applies application-level fields and does not push microservice changes that you typed into that same YAML.
MicroserviceCreates or updates that microservice. On a system microservice, the pencil updates the system microservice.
ServiceCreate and update both leave hub provisioning running. The service panel Sync now repeats that setup later.
ModelWhen the registry is Hugging Face, the file list is part of the spec.
KnowledgeFormat text outside the known set is stored as unknown. An empty format is omitted.

Identity users and groups are not YAML kinds. Create them from the dialogs on Identity and sign-in.

Editing YAML from a detail panel​

The dropzone is for files. The pencil on a detail panel is for one resource you are already looking at.

Edit opens a tab in the bottom drawer:

Where you clicked EditTab title
Edgelet nodeAgentConfig YAML: plus the name
ApplicationApplication YAML: plus the name
System applicationSystem Application YAML: plus the name
MicroserviceMicroservice YAML: plus the application and name
System microserviceSystem Microservice YAML: plus the application and name
Any config or access-control resourceThat resource YAML

The editor is a YAML text area. The tab title grows a * when the text differs from what was loaded. Save submits it. Parse and API errors come back as toasts. A successful save clears the dirty mark.

Application save asks you to confirm first, because that save does not apply microservice edits embedded in the application document. Upload the application file when those microservice changes should go out.

Certificates have no pencil. Replace them by deleting the certificate and uploading a new file.

Deploying a template​

Templates use Publish, not the dropzone. Publish opens a form, not the raw YAML. See Catalog and templates.

TemplateDrawer tabYou fill in
Application templateApplication Template Form: plus the nameApplication name and the template variables
Microservice templateMicroservice Template Form: plus the nameInstance name, application, Edgelet node, and the template variables

The drawer title is Editing Deploy an application from the template name Template, or Editing Deploy a microservice from the template name Template.

Variable rows:

  • An Edgelet node variable is Select an agent.
  • An application variable on a microservice template is Select an application.
  • A boolean is Select, true, or false.
  • A locked variable reads Variable plus the key is not configurable.

The form must be valid before deploy. An application template needs an application name. A microservice template needs an instance name, an application, and an Edgelet node.

Save opens Deploy plus the name. The message asks you to deploy the application or the microservice from that template. Cancel returns to the form. Deploy runs it.

Success toasts: Application deployed! or Microservice deployed!.

Uploading an ApplicationTemplate or MicroserviceTemplate document updates the template itself. It does not deploy an instance. Use Publish on the template detail panel to deploy.

Group 3See anything wrong with the document? Help us improve it!