summaryrefslogtreecommitdiff
path: root/roles/apps/node-red/instance/templates
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-12-22 01:47:40 +0100
committerChristian Pointner <equinox@spreadspace.org>2023-12-22 01:47:40 +0100
commit66a82eedd9cf448fa62eecb389c707fe8f877366 (patch)
tree314152799516680ccc87596a45b058d704bb217d /roles/apps/node-red/instance/templates
parentadd monitoring for mosquitto (diff)
initial role apps/node-red (WIP)
Diffstat (limited to 'roles/apps/node-red/instance/templates')
-rw-r--r--roles/apps/node-red/instance/templates/pod-spec.yml.j221
1 files changed, 21 insertions, 0 deletions
diff --git a/roles/apps/node-red/instance/templates/pod-spec.yml.j2 b/roles/apps/node-red/instance/templates/pod-spec.yml.j2
new file mode 100644
index 00000000..29f2161a
--- /dev/null
+++ b/roles/apps/node-red/instance/templates/pod-spec.yml.j2
@@ -0,0 +1,21 @@
+containers:
+- name: node-red
+ image: "nodered/node-red:{{ node_red_instances[node_red_instance].version }}-debian"
+ volumeMounts:
+ - name: tls
+ mountPath: /tls
+ readOnly: true
+ - name: data
+ mountPath: /data
+ ports:
+ - containerPort: 1880
+ hostPort: {{ node_red_instances[node_red_instance].port }}
+volumes:
+- name: tls
+ hostPath:
+ path: "{{ node_red_instance_basepath }}/tls"
+ type: Directory
+- name: data
+ hostPath:
+ path: "{{ node_red_instance_basepath }}/data"
+ type: Directory