2023-11-01 23:48:27 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2023-12-03 02:51:04 +00:00
|
|
|
name: node-red
|
2023-11-01 23:48:27 +00:00
|
|
|
namespace: node-red-ns
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
2023-12-03 02:51:04 +00:00
|
|
|
app: node-red
|
2023-11-01 23:48:27 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2023-12-03 02:51:04 +00:00
|
|
|
app: node-red
|
2023-11-01 23:57:28 +00:00
|
|
|
spec:
|
2023-11-02 00:02:01 +00:00
|
|
|
securityContext:
|
|
|
|
fsGroup: 1000
|
2023-11-01 23:57:28 +00:00
|
|
|
containers:
|
2023-11-30 02:23:17 +00:00
|
|
|
- name: node-red
|
2023-11-01 23:57:28 +00:00
|
|
|
image: nodered/node-red
|
|
|
|
ports:
|
|
|
|
- containerPort: 1880
|
|
|
|
volumeMounts:
|
|
|
|
- name: node-red-data
|
|
|
|
mountPath: /data
|
2023-11-02 00:15:13 +00:00
|
|
|
- name: settings-file
|
|
|
|
mountPath: /data/settings.js
|
|
|
|
subPath: settings.js
|
2023-11-01 23:57:28 +00:00
|
|
|
volumes:
|
2023-12-03 02:51:04 +00:00
|
|
|
- name: node-red-data
|
2023-11-01 23:57:28 +00:00
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: node-red-pvc
|
2023-11-02 00:15:13 +00:00
|
|
|
- name: settings-file
|
|
|
|
configMap:
|
|
|
|
name: nodered-settings
|