-
Notifications
You must be signed in to change notification settings - Fork 0
/
udonite-pod.yml
78 lines (78 loc) · 1.77 KB
/
udonite-pod.yml
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
# Save the output of this file and use kubectl create -f to import
# it into Kubernetes.
#
# Created with podman-4.0.2
apiVersion: v1
kind: Pod
metadata:
labels:
app: udonite
name: udonite
spec:
containers:
- args:
- ./run.sh
envFrom:
- configMapRef:
name: envmap
optional: false
image: localhost/udonite/udonite-server:latest
name: server
ports:
- containerPort: 80
hostPort: 80
- containerPort: 443
hostPort: 443
resources: {}
securityContext:
capabilities:
drop:
- CAP_MKNOD
- CAP_AUDIT_WRITE
volumeMounts:
- mountPath: /var/www/public_html:Z
name: udonite-container-public_html-host-0
- mountPath: /srv/udonite-server/data:Z
name: udonite-container-data-host-1
- args:
- nginx
- -g
- daemon off;
envFrom:
- configMapRef:
name: envmap
optional: false
image: localhost/udonite/nginx-prod:latest
name: nginx
resources: {}
securityContext:
capabilities:
drop:
- CAP_MKNOD
- CAP_AUDIT_WRITE
volumeMounts:
- mountPath: /var/www/public_html:Z
name: udonite-container-public_html-host-0
readOnly: true
- mountPath: /etc/letsencrypt:Z
name: udonite-container-letsencrypt-etc_letsencrypt-host-1
readOnly: true
hostAliases:
- hostnames:
- udonite-server
ip: 127.0.0.1
restartPolicy: Never
volumes:
- hostPath:
path: ./public_html
type: Directory
name: udonite-container-public_html-host-0
- hostPath:
path: ./data
type: Directory
name: udonite-container-data-host-1
- hostPath:
path: ./letsencrypt/etc_letsencrypt
type: Directory
name: udonite-container-letsencrypt-etc_letsencrypt-host-1
status: {}