This repository has been archived by the owner on Dec 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make it possible to run
ignite run/create
declaratively. Fixup vari…
…ous issues from the first API addition commit
- Loading branch information
Showing
11 changed files
with
150 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
## Run Ignite VMs declaratively | ||
|
||
Flags can be convenient for simple use cases, but have many limitations. | ||
In more advanced use-cases, and to eventually allow GitOps flows, there is | ||
an other way: telling Ignite what to do _declaratively_, using a file containing | ||
an API object. | ||
|
||
The first commands to support this feature is `ignite run` and `ignite create`. | ||
An example file as follows: | ||
|
||
```yaml | ||
apiVersion: ignite.weave.works/v1alpha1 | ||
kind: VM | ||
metadata: | ||
name: test-vm | ||
spec: | ||
image: | ||
ref: weaveworks/ignite-ubuntu | ||
type: Docker | ||
cpus: 2 | ||
diskSize: 3GB | ||
memory: 800MB | ||
``` | ||
This API object specifies a need for 2 vCPUs, 800MB of RAM and 3GB of disk. | ||
We can tell Ignite to make this happen using simply: | ||
```console | ||
$ ignite run --config test-vm.yaml | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.