-
Notifications
You must be signed in to change notification settings - Fork 0
/
ss-artemis.yaml
42 lines (42 loc) · 1.02 KB
/
ss-artemis.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: artemis
spec:
selector:
matchLabels:
app: artemis # has to match .spec.template.metadata.labels
serviceName: "artemis"
replicas: 1 # by default is 1
template:
metadata:
labels:
app: artemis # has to match .spec.selector.matchLabels
spec:
terminationGracePeriodSeconds: 10
containers:
- name: artemis
image: qoricode/activemq-artemis
ports:
- containerPort: 8161
name: web
- containerPort: 61616
name: all
- containerPort: 9404
name: metrics
- containerPort: 5672
name: amqp
- containerPort: 1883
name: mqtt
volumeMounts:
- name: data
mountPath: /var/lib/artemis-instance
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: "kubevirt-hostpath-provisioner"
resources:
requests:
storage: 5Gi