add artemis
This commit is contained in:
parent
5b25ff6e2e
commit
11e5881eb4
80
activemq-artemis.yaml
Normal file
80
activemq-artemis.yaml
Normal file
@ -0,0 +1,80 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: birbnetes-nfs-activemq
|
||||
namespace: birbnetes
|
||||
spec:
|
||||
capacity:
|
||||
storage: 10Gi
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
persistentVolumeReclaimPolicy: Recycle
|
||||
nfs:
|
||||
server: 192.168.122.20
|
||||
path: /srv/birbdata/activemq
|
||||
---
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: activemq-pv-claim
|
||||
labels:
|
||||
app: activemq
|
||||
namespace: birbnetes
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: activemq
|
||||
namespace: birbnetes
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: activemq
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: activemq
|
||||
spec:
|
||||
containers:
|
||||
- name: activemq
|
||||
image: registry.kmlabz.com/birbnetes/activemq-artemis
|
||||
imagePullPolicy: "IfNotPresent"
|
||||
ports:
|
||||
- containerPort: 61616
|
||||
- containerPort: 8161
|
||||
- containerPort: 1883
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/artemis-instance
|
||||
name: activemq
|
||||
volumes:
|
||||
- name: activemq
|
||||
persistentVolumeClaim:
|
||||
claimName: activemq-pv-claim
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: activemq
|
||||
namespace: birbnetes
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 61616
|
||||
targetPort: 61616
|
||||
protocol: TCP
|
||||
- port: 8161
|
||||
targetPort: 8161
|
||||
protocol: TCP
|
||||
- port: 1883
|
||||
targetPort: 1883
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: activemq
|
Loading…
Reference in New Issue
Block a user