More changes for theia-spring-boot + git-sync
This commit is contained in:
@@ -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: {}
|
||||
|
||||
Reference in New Issue
Block a user