如何将 ignite web 控制台与我的 kubernetes 集群连接 pods(服务器和客户端)

How to connect ignite web console with my kubernetes cluster pods (server and client)

如何将 ignite web 控制台连接到我的 kubernetes 集群 pods(服务器和客户端)并让我知道如何连接到 SQL dB?

问题不明确,但我会尽量按照我的理解来回答。

IGNITE-7131 jira ticket you can find documentation link on Ignite Web Console deployment in Kubernetes下。

完整程序包含后续步骤:

1) Install Apache Ignite cluster. I used GCP installation 满足我的需要。只需按照所有步骤成功部署和激活 Ignite 集群。

2) Installing Web Console in kubernetes

  • Install MongoDB
  • Install Web Console 如果您不使用私有存储库,请执行后续步骤:

    • frontendbackend 部署中删除 imagePullSecrets 属性
    • web-console-deployment.yaml
    • 中使用 image: apacheignite/web-console-backend 作为后端
    • web-console-deployment.yaml
    • 中使用 image: apacheignite/web-console-frontend 作为前端
    • 以上图片可以找到here
  • Install Web Agent

安装所有组件后,我可以使用 frontend service external-ip

访问 Ignite Web 控制台
$kubectl get svc frontend -n web-console
NAME       TYPE           CLUSTER-IP   EXTERNAL-IP    PORT(S)        
frontend   LoadBalancer   10.0.6.155   35.240.47.20   80:30160/TCP  

web-console-deployment.yaml 后端部署部分:

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  creationTimestamp: null
  labels:
    app: backend
  name: backend
  namespace: web-console
spec:
  replicas: 1
  strategy: {}
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: backend
    spec:
      containers:
      - env:
        - name: mail_auth_pass
        - name: mail_auth_user
        - name: mail_from
        - name: mail_greeting
        - name: mail_service
        - name: mail_sign
        - name: mongodb_url
          value: mongodb://mongodb.mongodb.svc.cluster.local/console
        - name: server_host
          value: "0.0.0.0"
        - name: server_port
          value: "3000"
        - name: server_sessionSecret
          value: 12345
        image: apacheignite/web-console-backend
        name: backend
        resources: {}
      restartPolicy: Always
status: {}