-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevspace.yaml
More file actions
81 lines (76 loc) · 1.97 KB
/
devspace.yaml
File metadata and controls
81 lines (76 loc) · 1.97 KB
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
75
76
77
78
79
80
version: v2beta1
name: cockpit
vars:
DEVSPACE_FLAGS:
value: "-n web"
DEVSPACE_ENV_FILE: ".env"
pullSecrets:
github-registry:
registry: ghcr.io
username: ${GITHUB_USERNAME}
password: ${GITHUB_ACCESS_TOKEN}
deployments:
cockpit:
namespace: web
helm:
chart:
name: oci://ghcr.io/groundsgg/charts/cockpit:0.1.1
username: ${GITHUB_USERNAME}
password: ${GITHUB_ACCESS_TOKEN}
valuesFiles: ["dev/values.yaml"]
dev:
cockpit:
namespace: web
imageSelector: ghcr.io/groundsgg/cockpit/cockpit:edge
devImage: ghcr.io/groundsgg/containers/dev-container-node:v0.1.4
sync:
- path: ./
excludePaths:
- devspace_start.sh
- node_modules
- .git
- .devspace
- dist
persistPaths:
- path: /node_modules
persistenceOptions:
name: ${DEVSPACE_NAME}-cache-pvc
patches:
- op: remove
path: spec.securityContext.runAsNonRoot
- op: replace
path: spec.securityContext.runAsUser
value: 0
- op: replace
path: spec.securityContext.runAsGroup
value: 0
- op: remove
path: spec.securityContext.readOnlyRootFilesystem
- op: remove
path: spec.containers.name=cockpit.securityContext.readOnlyRootFilesystem
- op: add
path: spec.containers.name=cockpit.securityContext
value:
runAsUser: 0
runAsGroup: 0
- op: remove
path: spec.containers.name=cockpit.resources.limits
- op: add
path: spec.volumes/-
value:
name: npm-cache
emptyDir: {}
- op: add
path: spec.containers.name=cockpit.volumeMounts/-
value:
name: npm-cache
mountPath: /root/.npm
terminal:
command: >-
DEVSPACE_NAME=${DEVSPACE_NAME}
/app/devspace_start.sh
proxyCommands:
- command: devspace
- command: kubectl
- command: helm
- command: git