The script build.sh automatically builds a custom OS image for a VSphere environment. The original image of a selected OS is enriched with Kubernetes binaries, as well as (in the future) other custom files.
Currently supported operating systems:
- RedHat CoreOS
- Debian 9
./build.sh --target-os debian9 [--release K8S-RELEASE]
Parameters:
--target-osis mandatory and specifies the Linux distribution image to be built. Possible values:debian9
--releasespecifies the Kubernetes release to be added to the image, e.g.v1.10.2. If not provided, the script will look up the latest stable release and use that.
The script will generate a VMDK disk image with the filename TARGET_OS-output.vmdk.