mirror of
https://github.com/fhmq/hmq.git
synced 2026-04-22 09:48:33 +00:00
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: mqtt-broker
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: mqtt-broker
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: mqtt-broker
|
|
spec:
|
|
containers:
|
|
- name: mqtt-broker
|
|
image: hmq:v0.1.0
|
|
ports:
|
|
- containerPort: 1883
|
|
- containerPort: 8080
|
|
volumeMounts:
|
|
- name: mqtt-broker
|
|
mountPath: /conf
|
|
subPath: hmq.config
|
|
- name: mqtt-broker
|
|
mountPath: /plugins/kafka/kafka.json
|
|
subPath: kafka.json
|
|
- name: mqtt-broker
|
|
mountPath: /plugins/authttp/http.json
|
|
subPath: kafka.json
|
|
volumes:
|
|
- name: mqtt-broker
|
|
configMap:
|
|
name: mqtt-broker
|
|
items:
|
|
- key: hmq.config
|
|
path: hmq.config
|
|
items:
|
|
- key: http.json
|
|
path: http.json
|
|
items:
|
|
- key: kafka.json
|
|
path: kafka.json
|
|
|