106 lines
2.0 KiB
YAML
106 lines
2.0 KiB
YAML
kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: activemq-pv-claim
|
|
namespace: birbnetes
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
storageClassName: longhorn
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
---
|
|
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
|
|
envFrom:
|
|
- configMapRef:
|
|
name: activemq-config
|
|
resources:
|
|
requests:
|
|
memory: "1024Mi"
|
|
cpu: "500m"
|
|
limits:
|
|
memory: "4069Mi"
|
|
cpu: "2000m"
|
|
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
|
|
|
|
---
|
|
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
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: activemq-config
|
|
labels:
|
|
app: activemq
|
|
namespace: birbnetes
|
|
data:
|
|
ARTEMIS_USER: birbnetes
|
|
ARTEMIS_PASSWORD: de4d2182
|