-
Notifications
You must be signed in to change notification settings - Fork 2
/
devspace.yaml
62 lines (62 loc) · 1.43 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
version: v1beta11
vars:
- name: PLUGIN_IMAGE
value: docker.io/flanksource/vcluster-sync-host-secrets
- name: K3S_IMAGE
value: rancher/k3s:v1.23.1-k3s1
- name: SERVICE_CIDR
command: vcluster get service-cidr
hooks:
- name: Install Dependencies
events: ["after:deploy"]
command: |-
# Install dependencies
if [ ! -d "vendor" ]; then
echo "Executing 'go mod vendor'..."
go mod vendor
fi
images:
vcluster:
image: ${PLUGIN_IMAGE}
dockerfile: ./Dockerfile.dev
rebuildStrategy: ignoreContextChanges
deployments:
- name: vcluster
helm:
chart:
name: vcluster
repo: https://charts.loft.sh
version: 0.11.1
valuesFiles:
- plugin.yaml
values:
plugin:
pull-secret-sync:
image: ${PLUGIN_IMAGE}
serviceCIDR: ${SERVICE_CIDR}
serviceAccount:
create: false
name: default
vcluster:
image: ${K3S_IMAGE}
rbac:
clusterRole:
create: true
role:
extended: true
syncer:
readinessProbe:
enabled: false
livenessProbe:
enabled: false
dev:
terminal:
imageSelector: ${PLUGIN_IMAGE}
command: ["./devspace_start.sh"]
ports:
- imageSelector: ${PLUGIN_IMAGE}
forward:
- port: 2346
remotePort: 2345
sync:
- imageSelector: ${PLUGIN_IMAGE}