KubeStellar User Guide#
This document is an overview of the User Guide. See the KubeStellar overview for architecture and other information.
This user guide is an ongoing project. If you find errors, please point them out in our Slack channel or open an issue in our github repository!
Simple Examples#
If you want to try a simple installation process and example then you can try out Getting Started, which uses kind and a helm chart. The helm chart supports many options; the instructions on the Getting Started page show only the chart's usage in that recipe.
Another simple example, which starts with (a slightly modified version of) the OCM Quick Start is here.
In Brief#
If you want a simple rough grouping, you can divide the concepts here into:
- "setup" (steps 1--7 below), exemplified in the Setup section of Getting Started, and
- "usage" (the remaining steps), illustrated by the example scenarios document.
However, you do not need to follow that dichotomy. As noted below, the relevant components can be organized more flexibly.
The Full Story#
Installing and using KubeStellar progresses through the following steps.
- Install software prerequisites. See prerequisites.
- Acquire the ability to use a Kubernetes cluster to serve as the KubeFlex hosting cluster. See Acquire cluster for KubeFlex hosting.
- Initialize that cluster as a KubeFlex hosting cluster.
- Inventory and Transport Space (ITS).
- Create something to serve as ITS.
- Register the ITS as a KubeFlex ControlPlane.
- Workload Description Space (WDS).
- Create something to serve as WDS.
- Register the WDS as a KubeFlex ControlPlane and initialize it for KubeStellar usage.
- Create a Workload Execution Cluster (WEC).
- Register the WEC in the ITS.
- Maintain workload desired state in the WDS.
- Maintain control objects in the WDS to bind workload with WEC and modulate the state propagation back and forth. The API reference documents all of them. There are control objects for the following topics.
- Binding workload with WEC(s).
- Transforming desired state as it travels from WDS to WEC.
- Summarizing reported state from WECs into WDS.
- Enjoy the effects of workloads being propagated to the WEC.
- Consume reported state from WDS.
By "maintain" we mean create, read, update, delete, list, and watch as you like, over time. KubeStellar is eventually consistent: you can change your inputs as you like over time, and KubeStellar continually strives to achieve what you are currently asking it to do.
There is some flexibility in the ordering of those steps. The following flowchart shows the key ordering constraints.
You can have multiple ITSes, WDSes, and WECs, created and deleted over time as you like.
Besides "Start", the other green items in that graph are entry points for extending usage at any later time. You could also see them as distinct user roles or authorities, or as additional layers of setup/install.
KubeStellar's Core Helm chart combines (a) initializing the KubeFlex hosting cluster, (b) optionally creating and certainly registering some ITSes, and (c) optionally creating and certainly registering and initializing some WDSes.
You can find an example run through of steps 2--7 in Getting Started. This dovetails with the example scenarios document, which shows examples of the later steps.
There is also an example run through of steps 2--7 that starts with (a slightly modified version of) the OCM Quick Start and also dovetails with the example scenarios. See here.