diff options
Diffstat (limited to 'roles/apps/node-red/instance/templates')
-rw-r--r-- | roles/apps/node-red/instance/templates/pod-spec.yml.j2 | 21 |
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 |