first-app service

This commit is contained in:
Edward Viaene
2016-11-16 18:38:48 +00:00
parent 7fed7e9896
commit 340473654b
2 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: helloworld-service
spec:
ports:
- port: 80
targetPort: nodejs-port
protocol: TCP
selector:
app: helloworld
type: LoadBalancer

View File

@@ -9,4 +9,5 @@ spec:
- name: k8s-demo
image: wardviaene/k8s-demo
ports:
- containerPort: 3000
- name: nodejs-port
containerPort: 3000