Skip to content

Commit 4938e93

Browse files
authored
custom image upload instructions (#24)
* maas image upload instructions * add copy hint * add ssh hint
1 parent a5ec937 commit 4938e93

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

image-generation/README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ remove lines
4040
https://github.com/spectrocloud/cluster-api-provider-maas/blob/818c818131b69fe35d5637a9e7c6510f82d39f13/image-generation/buildmaasimage.sh#L61-L82
4141
4242
43-
## Upload Custom Image to MAAS
43+
## Upload Custom Image to MAAS using maas cli
44+
45+
You must have maas cli installed on your system
46+
47+
If you don't have maas cli installed refer [here](https://maas.io/docs/snap/3.0/ui/maas-cli)
4448
4549
The images generated inside pod can be accessed from hostpath vol
4650
```yaml
@@ -50,8 +54,20 @@ The images generated inside pod can be accessed from hostpath vol
5054
```
5155
5256
cd /tmp/mypath or the directory you have configured
53-
maas <profile-name> boot-resources create name=custom/<image-display-name> architecture=amd64/generic content=<image-filename>
5457
58+
next step assumes that you have maas-cli installed on currrent machine.
59+
If not first copy the image from current machine to somewhere you have maas cli installed and access to MAAS setup
60+
```bash
61+
scp /tmp/mypath/<image-filename> <destination-machine>
62+
63+
# ssh to the machine
64+
ssh user@<destination-machine>
65+
```
66+
67+
use <profile-name> profile which has access to create boot-resources or admin
68+
```bash
69+
maas <profile-name> boot-resources create name=custom/<image-display-name> architecture=amd64/generic content=<image-filename>
70+
```
5571

5672
## spectrocloud public images
5773
| kubernetes Version | URL |

0 commit comments

Comments
 (0)