-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c250b6f
commit 4f94bc9
Showing
19 changed files
with
99 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
resources: | ||
- network.yaml | ||
- virtualIP.yaml | ||
- networkinterface.yaml | ||
- volume.yaml | ||
- machine.yaml |
File renamed without changes.
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,4 @@ | ||
apiVersion: networking.ironcore.dev/v1alpha1 | ||
kind: Network | ||
metadata: | ||
name: network-sample |
13 changes: 0 additions & 13 deletions
13
...emeral-resource/manifests/networking.yaml → ...g/samples/e2e/bases/networkinterface.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: networking.ironcore.dev/v1alpha1 | ||
kind: VirtualIP | ||
metadata: | ||
name: virtualip-sample | ||
spec: | ||
type: Public | ||
ipFamily: IPv4 |
File renamed without changes.
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,7 @@ | ||
apiVersion: v1 | ||
data: | ||
ignition.yaml: eyJpZ25pdGlvbiI6eyJ2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zdGVtZCI6eyJ1bml0cyI6W3siZW5hYmxlZCI6dHJ1ZSwibmFtZSI6InNzaC5zZXJ2aWNlIn0seyJjb250ZW50cyI6IltVbml0XVxuRGVzY3JpcHRpb249SW5zdGFsbCBuZ2lueFxuW1NlcnZpY2VdXG5UeXBlPW9uZXNob3RcblJlbWFpbkFmdGVyRXhpdD15ZXNcbkV4ZWNTdGFydD0vaW5zdGFsbC1uZ2lueC5zaFxuW0luc3RhbGxdXG5XYW50ZWRCeT1tdWx0aS11c2VyLnRhcmdldFxuIiwiZW5hYmxlZCI6dHJ1ZSwibmFtZSI6Imluc3RhbGwtbmdpbnguc2VydmljZSJ9XX19Cg== | ||
kind: Secret | ||
metadata: | ||
creationTimestamp: null | ||
name: ignition |
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
File renamed without changes.
File renamed without changes.
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,2 @@ | ||
resources: | ||
- ignition-secret.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
63 changes: 63 additions & 0 deletions
63
config/samples/e2e/machine-with-non-ephemeral-resource/README.md
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,63 @@ | ||
# Machine Sample deployement | ||
|
||
This example deploys a `Machine` with `non-ephemeral` `volume` and `networkinterface`. | ||
The following artifacts will be deployed in your namespace: | ||
- IronCore `Network`, `NetworkInterface` and `VirtualIP` | ||
- IronCore `Machine` | ||
- IronCore `Volume` | ||
- Secret containing the `ignition` | ||
|
||
## Prerequisites | ||
|
||
- [Butane](https://coreos.github.io/butane/) | ||
|
||
## Usage | ||
1. Adapt the `namespace` in `kustomization.yaml` | ||
2. Replace `your-user` [^1], `your-pw-hash` [^2] and `your-ssh-key` [^3] in the `ignition/ignition.yaml` | ||
3. Run `ignition/regenerate-ignition.sh` | ||
4. Create the below `patch-machineclassref.yaml` in `machine-with-non-ephemeral-resource` folder with the desired `machineClassRef` and `machinePoolRef` as per your environment | ||
|
||
``` | ||
apiVersion: compute.ironcore.dev/v1alpha1 | ||
kind: Machine | ||
metadata: | ||
name: machine-sample | ||
spec: | ||
machineClassRef: | ||
name: new-machineClass # The new name of the machine class reference | ||
machinePoolRef: | ||
name: new-machinePool | ||
``` | ||
|
||
5. Create the below`patch-volume.yaml`in `machine-with-non-ephemeral-resource` folder with the desired `volumeClassRef`and `volumePoolRef` as per your environment | ||
|
||
``` | ||
apiVersion: storage.ironcore.dev/v1alpha1 | ||
kind: Volume | ||
metadata: | ||
name: volume-sample | ||
spec: | ||
volumeClassRef: | ||
name: new-volumeClass The new name of the volume class reference | ||
image: new-image:rootfs | ||
volumePoolRef: | ||
name: new-volumePool | ||
``` | ||
6. Update the `kustomization.yaml` with below content | ||
``` | ||
patches: | ||
- path: patch-machineclassref.yaml | ||
- path: patch-volume.yaml | ||
``` | ||
|
||
7. Run (`kubectl apply -k ./`) | ||
|
||
|
||
[^1]: e.g. `max` | ||
[^2]: e.g. `$6$pCNgiQprrT/EmeE5$G7wa6wYm1FyuBHeVsuyH9IXGju07csuFwtrynslvSz6O.wFv4Ub8ADPqlBseewQQZQfp.9LCkWyodvJQjH.fe0` | ||
[^3]: e.g. `ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSU | ||
GPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3 | ||
Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XA | ||
t3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/En | ||
mZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbx | ||
NrRFi9wrf+M7Q== [email protected]` |
8 changes: 8 additions & 0 deletions
8
config/samples/e2e/machine-with-non-ephemeral-resource/kustomization.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
namespace: dev-team-onmetal-api | ||
|
||
resources: | ||
- ../ignition | ||
- ../bases |
29 changes: 0 additions & 29 deletions
29
config/samples/e2e/machine-wtih-non-ephemeral-resource/README.md
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
config/samples/e2e/machine-wtih-non-ephemeral-resource/kustomization.yaml
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
config/samples/e2e/machine-wtih-non-ephemeral-resource/manifests/ignition-secret.yaml
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
config/samples/e2e/machine-wtih-non-ephemeral-resource/patch-machineclassref.yaml
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
config/samples/e2e/machine-wtih-non-ephemeral-resource/patch-volume.yaml
This file was deleted.
Oops, something went wrong.