update helm chart + development machine instructions
This commit is contained in:
0
helm/templates/MQTT/configmap.yml
Normal file
0
helm/templates/MQTT/configmap.yml
Normal file
12
helm/templates/MQTT/pvc.yml
Normal file
12
helm/templates/MQTT/pvc.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: mosquitto-pvc
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: microk8s-hostpath
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
|
||||
0
helm/templates/MQTT/service.yml
Normal file
0
helm/templates/MQTT/service.yml
Normal file
28
helm/templates/MQTT/statefulset.yml
Normal file
28
helm/templates/MQTT/statefulset.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: mosquitto
|
||||
spec:
|
||||
serviceName: mosquitto
|
||||
selector:
|
||||
matchLabels:
|
||||
app: mosquitto
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mosquitto
|
||||
spec:
|
||||
containers:
|
||||
- name: mosquitto
|
||||
image: eclipse-mosquitto
|
||||
imagePullPolicy: "IfNotPresent"
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
volumeMounts:
|
||||
- name: mosquitto-data
|
||||
mountPath: /mosquitto/data
|
||||
volumes:
|
||||
- name: mosquitto-data
|
||||
persistentVolumeClaim:
|
||||
claimName: mosquitto-pvc
|
||||
Reference in New Issue
Block a user