apps/imaginary/imaginary.yaml (view raw)
1apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: imaginary
5 labels:
6 app: imaginary
7spec:
8 selector:
9 matchLabels:
10 app: imaginary
11 template:
12 metadata:
13 labels:
14 app: imaginary
15 spec:
16 containers:
17 - name: imaginary
18 image: h2non/imaginary:latest
19 imagePullPolicy: IfNotPresent
20 volumeMounts:
21 - name: film
22 mountPath: /film
23 readOnly: false
24 ports:
25 - name: http
26 containerPort: 9000
27 env:
28 - name: DEBUG
29 value: "*"
30 command: ["imaginary"]
31 args:
32 - -mount
33 - /film
34 - -a
35 - 0.0.0.0
36 volumes:
37 - name: film
38 hostPath:
39 path: /var/lib/uploads/film
40---
41apiVersion: v1
42kind: Service
43metadata:
44 name: imaginary
45spec:
46 selector:
47 app: imaginary
48 ports:
49 - name: imaginary-http
50 port: 9000
51 targetPort: 9000
52---
53apiVersion: networking.k8s.io/v1
54kind: Ingress
55metadata:
56 name: x.icyphox.sh
57 namespace: default
58spec:
59 ingressClassName: caddy
60 rules:
61 - host: x.icyphox.sh
62 http:
63 paths:
64 - path: /fit
65 pathType: Prefix
66 backend:
67 service:
68 name: imaginary
69 port:
70 number: 9000
71 - path: /
72 pathType: Prefix
73 backend:
74 service:
75 name: fsrv
76 port:
77 number: 9393