From f4df870452303c1e007aeb68ee3c3f54441adc8b Mon Sep 17 00:00:00 2001 From: Joe <1029317664@qq.com> Date: Fri, 9 May 2025 17:52:53 +0800 Subject: [PATCH] fix: update freeleaps-data-platform --- .../doris/doris-cluster.yaml | 7 +++- .../doris/storage.yaml | 8 ----- .../pinot/certificate.yaml | 13 ++++++++ .../freeleaps-data-platform/pinot/values.yaml | 16 ++++++++++ .../star-rocks/values.yaml | 32 +++++++++++++++++++ cluster/manifests/helm-repos/REPO.list | 3 +- 6 files changed, 69 insertions(+), 10 deletions(-) delete mode 100644 cluster/manifests/freeleaps-data-platform/doris/storage.yaml create mode 100644 cluster/manifests/freeleaps-data-platform/pinot/certificate.yaml create mode 100644 cluster/manifests/freeleaps-data-platform/star-rocks/values.yaml diff --git a/cluster/manifests/freeleaps-data-platform/doris/doris-cluster.yaml b/cluster/manifests/freeleaps-data-platform/doris/doris-cluster.yaml index bb326343..9ee2bb52 100644 --- a/cluster/manifests/freeleaps-data-platform/doris/doris-cluster.yaml +++ b/cluster/manifests/freeleaps-data-platform/doris/doris-cluster.yaml @@ -4,6 +4,8 @@ metadata: name: doris-cluster namespace: freeleaps-data-platform spec: + clusterDomain: "freeleaps.cluster" + feSpec: replicas: 1 image: apache/doris:2.0.2 @@ -23,6 +25,9 @@ spec: beSpec: replicas: 1 image: apache/doris:2.0.2 + storage: + storageSize: "50Gi" + storageClassName: "azure-disk-std-ssd-lrs" resources: requests: cpu: "2" @@ -49,4 +54,4 @@ spec: prometheus: serviceMonitor: enabled: true - namespace: freeleaps-data-platform \ No newline at end of file + namespace: freeleaps-monitoring-system \ No newline at end of file diff --git a/cluster/manifests/freeleaps-data-platform/doris/storage.yaml b/cluster/manifests/freeleaps-data-platform/doris/storage.yaml deleted file mode 100644 index f7012a0c..00000000 --- a/cluster/manifests/freeleaps-data-platform/doris/storage.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: storage.k8s.io/v1 -kind: StorageClass -metadata: - name: doris-storage -provisioner: kubernetes.io/azure-disk -parameters: - storageaccounttype: Standard_LRS - kind: Managed \ No newline at end of file diff --git a/cluster/manifests/freeleaps-data-platform/pinot/certificate.yaml b/cluster/manifests/freeleaps-data-platform/pinot/certificate.yaml new file mode 100644 index 00000000..0942c51c --- /dev/null +++ b/cluster/manifests/freeleaps-data-platform/pinot/certificate.yaml @@ -0,0 +1,13 @@ +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: pinot-dot-mathmast-dot-com + namespace: freeleaps-data-platform +spec: + commonName: pinot.mathmast.com + dnsNames: + - pinot.mathmast.com + issuerRef: + kind: ClusterIssuer + name: mathmast-dot-com + secretName: pinot-dot-mathmast-dot-com-tls \ No newline at end of file diff --git a/cluster/manifests/freeleaps-data-platform/pinot/values.yaml b/cluster/manifests/freeleaps-data-platform/pinot/values.yaml index 371da4de..e48c0151 100644 --- a/cluster/manifests/freeleaps-data-platform/pinot/values.yaml +++ b/cluster/manifests/freeleaps-data-platform/pinot/values.yaml @@ -8,6 +8,22 @@ controller: persistence: enabled: true size: 20Gi + ingress: + enabled: true + annotations: + kubernetes.io/ingress.class: nginx + nginx.ingress.kubernetes.io/rewrite-target: /$2 + cluster-issuer: mathmast-dot-com + hosts: + - host: pinot.freeleaps.com + paths: + - path: /pinot(/|$)(.*) + pathType: Prefix + port: 9000 + tls: + - secretName: pinot-dot-mathmast-dot-com-tls + hosts: + - pinot.freeleaps.com broker: replicaCount: 1 diff --git a/cluster/manifests/freeleaps-data-platform/star-rocks/values.yaml b/cluster/manifests/freeleaps-data-platform/star-rocks/values.yaml new file mode 100644 index 00000000..b46fef1c --- /dev/null +++ b/cluster/manifests/freeleaps-data-platform/star-rocks/values.yaml @@ -0,0 +1,32 @@ +starrocks: + initPassword: + enabled: true + # 设置密码 secret,例如: + # kubectl create secret generic starrocks-root-pass --from-literal=password='g()()dpa$$word' + passwordSecret: starrocks-root-pass + + starrocksFESpec: + replicas: 3 + service: + type: LoadBalancer + resources: + requests: + cpu: 1 + memory: 1Gi + storageSpec: + name: fe + + starrocksBeSpec: + replicas: 3 + resources: + requests: + cpu: 1 + memory: 2Gi + storageSpec: + name: be + storageSize: 15Gi + + starrocksFeProxySpec: + enabled: true + service: + type: LoadBalancer \ No newline at end of file diff --git a/cluster/manifests/helm-repos/REPO.list b/cluster/manifests/helm-repos/REPO.list index 99d8c1f3..04ad06c2 100644 --- a/cluster/manifests/helm-repos/REPO.list +++ b/cluster/manifests/helm-repos/REPO.list @@ -12,4 +12,5 @@ descheduler,https://kubernetes-sigs.github.io/descheduler/,force-update kubernetes-dashboard,https://kubernetes.github.io/dashboard/,force-update grafana,https://grafana.github.io/helm-charts,force-update fluent,https://fluent.github.io/helm-charts,force-update -pinot,https://raw.githubusercontent.com/apache/pinot/master/helm,force-update \ No newline at end of file +pinot,https://raw.githubusercontent.com/apache/pinot/master/helm,force-update +starrocks,https://starrocks.github.io/starrocks-kubernetes-operator \ No newline at end of file