blob: 4a6310cf95345c2c5edcfc40502d5b7bdb6979f6 [file] [log] [blame]
giolekva4c2413b2021-10-21 19:14:08 +04001---
2apiVersion: v1
3kind: Namespace
4metadata:
5 name: app-alps
6---
7apiVersion: v1
8kind: Service
9metadata:
10 name: alps
11 namespace: app-alps
12spec:
13 type: ClusterIP
14 selector:
15 app: alps
16 ports:
17 - name: http
18 port: 80
19 targetPort: http
20 protocol: TCP
21---
22apiVersion: networking.k8s.io/v1
23kind: Ingress
24metadata:
25 name: ingress
26 namespace: app-alps
27 annotations:
28 cert-manager.io/cluster-issuer: "selfsigned-ca"
29 acme.cert-manager.io/http01-edit-in-place: "true"
30spec:
31 ingressClassName: nginx-private
32 tls:
33 - hosts:
34 - mail.pcloud
35 secretName: cert-mail.pcloud
36 rules:
37 - host: mail.pcloud
38 http:
39 paths:
40 - path: /
41 pathType: Prefix
42 backend:
43 service:
44 name: alps
45 port:
46 name: http
47---
48apiVersion: apps/v1
49kind: Deployment
50metadata:
51 name: alps
52 namespace: app-alps
53spec:
54 selector:
55 matchLabels:
56 app: alps
57 replicas: 1
58 template:
59 metadata:
60 labels:
61 app: alps
62 spec:
63 containers:
64 - name: alps
65 image: giolekva/alps:latest
66 imagePullPolicy: Always
67 ports:
68 - name: http
69 containerPort: 8080
70 protocol: TCP
71 workingDir: "/alps"
72 command:
73 - "./alps"
74 - "--addr=0.0.0.0:8080"
75 - "--theme=alps"
76 - "imaps://mx1.lekva.me:993"
77 - "smtps://mx1.lekva.me:465"
78 resources:
79 requests:
80 memory: "10Mi"
81 cpu: "10m"
82 limits:
83 memory: "20Mi"
84 cpu: "100m"
85 tolerations:
86 - key: "pcloud"
87 operator: "Equal"
88 value: "role"
89 effect: "NoSchedule"