-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpod.yaml
64 lines (63 loc) · 1.44 KB
/
pod.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
# Save the output of this file and use kubectl create -f to import
# it into Kubernetes.
#
# Created with podman-3.4.4
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: "2025-01-16T22:13:38Z"
labels:
app: podshortify
name: pod_shortify
spec:
containers:
- args:
- postgres
image: docker.io/library/postgres:latest
name: postgres
resources: {}
securityContext:
capabilities:
drop:
- CAP_MKNOD
- CAP_NET_RAW
- CAP_AUDIT_WRITE
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: shortify_docker-nest-postgres-pvc
- args:
- redis-server
image: docker.io/library/redis:latest
name: redis
resources: {}
securityContext:
capabilities:
drop:
- CAP_MKNOD
- CAP_NET_RAW
- CAP_AUDIT_WRITE
volumeMounts:
- mountPath: /data
name: shortify_docker-nest-redis-pvc
- args:
- sh
- -c
- npm run migration:run; npm run start:dev
image: localhost/shortify_shortify:latest
name: shortify
resources: {}
securityContext:
capabilities:
drop:
- CAP_MKNOD
- CAP_NET_RAW
- CAP_AUDIT_WRITE
restartPolicy: Always
volumes:
- name: shortify_docker-nest-postgres-pvc
persistentVolumeClaim:
claimName: shortify_docker-nest-postgres
- name: shortify_docker-nest-redis-pvc
persistentVolumeClaim:
claimName: shortify_docker-nest-redis
status: {}