Gluttony-Cluster/node-red/node-red-deployment.yaml

37 lines
765 B
YAML
Raw Normal View History

2023-11-01 23:48:27 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: node-red
namespace: node-red-ns
spec:
replicas: 1
selector:
matchLabels:
app: node-red
template:
metadata:
labels:
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:
- name: freshrss
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:
- name: node-red-data
persistentVolumeClaim:
claimName: node-red-pvc
2023-11-02 00:15:13 +00:00
- name: settings-file
configMap:
name: nodered-settings
2023-11-01 23:48:27 +00:00