This repository is the companion to the Upbound Simulations guide. Clone this repository and follow along to learn how to use this feature.
Simulations are short-lived copies of a control plane that allow you to see the impact of a change to your resources before applying them to your actual environment.
- Clone this repository:
git clone https://github.com/tr0njavolta/no-op-sim.git && cd no-op-sim
- Build and deploy the base control plane you want to simulate:
up project build
up project run
Set your context to your control plane:
up ctx
kubectl apply -f examples/noop/example-xr.yaml
- Simulate a change
Edit examples/noop/example-xr.yaml
:
- Comment out line 11:
#ultimateAnswer: 41
- Uncomment line 12:
ultimateAnswer: 42
Set your context to the group level:
up ctx ..
Run the simulation:
up alpha ctp simulate noop --changeset=./examples/noop/example-xr.yaml --complete-after=60s --terminate-on-finish
- Review the simulation results.
- Simulations is in private preview
- Time is the only completion criteria currently supported. Time-completion is
determined by the
--complete-after
flag - Providers don't run in simulations
More documentation is available on the Upbound Docs.