forked from loft-sh/vcluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devspace.yaml
74 lines (74 loc) · 1.76 KB
/
devspace.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: v1beta10
vars:
- name: SYNCER_IMAGE
value: ghcr.io/loft-sh/loft-enterprise/dev-vcluster
- name: K3S_IMAGE
value: rancher/k3s:v1.21.2-k3s1
# Replace this with your clusters service CIDR, you can find it out via
# kubectl apply -f hack/wrong-cluster-ip-service.yaml
- name: SERVICE_CIDR
value: 10.96.0.0/12
images:
vcluster:
image: ${SYNCER_IMAGE}
rebuildStrategy: ignoreContextChanges
build:
buildKit:
skipPush: true
options:
target: builder
deployments:
- name: vcluster
helm:
chart:
name: ./chart
values:
serviceAccount:
create: false
name: default
vcluster:
image: ${K3S_IMAGE}
extraArgs:
- --service-cidr=${SERVICE_CIDR}
rbac:
clusterRole:
create: true
syncer:
readinessProbe:
enabled: false
livenessProbe:
enabled: false
image: ${SYNCER_IMAGE}
noArgs: true
command: ["sleep"]
extraArgs: ["99999999999"]
dev:
terminal:
imageSelector: ${SYNCER_IMAGE}
sync:
- imageSelector: ${SYNCER_IMAGE}
excludePaths:
- '**'
- '!/pkg'
- '!/cmd'
- '!/vendor'
- '!/hack'
- '!/go.mod'
- '!/go.sum'
commands:
- name: dev
command: "devspace dev -n vcluster"
- name: deploy
command: "devspace deploy --profile deploy -n vcluster -d"
profiles:
- name: deploy
patches:
- op: remove
path: images.vcluster.rebuildStrategy
- op: replace
path: images.vcluster.build.buildKit
value: {}
- op: replace
path: deployments[0].helm.values.syncer
value:
image: ${SYNCER_IMAGE}