Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Air Gap Specification Request #1

Open
GKRSOFT opened this issue May 2, 2023 · 8 comments
Open

Air Gap Specification Request #1

GKRSOFT opened this issue May 2, 2023 · 8 comments

Comments

@GKRSOFT
Copy link

GKRSOFT commented May 2, 2023

Testing out your code:

  1. Build does work only with yum install prerequisites.
    Curl, Spokeo, and Helm rpm packages must be pre-installed.
    Successful building dose require internet access as stated. Looks good.

  2. CentOS 8 Stream - CentOS-Stream-8-20230429.0-x86_64-dvd1.iso
    Failed to download metadata for repo 'appstream'

So what I am trying to replicate is the complete Air Gapped build of RKE2 on CentOS 8.
If you built using a different disto please advise.

Thank you in advance.
Yes, I watched the video and harvester-v1.1.2-amd64.iso look like a good approach.
But I need the distro info...

@clemenko
Copy link
Contributor

clemenko commented May 2, 2023

The script has been test on Rocky 9 several times. In theory any rpm based distro with access to curl, skopeo should work. Helm is installed from binary.

There is an updated repo : https://github.com/clemenko/rke_airgap_install

You can check out Harvester at https://github.com/harvester/harvester

Testing the build function with centos 8 stream now

@clemenko
Copy link
Contributor

clemenko commented May 2, 2023

Worked on Digital Ocean with Centos Stream 8.

[root@flux rancher]# ls -asl
total 24
 0 drwxr-xr-x. 5 root root    85 May  2 01:57 .
 0 drwxr-xr-x. 4 root root    74 May  2 02:03 ..
24 -rwxr-xr-x. 1 root root 20662 May  2 01:55 air_gap_all_the_things.sh
 0 drwxr-xr-x. 2 root root   150 May  2 01:57 helm
 0 drwxr-xr-x. 8 root root    95 May  2 01:57 images
 0 drwxr-xr-x. 2 root root   210 May  2 01:57 rke2_1.24.13
[root@flux rancher]# cd ..
[root@flux opt]# du -sh *
5.1M	digitalocean
16G	rancher
6.0G	rke2_rancher_longhorn.zst
[root@flux opt]# cat /etc/os-release 
NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"

@GKRSOFT
Copy link
Author

GKRSOFT commented May 3, 2023 via email

@clemenko
Copy link
Contributor

clemenko commented May 3, 2023

I am not able to recreate the issue you are seeing. Maybe rerun the build unclass?

@GKRSOFT
Copy link
Author

GKRSOFT commented May 3, 2023

Working with Rocky-9.1-x86_64-dvd.iso as the AirGap Image:
Copied from dvd to /opt AppStream and BaseOS folders
Edit /etc/yum.repos.d/rocky.repo to reflect file location:
i.e. baseurl=file:///opt//BaseOS/
Also set enable=0 for baseos-debug & extras
yum Install skopeo-1.10.0-1.module_el8.8.0+1254+78119b6e.x86_64.rpm
Copied helm binary file /usr/bin
Ran your script: air_gap_all_the_things.sh control
Screenshot from 2023-05-03 08-44-37

@GKRSOFT
Copy link
Author

GKRSOFT commented May 3, 2023

Worker unable to register

Screenshot from 2023-05-03 16-58-49

@clemenko
Copy link
Contributor

clemenko commented May 4, 2023

Did you run worker on the same node as control? That needs to be on another server?

@clemenko
Copy link
Contributor

Try the updated script?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants