Skip to content
forked from sealerio/basefs

One part of base ClusterImage, containing static file like config file and essential scripts

Notifications You must be signed in to change notification settings

riddlegit/basefs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a fork from sealerio/basefs

Basefs

Introduction

in order to support user build base Clusterimage automatically,open this repo and share the related rootfs files. user can use auto-build to do this job and meanwhile using git hub action with issue comment to do it. at the same time you can use this repo to customize your own base Clusterimage such as choosing the different CRI plugin version or CNI plugin version,even the default kubernetes cluster configuration and so on.

How to use auto-build

auto-build only accept one arg that is image version,and will use this version to pull related kubernetes container images, so make sure it is a valid value.

## auto-build options:
  --k8s-version         set the kubernetes k8s_version of the Clusterimage, k8s_version must be greater than 1.13
  -c, --cri             cri can be set to docker or containerd between kubernetes 1.20-1.24 versions
  -n, --buildName       set build image name, default is 'registry.cn-qingdao.aliyuncs.com/sealer-io/kubernetes:${k8s_version}'
  --platform            set the build mirror platform, the default is linux/amd64,linux/arm64
  --push                push clusterimage after building the clusterimage. The image name must contain the full name of the repository, and use -u and -p to specify the username and password.
  -u, --username        specify the user's username for pushing the Clusterimage
  -p, --password        specify the user's password for pushing the Clusterimage
  -d, --debug           show all script logs
  -h, --help            help for auto build shell scripts

default build

this is will build the Clusterimage named "kubernetes:v1.22.8" without CNI plugin. and both have two platform: amd64 and arm64 platform. that means you got four Clusterimages at the same time.

auto-build --k8s-version=v1.22.8

build with specify platform

This will build a Clusterimage with amd64 platform, default is linux/amd64,linux/arm64.

auto-build --k8s-version=v1.22.8 --platform=amd64

build with specified name

this will build a Clusterimage with amd64 platform.

auto-build --k8s-version=v1.22.8 --buildName=registry.cn-qingdao.aliyuncs.com/sealer-io/kubernetes:v1.22.8

build with customized Clusterimage name

this will build a Clusterimage named registry.cn-qingdao.aliyuncs.com/sealer-io/myk8s:v1.22.8

auto-build --k8s-version=v1.22.8 --buildName=registry.cn-qingdao.aliyuncs.com/sealer-io/myk8s:v1.22.8

build without pushing

if --push, push the clusterimage to the image registry. The image name must contain the full name of the repository.

auto-build --k8s-version=v1.22.8 --buildName=registry.cn-qingdao.aliyuncs.com/sealer-io/kubernetes:v1.22.8 --push

The image warehouse address is registry.cn-qingdao.aliyuncs.com.

If you do not log in to the mirror warehouse, you need to use -u and -p to specify the username and password

auto-build --k8s-version=v1.22.8 --buildName=registry.cn-qingdao.aliyuncs.com/sealer-io/kubernetes:v1.22.8 --push --username=specifyUser --password=specifyPasswd

About

One part of base ClusterImage, containing static file like config file and essential scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%