This commit is contained in:
parent
b28c21f037
commit
9057cb0879
28
node-red/node-red-deployment.yaml
Normal file
28
node-red/node-red-deployment.yaml
Normal 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
|
||||
|
13
node-red/node-red-pvc.yaml
Normal file
13
node-red/node-red-pvc.yaml
Normal 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
|
||||
|
14
node-red/node-red-service.yaml
Normal file
14
node-red/node-red-service.yaml
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user