-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdaanvm.nl.yaml
70 lines (69 loc) · 1.22 KB
/
daanvm.nl.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
---
apiVersion: v1
kind: Service
metadata:
name: daanvm-nl
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 80
selector:
app: daanvm-nl
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: daanvm-nl
spec:
replicas: 1
selector:
matchLabels:
app: daanvm-nl
template:
metadata:
labels:
app: daanvm-nl
spec:
containers:
- name: daanvm-nl-nginx
image: daanvm/daanvm.nl-nginx:latest
ports:
- containerPort: 80
lifecycle:
preStop:
exec:
# Gracefully shutdown nginx
command: ["/bin/bash", "-c", "/bin/sleep5 && /usr/sbin/nginx -s quit"]
---
apiVersion: v1
kind: Service
metadata:
name: daanvm-nl-php
spec:
type: ClusterIP
ports:
- port: 9000
targetPort: 9000
selector:
app: daanvm-nl-php
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: daanvm-nl-php
spec:
replicas: 1
selector:
matchLabels:
app: daanvm-nl-php
template:
metadata:
labels:
app: daanvm-nl-php
spec:
containers:
- name: daanvm-nl-php
image: daanvm/daanvm.nl-php:latest
ports:
- containerPort: 9000