User Guide
StreamZero K8X User Guide
StreamZero K8X brings event driven automation to Kubernetes.
With K8X you can create service flows which span multiple containers written in different programming languages. K8X takes over the responsibility of launching the right container when an event arrives that is mapped to the container. Further it provides the container with the incoming parameters, the service specific configurations and secrets injected into the container environment.
Since each service or container is invoked upon an event trigger, they (service, container) are dormant and require no compute resources.
The event driven nature of K8X makes it not only easy to use and fast to deploy, it brings unprecedented levels of resources efficiency as well as decreases resource contention to any Kubernetes Cluster.
The following is a brief explanation of how K8X works.
StreamZero K8X aims to make it easy to build event-driven microservices in polyglot environments. As such it gives you complete freedom in selecting the language of your choice.
In order to ’event-enable’ a service K8X requires 3 artefacts to be created.
Optional Files
The following is a sample manifest.json file.
|
|
The following table describes the attributes of the manifest.json file.
Attribute | Description |
---|---|
name | Name of the service. Spaces will be replaced by underscores. |
type | The type of the service must always be ‘k8x_job’ |
description | Description of the service which will be displayed in the UI. |
allow_manual_triggering | Values are either ’true’ or ‘false’ . Defines whether the service may be trigerred manually from the UI. Which normally means the service is either trigerred from a micro-ui or does not expect any event parameters. |
active | Values are either ’true’ or ‘false’ . Can be used to selectively deactivate the service. |
trigger_events | An array of trigger events. The service will be trigerred when any of these events arrive on the platform. |
tags | An array of tags. Tags are used for organising and finding related services easily. |
The following is a sample deployment.yaml file
|
|
The above is a standard kubernetes job deployment yaml file. As you will note there is nothing special about it. When the above file is processed by K8X it will add the incoming parameters, service secrets and configs into the environment.
StreamZero K8X User Guide
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.