Bootstrap Command
The bootstrap command creates a single node cluster using the current node as the master.
Syntax Example
pf9ctl bootstrap [flags] <cluster-name>All Available Commands and Flags
x
pf9ctl bootstrap --helpBootstrap a single node Kubernetes cluster with current node as the master node.Usage: pf9ctl bootstrap [flags] cluster-nameFlags: --allowWorkloadsOnMaster Taint master nodes ( to enable workloads ) (default true) --containersCidr string CIDR for container overlay (default "10.20.0.0/16") --externalDnsName string External DNS for master VIP -h, --help help for bootstrap -i, --ip strings IP address of host to be prepared --masterVip string IP Address for VIP for master nodes --masterVipIf string Interface name for master / worker nodes --metallbIpRange string Ip range for MetalLB --mfa string MFA token --networkPlugin string Specify network plugin ( Possible values: flannel or calico ) (default "calico") -p, --password string ssh password for the nodes (use 'single quotes' to pass password) --privileged Enable privileged mode for K8s API. Default: true (default true) --servicesCidr string CIDR for services overlay (default "10.21.0.0/16") -s, --ssh-key string ssh key file for connecting to the nodes -e, --sudo-pass string sudo password for user on remote host -u, --user string ssh username for the nodesGlobal Flags: --no-prompt disable all user prompts --verbose print verbose logsCommand Example
The bootstrap command requires a cluster name to complete successfully. During the bootstrap process the CLI will prompt the user asking if the node should be set up as a Master node, in most circumstances answer yes
#pf9ctl bootstrap trial✓ Loaded Config Successfully✓ Node is not onboarded and not attached to any cluster✓ Removal of existing CLI✓ Existing Platform9 Packages Check✓ Required OS Packages Check✓ SudoCheck✓ CPUCheck✓ DiskCheck✓ MemoryCheck - At least 12 GB of memory is needed on host. Total memory found: 4 GB✓ PortCheck✓ Existing Kubernetes Cluster Check✓ Check lock on dpkg✓ Check lock on apt✓ Check if system is booted with systemd✓ Check time synchronization✓ Check if firewalld service is not running✓ Disabling swap and removing swap in fstab✓ Completed Pre-Requisite Checks successfullyOptional pre-requisite check(s) failed. See /home/ubuntu/pf9/log/pf9ctl-20211119.log or use --verbose for logs Prep local node as master node for kubernetes cluster (y/n): y✓ Platform9 packages installed successfully✓ Initialised host successfully✓ Host successfully attached to the Platform9 control-plane✓ Cluster creation started✓ Host is connected✓ Attached node to the cluster✓ Bootstrap successfully finishedCluster creation started....This may take a few minutes....Check the latest status in UI✓ Host is connected| Attaching node to the cluster trialWas this page helpful?