A WEC is a standard Kubernetes cluster that:
For a Kubernetes cluster to function as a WEC in the KubeStellar ecosystem, it must:
You can use any existing Kubernetes cluster as a WEC, or create a new using your preferred method:
kind create cluster --name cluster1
kubectl config rename-context kind-cluster1 cluster1
k3d cluster create -p "9443:443@loadbalancer" cluster1
kubectl config rename-context k3d-cluster1 cluster1
For resource-constrained environments like edge devices, you can use MicroShift:
# Instructions for setting up MicroShift can be found at
# https://community.ibm.com/community/user/cloud/blogs/alexei-karve/2021/11/28/microshift-4
For production environments, consider using:
After creating your cluster, you need to register it with an ITS. This process installs the OCM Agent and establishes the communication channel.
# Get the join command from the ITS
clusteradm --context its1 get token
# Execute the join command with your WEC name
clusteradm join --hub-token <token> --hub-apiserver <api-server-url> --cluster-name cluster1 --context cluster1
# Accept the registration on the ITS side
clusteradm --context its1 accept --clusters cluster1
For detailed registration instructions, see WEC Registration.
After registration, you should label your WEC to make it selectable by BindingPolicies:
kubectl --context its1 label managedcluster cluster1 location-group=edge name=cluster1
These labels can represent any characteristics relevant to your workload placement decisions:
region=us-east, location=edge)gpu=true, cpu-architecture=arm64)environment=production, environment=development)pci-dss=compliant, hipaa=compliant)team=retail, business-unit=finance)For each WEC, you can define additional properties in a ConfigMap stored in the “customization-properties” namespace of the ITS. These properties can be used for rule-based transformations of workloads.
You can check the status of your registered WECs:
kubectl --context its1 get managedclusters
KubeStellar performs transformations on workloads before they are deployed to WECs:
For more information, see Transforming Desired State.