k8s 部署activemq

复制代码
[root@master01 tmp]# cat activemq.yaml 
apiVersion: v1
kind: Service
metadata:
 name: nodeport-activemq
 namespace: chongqing
spec:
 selector:
  app: activemq
 ports:
  - port: 8161
    targetPort: 8161
    protocol: TCP
    name: admin
    nodePort: 30004   
  - port: 61616
    targetPort: 61616
    protocol: TCP
    name: tcp
    nodePort: 30005   
 type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
 name: deploy-activemq
 namespace: chongqing
spec:
 replicas: 1
 selector:
  matchLabels:
    app: activemq
 template:
  metadata:
    labels:
     app: activemq
  spec:
   containers:
    - name: activemq
      image: webcenter/activemq
      ports:
       - containerPort: 8161
         protocol: TCP
       - containerPort: 61616
         protocol: TCP
复制代码

kubectl  apply  -f    activemq.yaml

 

posted @   beawh  阅读(117)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 因为Apifox不支持离线,我果断选择了Apipost!
· 通过 API 将Deepseek响应流式内容输出到前端
点击右上角即可分享
微信分享提示