Created
May 21, 2018 16:13
-
-
Save DazWilkin/f355f03d94ec4b2475393586cfde170e to your computer and use it in GitHub Desktop.
Running Node-RED on Google Cloud Platform under Kubernetes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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