Run Lyra in Kubernetes controller mode if you want Lyra to continuously apply a workflow and make sure that your resources exist in a desired state.
Before you run Lyra in controller mode, make sure you’ve set up the Kubernetes command-line tool.
Important: Deploying a workflow creates real resources and could incur a charge from your cloud provider.
To run Lyra in controller mode:
Install the Lyra workflow
kubectl apply -f k8s/lyra_v1alpha1_workflow_crd.yaml
Start Lyra in controller mode:
./build/bin/lyra controller --debug
Open a second Terminal window and create a Workflow resource:
kubectl apply -f k8s/vpc-workflow.yaml
Inspect the resource:
kubectl get workflows
(Optional) Delete the resources associated with the workflow:
kubectl delete workflow vpc-workflow
tagdata for Kubernetes workflows is specified in the data section of
k8s/vpc-workflow.yamlin your Lyra directory.