deploy/activemq-artemis.yaml

106 lines
2.0 KiB
YAML
Raw Normal View History

2020-08-06 15:58:29 +02:00
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: activemq-pv-claim
namespace: birbnetes
spec:
accessModes:
2021-11-23 02:10:41 +01:00
- ReadWriteOnce
storageClassName: longhorn
2020-08-06 15:58:29 +02:00
resources:
requests:
2021-11-23 02:10:41 +01:00
storage: 1Gi
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
2020-08-06 16:26:32 +02:00
image: registry.kmlabz.com/birbnetes/activemq-artemis:latest
imagePullPolicy: "Always"
2020-08-06 15:58:29 +02:00
ports:
- containerPort: 61616
- containerPort: 8161
- containerPort: 1883
volumeMounts:
- mountPath: /var/lib/artemis-instance
2020-08-06 16:26:32 +02:00
name: activemq-volume
2020-10-02 17:09:25 +02:00
envFrom:
- configMapRef:
name: activemq-config
2021-11-23 02:10:41 +01:00
resources:
requests:
memory: "1024Mi"
cpu: "500m"
limits:
memory: "4069Mi"
cpu: "2000m"
2020-08-06 15:58:29 +02:00
volumes:
2020-08-06 16:26:32 +02:00
- name: activemq-volume
2020-08-06 15:58:29 +02:00
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
2020-10-02 20:47:35 +02:00
---
apiVersion: v1
kind: Service
metadata:
name: activemq-mqtt
namespace: birbnetes
spec:
type: NodePort
ports:
- name: activemq-mqtt
port: 1883
targetPort: 1883
protocol: TCP
selector:
app: activemq
2020-10-02 17:09:25 +02:00
---
apiVersion: v1
kind: ConfigMap
metadata:
name: activemq-config
labels:
app: activemq
namespace: birbnetes
data:
ARTEMIS_USER: birbnetes
ARTEMIS_PASSWORD: de4d2182