-
Notifications
You must be signed in to change notification settings - Fork 415
Expand file tree
/
Copy pathdevspace.yaml
More file actions
executable file
·66 lines (64 loc) · 1.68 KB
/
Copy pathdevspace.yaml
File metadata and controls
executable file
·66 lines (64 loc) · 1.68 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
version: v2beta1
name: inline-manifest
deployments:
quickstart:
kubectl:
inlineManifest: |-
kind: Deployment
apiVersion: apps/v1
metadata:
name: devspace
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/component: default
app.kubernetes.io/name: devspace-app
template:
metadata:
labels:
app.kubernetes.io/component: default
app.kubernetes.io/name: devspace-app
spec:
containers:
- name: default
# The correct image tag will be inserted during devspace dev / devspace deploy
image: mydockeruser/quickstart
---
apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/name: devspace-app
name: external
spec:
ports:
- name: port-0
port: 80
protocol: TCP
targetPort: 3000
selector:
app.kubernetes.io/component: default
app.kubernetes.io/name: devspace-app
type: ClusterIP
dev:
my-dev:
imageSelector: mydockeruser/quickstart
# Use this image for development
devImage: loftsh/javascript:latest
# Start port forwarding
ports:
- port: 3000
# Start file sync
sync:
- path: ./
excludePaths:
- node_modules
# Open url as soon as ready
open:
- url: http://localhost:3000
# Start terminal forwarding with script entrypoint
terminal:
command: ./devspace_start.sh
# Start remote ssh server
ssh: {}