TipsOnRongISO
Nov 17, 2018
Technology
AIM
For building the kubespray offline all-in-one deploying iso.
Steps
- Download 7.5.1804 ISO.
- Create a new virtual machine, kvm based, minimal installation, for getting the minimal vm files.
- Install redsocks, compile it, then shutdown the minimal vm.
- Create a qcow2 file based on minimal vm, start the vm, then change the IP/Netmask/DNS.
- Start redsocks. Test the unlimited networking.
- Clone the kubespray repository, deploy the kubespray in all in one node.
- Fetch the rpms from the kubespray all-in-one node.
- Create a isolated networking and setup the offline environment.
- Modify the kubespray source code for offline deployment.
- Portus offline registry repo building.
- Static website for holding static files(rpms/hypekube).
- docker use intranet registry/ rpm use static website.
TobeDone
Steps for building deployment system.
1.
docker-compose
portus (docker-compose) composition files.
portus images.
2.
inventory file(top layer)
kubespray files will be uploaded to deployment node.
3.
dns server setup
manually add dns server in all of the nodes.
4.
If initial environment is ok, then deploy environment will also be ok.