Skip to content

Instantly share code, notes, and snippets.

@Console32
Created September 9, 2021 14:35
Show Gist options
  • Save Console32/5f1a82ef9db8fe9856cab9b857c5603b to your computer and use it in GitHub Desktop.
Save Console32/5f1a82ef9db8fe9856cab9b857c5603b to your computer and use it in GitHub Desktop.
apiVersion: 1
kind: Service
metadata:
name: nodered
spec:
selector:
app: nodered
ports:
- port: 1880
protocol: TCP
targetPort: 1880
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nodered
spec:
selector:
matchLabels:
app: nodered
replicas: 2
template:
metadata:
labels:
app: nodered
spec:
containers:
- name: nodered
image: nodered/node-red
ports:
- containerPort: 1880
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment