yurtcluster-operator

module
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2022 License: Apache-2.0

README

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

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API group +kubebuilder:object:generate=true +groupName=operator.openyurt.io
Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API group +kubebuilder:object:generate=true +groupName=operator.openyurt.io
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL