16 lines
550 B
Bash
16 lines
550 B
Bash
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
# 创建命名空间
|
||
|
|
kubectl create namespace freeleaps-data-platform
|
||
|
|
|
||
|
|
# 安装Doris Operator CRD
|
||
|
|
kubectl create -f https://raw.githubusercontent.com/apache/doris-operator/master/config/crd/bases/doris.apache.com_dorisclusters.yaml
|
||
|
|
|
||
|
|
# 部署 Doris Operator
|
||
|
|
kubectl apply -f https://raw.githubusercontent.com/apache/doris-operator/master/config/operator/operator.yaml
|
||
|
|
|
||
|
|
# 创建 Doris 集群配置
|
||
|
|
kubectl apply -f doris-cluster.yaml -n freeleaps-data-platform
|
||
|
|
|
||
|
|
# 检查部署状态
|
||
|
|
kubectl get pods -n freeleaps-data-platform -l app=doris
|