From 11e5881eb40429585c2bb96871653d20de89f724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Thu, 6 Aug 2020 15:58:29 +0200 Subject: [PATCH] add artemis --- activemq-artemis.yaml | 80 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 activemq-artemis.yaml diff --git a/activemq-artemis.yaml b/activemq-artemis.yaml new file mode 100644 index 0000000..275d1d4 --- /dev/null +++ b/activemq-artemis.yaml @@ -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