YurtCluster Operator
Quick Start
Prepare a Kubernetes cluster
# cat <<EOF | kind create cluster --config=-
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
- role: worker
EOF
Install YurtCluster Operator
# helm install operator ./charts -n kube-system
Convert the cluster to Yurt cluster
# kubectl apply -f ./config/samples/operator_v1alpha1_yurtcluster.yaml
Convert a Node to Cloud Node
# kubectl label node <NODE_NAME> openyurt.io/node-type=cloud
Convert a Node to Edge Node
# kubectl label node <NODE_NAME> openyurt.io/node-type=edge
Revert a Node to Normal Node
# kubectl label node <NODE_NAME> openyurt.io/node-type-
Revert the cluster to normal
# kubectl delete yurtclusters cluster
# helm uninstall operator -n kube-system