Added service to theia K8s deploy.yml

This commit is contained in:
nsingh@pivotal.io
2019-06-13 08:48:47 -07:00
parent 5f85d0e087
commit ba72242a78

View File

@@ -1,20 +1,37 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: theia-spring-boot
name: theia-spring-boot
spec:
type: NodePort
selector:
app: theia-spring-boot
ports:
- port: 80
targetPort: 3000
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: theia-spring-boot
name: theia-spring-boot
spec:
replicas: 1
selector:
matchLabels:
name: theia-spring-boot
matchLabels:
app: theia-spring-boot
template:
metadata:
labels:
name: theia-spring-boot
app: theia-spring-boot
spec:
containers:
- name: theia-spring-boot
image: theia-spring-boot
imagePullPolicy: Never
ports:
- containerPort: 3000
volumeMounts: