2020-08-06 15:58:29 +02:00
|
|
|
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
|
2020-08-06 16:03:08 +02:00
|
|
|
path: /srv/kubedata/birbnetes/activemq
|
2020-08-06 15:58:29 +02:00
|
|
|
---
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: activemq-pv-claim
|
|
|
|
labels:
|
|
|
|
app: activemq
|
|
|
|
namespace: birbnetes
|
|
|
|
spec:
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteMany
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 10Gi
|
2020-08-06 16:05:04 +02:00
|
|
|
---
|
2020-08-06 15:58:29 +02:00
|
|
|
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
|
2020-08-06 16:03:08 +02:00
|
|
|
name: multiple-mq
|
2020-08-06 15:58:29 +02:00
|
|
|
protocol: TCP
|
|
|
|
- port: 8161
|
|
|
|
targetPort: 8161
|
2020-08-06 16:03:08 +02:00
|
|
|
name: web
|
2020-08-06 15:58:29 +02:00
|
|
|
protocol: TCP
|
|
|
|
- port: 1883
|
|
|
|
targetPort: 1883
|
2020-08-06 16:03:08 +02:00
|
|
|
name: mqtt
|
2020-08-06 15:58:29 +02:00
|
|
|
protocol: TCP
|
|
|
|
selector:
|
|
|
|
app: activemq
|