streamsets k8s 部署试用

使用k8s 进行 streamsets的部署(没有使用持久化存储)

k8s deploy yaml 文件

deploy.yaml

apiVersion: extensions/v1beta1
kind: Deployment
metadata:  
  name: streamsets
  namespace: big-data
  labels:
    app: streamsets
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: streamsets
    spec:
      containers:
      - name: streamsets
        image: streamsets/datacollector
        imagePullPolicy: IfNotPresent
        ports:
        - containerPort: 18630
        - containerPort: 8000
---

apiVersion: v1
kind: Service
metadata:
  name: streamsets
  namespace: big-data
spec:
  selector:
    app: streamsets
  ports:
  - name: http-ui
    port: 18630
    protocol: TCP
  - name: http-server
    port: 8000
    protocol: TCP
  type: NodePort

---

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: streamsets
  namespace: big-data
spec:
  rules:
  - host: s.data.com
    http:
      paths:
      - backend:
          serviceName: streamsets
          servicePort: 18630
        path: /

说明

上边部署文件使用deploy 进行streamsets 部署,同时暴露了一个http serevr 端口(测试 microservice pipeline)
同时添加了k8s ingress 访问,以及一个service (nodeport 类型),namespace big-data

部署

kubectl apply -f deploy.yaml

效果

登陆

简单microservice pipeline


 
 
 
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值