-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchirpstack-mosquitto.yaml
52 lines (49 loc) · 1011 Bytes
/
chirpstack-mosquitto.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
43
44
45
46
47
48
49
apiVersion: apps/v1
kind: Deployment
metadata:
name: chirpstack-mosquitto
spec:
selector:
matchLabels:
app: chirpstack-mosquitto
template:
metadata:
labels:
app: chirpstack-mosquitto
spec:
containers:
- name: chirpstack-mosquitto
image: eclipse-mosquitto:2
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 1883
volumeMounts:
- name: chirpstack-mosquitto-config
mountPath: /mosquitto/config/
volumes:
- name: chirpstack-mosquitto-config
configMap:
name: chirpstack-mosquitto-config
---
apiVersion: v1
kind: ConfigMap
metadata:
name: chirpstack-mosquitto-config
data:
mosquitto.conf: |
listener 1883
allow_anonymous true
---
apiVersion: v1
kind: Service
metadata:
name: chirpstack-mosquitto-service
spec:
selector:
app: chirpstack-mosquitto
ports:
- port: 1883
targetPort: 1883