Add node red
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tyler Perkins 2023-11-01 19:48:27 -04:00
parent b28c21f037
commit 9057cb0879
3 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,28 @@
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
spec:
containers:
- name: freshrss
image: nodered/node-red
ports:
- containerPort: 1880
volumeMounts:
- name: node-red-data
mountPath: /data
volumes:
- name: node-red-data
persistentVolumeClaim:
claimName: node-red-pvc

View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: node-red-pvc
namespace: node-red-ns
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 1Gi

View File

@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: node-red-service
namespace: node-red-ns
spec:
selector:
app: node-red
ports:
- protocol: TCP
port: 80
targetPort: 1880
type: LoadBalancer