(under development)
develop with kubebuilder, control starrocks in kubernetes
- kubernetes 1.18+
- network: fe can access the ip of cn-pod
- start cn clusters,register cn-pod's ip to fe
- auto-scaling for cn cluster
# build image
make docker IMG="xxx"
# push image to docker hub
make push IMG="xxx"
contains register-sidecar and cn-offline job
cd components
# build image
make docker IMG="xxx"
# push image to docker hub
make push IMG="xxx"
cd deploy
# create crd
kubectl apply -f starrocks.com_computenodegroups.yaml
# create namespace
kubectl apply -f namespace.yam;
# create rbac-roles
kubectl apply -f leader_election_role.yaml
kubectl apply -f role.yaml
# create rbac-role-binding
kubectl apply -f role_binding.yaml
kubectl apply -f leader_election_role_binding.yaml
# create rbac-service-account
kubectl apply -f service_account.yaml
# create operator deployment
# replace image field with image which build in[3.1]
kubectl apply -f manager.yaml
cd examples/cn
# configure fe-account
kubectl apply -f fe-account.yaml
# configure cn-parameter
kubectl apply -f cn-config.yaml
# create ComputeNodeGroup
# replace component-image field with image which build in[3.2]
kubectl apply -f cn.yaml