deploy/activemq-artemis.yaml
2020-08-28 17:34:48 +02:00

85 lines
1.6 KiB
YAML

apiVersion: v1
kind: PersistentVolume
metadata:
name: birbnetes-nfs-activemq
namespace: birbnetes
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Recycle
nfs:
server: 192.168.100.3
path: /srv/kubedata/birbnetes/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:latest
imagePullPolicy: "Always"
ports:
- containerPort: 61616
- containerPort: 8161
- containerPort: 1883
volumeMounts:
- mountPath: /var/lib/artemis-instance
name: activemq-volume
volumes:
- name: activemq-volume
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
name: multiple-mq
protocol: TCP
- port: 8161
targetPort: 8161
name: web
protocol: TCP
- port: 1883
targetPort: 1883
name: mqtt
protocol: TCP
selector:
app: activemq