-
Notifications
You must be signed in to change notification settings - Fork 10
/
devspace.yaml
74 lines (70 loc) · 2.22 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: v2beta1
name: generic-crd-plugin
vars:
PLUGIN_IMAGE: ghcr.io/loft-sh/vcluster-generic-crd-plugin
DEVSPACE_FLAGS: "-n vcluster"
images:
vcluster:
image: ${PLUGIN_IMAGE}
dockerfile: ./Dockerfile.dev
rebuildStrategy: ignoreContextChanges
deployments:
vcluster:
helm:
chart:
name: vcluster
repo: https://charts.loft.sh
valuesFiles:
- plugin.yaml
values:
sync:
nodes:
enabled: true
syncAllNodes: true
enableScheduler: true
plugin:
generic-crd-plugin:
image: ${PLUGIN_IMAGE}
rbac:
role:
extraRules:
# Config for testing
- apiGroups: ["cert-manager.io"]
resources: ["issuers", "certificates", "certificaterequests"]
verbs: ["create", "delete", "patch", "update", "get", "list", "watch"]
- apiGroups: ["monitoring.coreos.com"]
resources: ["servicemonitors"]
verbs: ["create", "delete", "patch", "update", "get", "list", "watch"]
env:
# Config for testing
# run `make install-cert-manager` within the host kube context before using
# Then in vcluster context create hack/selfsigned-issuer.yaml
# and hack/generate-dummy-certificate.yaml
#
# For convenience export config inside the dev container from the hack/test-config.yaml
# export CONFIG=$(cat hack/test-config.yaml)
- name: CONFIG
value: |-
version: v1beta1
mappings: []
syncer:
readinessProbe:
enabled: false
livenessProbe:
enabled: false
vcluster:
extraArgs:
- "--kube-apiserver-arg='v=6'"
dev:
vcluster:
imageSelector: ${PLUGIN_IMAGE}
resources:
limits:
cpu: "0" # to prevent CPU throttling during compilation
memory: "0" # to prevent OOM kills which can happen during compilation
terminal:
command: "./devspace_start.sh"
ports:
- port: 2346:2345
sync:
- path: ./:./