-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy-mosquitto.yaml
61 lines (61 loc) · 1.26 KB
/
deploy-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
50
51
52
53
54
55
56
57
58
59
60
61
kind: DeploymentConfig
apiVersion: apps.openshift.io/v1
metadata:
name: mosquitto-ephemeral
spec:
replicas: 1
strategy:
type: Rolling
selector:
name: mosquitto-ephemeral
template:
metadata:
name: mosquitto-ephemeral
labels:
name: mosquitto-ephemeral
spec:
containers:
- env:
- name: SOLUNAR_WS_LOG_LEVEL
value: "1"
name: mosquitto-ephemeral
image: quay.io/kboone/mosquitto-ephemeral:latest
imagePullPolicy: Always
ports:
- containerPort: 1883
protocol: TCP
- containerPort: 8883
protocol: TCP
resources:
limits:
memory: 128Mi
securityContext:
privileged: false
---
kind: Service
apiVersion: v1
metadata:
name: mosquitto-ephemeral-tcp
spec:
ports:
- name: mosquitto-ephemeral-tcp
port: 1883
protocol: TCP
targetPort: 1883
nodePort: 32321
selector:
name: mosquitto-ephemeral
type: NodePort
---
kind: Service
apiVersion: v1
metadata:
name: mosquitto-ephemeral-tls
spec:
ports:
- name: mosquitto-ephemeral-tls
port: 8883
protocol: TCP
targetPort: 8883
selector:
name: mosquitto-ephemeral