From 40c2b3a5d0e473f21c051c6af7ffed4ddf646f36 Mon Sep 17 00:00:00 2001 From: "nsingh@pivotal.io" Date: Wed, 19 Jun 2019 09:04:30 -0700 Subject: [PATCH] More changes for theia-spring-boot + git-sync --- theia-extensions/k8s-app/deploy.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/theia-extensions/k8s-app/deploy.yml b/theia-extensions/k8s-app/deploy.yml index a177dfbef..d0f2b3c8a 100644 --- a/theia-extensions/k8s-app/deploy.yml +++ b/theia-extensions/k8s-app/deploy.yml @@ -15,18 +15,16 @@ spec: apiVersion: apps/v1 kind: Deployment metadata: - labels: - app: theia-spring-boot name: theia-spring-boot spec: replicas: 1 selector: matchLabels: - app: theia-spring-boot + name: theia-spring-boot template: metadata: labels: - app: theia-spring-boot + name: theia-spring-boot spec: containers: - name: theia-spring-boot @@ -36,22 +34,19 @@ spec: - containerPort: 3000 volumeMounts: - name: source - mountPath: /home/project + mountPath: /tmp/git - name: git-sync - image: k8s.gcr.io/git-sync-amd64:v2.0.6 - imagePullPolicy: Always + image: k8s.gcr.io/git-sync:v3.0.1 volumeMounts: - name: source - mountPath: /home + mountPath: /tmp/git env: - name: GIT_SYNC_REPO value: https://github.com/spring-projects/spring-petclinic.git - name: GIT_SYNC_BRANCH value: master - - name: GIT_SYNC_ROOT - value: /home - name: GIT_SYNC_DEST - value: /home + value: git-sync volumes: - name: source emptyDir: {}