Handlers in K8s
Helm charts are published to deploy the system to Kubernetes.
Requirements
NATS Server with JetStream
A NATS JetStream server is required. Choria users can enable Choria Streams. The NATS community publishes its own NATS Helm Charts.
Connection context
NATS Contexts configure the connection between asyncjobs and NATS. For an existing context configured through the NATS CLI, run nats context show CONTEXTNAME --json to retrieve the keys and values.
TLS certificates for NATS authentication can be stored in a secret called task-scheduler-tls. NATS credential files and similar data fit the same pattern:
Choria Helm repository
Import the Choria Helm repository:
Kubernetes namespace
Run the asyncjobs components in a dedicated namespace:
Task scheduler
A basic values file for the Task Scheduler runs two replicas, with one active:
The values file references the secret added earlier.