How Weik.io is put together
Overview · 4:19
An integration in Weik.io is a folder of Apache Camel files, and this overview follows one from your machine through versions, environments and your own agents to the Weik.io installation they all link to. It's the first step of both paths and needs no earlier video.
This part of the video couldn't be loaded.
What it covers
- Integrations as folders of Camel files, published as versions with
weikio apply - Deployments per environment, filled in by variables and secrets and promoted without a rebuild
- Projects, member roles and grants narrowed to environments or integrations
- Your own agents and their capabilities, linked to the hub by a NATS leaf node
- The hub with its backend, the API gateway, the NATS store and the telemetry stores
- Reaching Weik.io through the admin UI and the
weikioCLI
Commands in this video
Terminal
$ weikio get agents
$ weikio init hello
$ weikio apply -f ./finance/erp-invoice-export --bump minor
$ weikio deploy finance/erp-invoice-export
$ weikio promote finance/erp-invoice-export --from devtest --to production
$ weikio status finance/erp-invoice-exportThe commands after weikio init hello work on finance/erp-invoice-export, the example integration that the drawing follows. On your own installation, use the folder that weikio init wrote and its integration name in their place.
Transcript
- 0:02This video shows how your Weik.io installation is put together.
- 0:09Each integration is a folder of Apache Camel files you write.
- 0:13Where a value changes between environments, the route uses a placeholder.
- 0:18The installation fills in the ERP's address and its API key from the environment.
- 0:28Weik.io builds each version once into a bundle:
- 0:31every file of the folder and every jar it needs.
- 0:38weikio apply publishes the folder as a new version.
- 0:43Nothing runs yet, because publishing and running are separate.
- 0:51The agent runs devtest and production copies of its integrations.
- 0:55Every write to production names the environment.
- 0:58Deploying points devtest at the new version.
- 1:01Admins set variables and secrets per environment,
- 1:04so devtest reaches a test ERP and production reaches the real one.
- 1:10Promote copies the deployment to production, so nothing is built again.
- 1:18A project groups related integrations, which share variables, secrets and kamelets.
- 1:28Access is granted on a project: a role,
- 1:31narrowed to certain environments or integrations when needed.
- 1:36The command under the dialog does the same grant from a terminal.
- 1:43Agents run integrations, one Java process per running integration.
- 1:49Admins give agents capabilities like os and region, plus allowed projects.
- 1:54weikio get agents lists each agent with its status, capabilities and projects.
- 2:01Every agent that matches the environment and project runs a copy.
- 2:10Beside each agent runs a NATS leaf node, the site's link to Weik.io.
- 2:15Two flows leave the site, both outbound on port 443: the leaf node's wss link,
- 2:22and https carrying the logs, metrics and traces of the Camel processes and the agent.
- 2:29The agent and the leaf node open no inbound port at the site.
- 2:38Every site links to one hub, at Weik.io or in your cloud.
- 2:42A cloud agent in the hub's network links directly.
- 2:46weikio-backend serves the API and the admin UI.
- 2:50weikio-apim is the API gateway in front of any HTTP service.
- 2:57NATS, the store of record, contains every document and bundle.
- 3:04Every process writes logs, metrics and traces into three stores.
- 3:13You reach Weik.io from the Weik.io CLI or the admin UI.
- 3:19Home shows every environment and the integrations and APIs in production.
- 3:26weikio init scaffolds a new integration folder.
- 3:29weikio apply publishes erp-invoice-export as a version.
- 3:35weikio deploy runs a version on the agents.
- 3:39weikio promote copies that deployment to production.
- 3:46weikio status shows each environment's version, state and agent.
- 3:55Agents live at sites,
- 3:57on an on-premise server or as a cloud agent in the hub's network.
- 4:01Integrations pass messages through the installation's events.
- 4:05A pipeline runs the same weikio apply from Git.
Next in this track
Concept 1 · 3:07 Projects and environments Watched