new demos

This commit is contained in:
Edward Viaene
2016-11-21 14:12:10 +01:00
parent c4a0c1806a
commit 8378524f5e
2 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: helloworld-deployment
spec:
replicas: 3
template:
metadata:
labels:
app: helloworld
spec:
containers:
- name: k8s-demo
image: wardviaene/k8s-demo
ports:
- name: nodejs-port
containerPort: 3000
nodeSelector:
hardware: high-spec

View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: helloworld-service
spec:
ports:
- port: 31001
nodePort: 31001
targetPort: nodejs-port
protocol: TCP
selector:
app: helloworld
type: NodePort