-
Notifications
You must be signed in to change notification settings - Fork 2
/
devspace.yaml
executable file
·96 lines (87 loc) · 2.23 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: v1beta11
vars:
- name: IMAGE
value: ghcr.io/suecodelabs/cnfuzz
deployments:
- name: cnfuzz
helm:
chart:
name: ./charts/cnfuzz
values:
scheduler:
restlerConfig:
timeBudget: 0.001
minio:
persistence:
size: 1Gi
resources:
requests:
memory: 1Gi
replicas: 1
mode: standalone
redis:
architecture: standalone
replica:
replicaCount: 1
dev:
sync:
- name: devcnfuzz
imageSelector: ${IMAGE}
localSubPath: ./
containerPath: /go
excludePaths:
- .git/
- .bash_history
downloadExcludeFile:
- air.toml
uploadExcludePaths:
- .vscode/
- .idea/
- example/
- dist/
- images/
ports:
- imageSelector: ${IMAGE}
forward:
- port: 2345
remotePort: 2345
terminal:
imageSelector: ${IMAGE}
command:
- ./devspace_start.sh
replacePods:
- imageSelector: ${IMAGE}
replaceImage: golang:1.18
patches:
- op: replace
path: spec.containers[0].command
value: ["sleep"]
- op: replace
path: spec.containers[0].args
value: ["9999999"]
- op: remove
path: spec.containers[0].securityContext
- op: remove
path: spec.containers[0].readinessProbe
- op: remove
path: spec.containers[0].livenessProbe
hooks:
- events: ["after:initialSync:devcnfuzz"]
command: |
unset GOPATH
go mod download
go install github.com/go-delve/delve/cmd/dlv@latest
go install github.com/cosmtrek/air@latest
container:
imageSelector: ${IMAGE}
# `profiles` lets you modify the config above for different environments (e.g. dev vs production)
#profiles:
# This profile is called `production` and you can use it for example using: devspace deploy -p production
# We generally recommend using the base config without any profiles as optimized for development (e.g. image build+push is disabled)
#- name: production
# This profile adds our image to the config so that DevSpace will build, tag and push our image before the deployment
# merge:
# images:
# app:
# image: ${IMAGE} # Use the value of our `${IMAGE}` variable here (see vars above)
# dockerfile: ./Dockerfile