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