Installing WKP on Footloose
#
Install the dependenciesOn the computer that will be used for the installation, you need to install:
#
Install WKP on footloose containersFootloose allows the creation of containers that emulate virtual machines.
It provides an easy way for deploying on a single machine and demoing WKP features.
First, create a directory which will contain the cluster management scripts and binaries.
It is required to provide a valid entitlements file for this step.
The default location for it is at /home/${USER}/.wks/entitlements
, to specify a different location use the --entitlements
flag:
The main configuration file is unpacked at setup/config.yaml
.
The required values are your git provider organization or user, your Docker Hub user, and an absolute path to a file containing your Docker Hub password:
Enter your gitProvider
, dockerIOUser
, and dockerIOPasswordFile
in your setup/config.yaml
(See Git Config Repository for details about git parameters).
Optionally, set the clusterName
and kubernetesVersion
fields.
Example snippet of config.yaml
:
Changes for Docker Desktop on MacOS
Docker Desktop for Mac requires setting specific CIDR blocks. Make sure to set them in config.yaml
:
In the footlooseConfig
section of setup/config.yaml
, you can set the number of nodes according to your specifications and available resources, as well as the backend for creating them. The default is docker
, which will deploy WKP on footloose containers.
Another possibility, available only on Linux due to its KVM requirement, is to use ignite to deploy WKP on lightweight VMs.
For this example we will use the default backend docker
.
WKP uses a personal access token to create the cluster repository on GitHub. The token needs to have permissions in
the repo
scope. The github documentation on how to create one can be found on this page. Once you have created one,
set the environment variable for it:
#
EKS-DIf you would like to run EKS-D in your cluster using the experimental support for EKS-D in WKP, please follow the instructions at: Using the EKS-D Kubernetes distribution
Now we are ready to install the cluster:
#
Access the WKP UI#
via wk ui commandTo expose the WKP UI via wk ui command, run:
You should now be able to view it at http://localhost:8090
To expose the WKP UI to a different port other than the default, run:
#
Delete a WKP clusterYou can use the cleanup.sh
script: