Skip to content

Instantly share code, notes, and snippets.

@DazWilkin
Created May 21, 2018 16:13
Show Gist options
  • Save DazWilkin/f355f03d94ec4b2475393586cfde170e to your computer and use it in GitHub Desktop.
Save DazWilkin/f355f03d94ec4b2475393586cfde170e to your computer and use it in GitHub Desktop.
Running Node-RED on Google Cloud Platform under Kubernetes
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: node-red
labels:
run: node-red
spec:
replicas: 1
selector:
matchLabels:
run: node-red
template:
metadata:
labels:
run: node-red
spec:
containers:
- name: node-red
image: nodered/node-red-docker:latest
imagePullPolicy: Always
ports:
- name: http
containerPort: 1880
protocol: TCP
...
---
apiVersion: v1
kind: Service
metadata:
labels:
run: node-red
name: node-red
spec:
ports:
- port: 1880
protocol: TCP
targetPort: 1880
selector:
run: node-red
type: NodePort
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment