diff --git a/theia-extensions/k8s-app/deploy.yml b/theia-extensions/k8s-app/deploy.yml index ab5b64d36..a177dfbef 100644 --- a/theia-extensions/k8s-app/deploy.yml +++ b/theia-extensions/k8s-app/deploy.yml @@ -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: