You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在SingleStore Kubernetes Operator中启用SingleStore Studio

SingleStore Studio 启用失败的缺失配置步骤排查

核心问题定位

Pod内curl 8080端口被拒绝,说明SingleStore Studio服务本身未在Pod内启动,并非单纯端口暴露问题,需先从服务启用配置入手。

缺失的关键配置步骤

1. 启用集群配置中的Studio组件

默认部署的SingleStore集群未开启Studio服务,需在Operator配置文件(如singlestore-cluster.yaml)中添加Studio启用配置:

spec:
  master:
    replicas: 1
    studio:
      enabled: true
      port: 8080

执行命令重新应用配置:

kubectl apply -f singlestore-cluster.yaml

等待Master Pod重启后,验证服务是否启动:

kubectl exec -it <master-pod-name> -- ps aux | grep singlestore-studio

2. 确保Master Pod资源充足

若Pod CPU/内存资源不足,Studio服务可能无法启动,需配置足够的资源限制:

spec:
  master:
    resources:
      requests:
        cpu: "2"
        memory: "4Gi"
      limits:
        cpu: "4"
        memory: "8Gi"

3. 修正NodePort服务配置

确认Service配置正确指向Master Pod的8080端口:

apiVersion: v1
kind: Service
metadata:
  name: singlestore-studio
spec:
  type: NodePort
  selector:
    app.kubernetes.io/name: singlestore
    app.kubernetes.io/component: master
  ports:
    - port: 8080
      targetPort: 8080
      nodePort: <可选自定义端口>

应用后验证配置:

kubectl get service singlestore-studio

需确保TARGET PORT列显示为8080。

4. 配置AWS安全组规则

AWS节点安全组需允许NodePort端口的入站流量(测试阶段可暂时开放来源为0.0.0.0/0,生产环境限制为指定IP);若节点为私有子网,需通过LoadBalancer或VPN实现外部访问。

5. 验证Pod内服务状态

Pod内执行以下命令确认服务正常:

kubectl exec -it <master-pod-name> -- curl http://localhost:8080/connect

若返回正常HTML内容,说明服务启动成功,再尝试外部访问。

常用排查命令

  • 查看Master Pod日志,排查启动报错:
kubectl logs <master-pod-name> -c master | grep studio
  • 检查Pod端口监听状态:
kubectl exec -it <master-pod-name> -- netstat -tulpn | grep 8080

内容的提问来源于stack exchange,提问作者sethu2912

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.10 20:40:04