-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yaml.tmpl
63 lines (63 loc) · 1.2 KB
/
deploy.yaml.tmpl
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
run: venv
name: venv
namespace: kube-system
spec:
selector:
matchLabels:
run: venv
template:
metadata:
labels:
run: venv
spec:
volumes:
- name: code
hostPath:
path: $PWD
- name: containers
hostPath:
path: /var/lib/docker/containers
containers:
- name: venv
args:
- tail
- -f
- /dev/null
image: venv
imagePullPolicy: Never
volumeMounts:
- name: containers
mountPath: /var/lib/docker/containers/
readOnly: true
- name: code
mountPath: /code
restartPolicy: Always
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: tailf
name: tailf
namespace: kube-system
spec:
selector:
matchLabels:
name: tailf
template:
metadata:
labels:
name: tailf
spec:
containers:
- name: tailf
image: busybox
args:
- sh
- -c
- 'for i in $(seq 1000); do printf "% 3i %s\n" $i "$(date)"; sleep 2; done'
restartPolicy: Always