apps/radicale/radicale.yaml (view raw)
1apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: radicale
5 labels:
6 app: radicale
7spec:
8 selector:
9 matchLabels:
10 app: radicale
11 template:
12 metadata:
13 labels:
14 app: radicale
15 spec:
16 nodeSelector:
17 kubernetes.io/hostname: sini
18 containers:
19 - name: radicale
20 image: tomsquest/docker-radicale
21 imagePullPolicy: IfNotPresent
22 volumeMounts:
23 - name: collections
24 mountPath: /data/collections
25 - name: tls
26 mountPath: /tls
27 ports:
28 - name: http
29 containerPort: 5232
30 command: ["/venv/bin/radicale", "--config", "/config/config"]
31 args:
32 - --ssl
33 - "true"
34 - -c
35 - /tls/tls.crt
36 - -k
37 - /tls/tls.key
38 volumes:
39 - name: collections
40 persistentVolumeClaim:
41 claimName: radicale-collections
42 - name: tls
43 projected:
44 sources:
45 - secret:
46 name: dav-koti-lan
47 items:
48 - key: tls.crt
49 path: tls.crt
50 - key: tls.key
51 path: tls.key
52---
53apiVersion: v1
54kind: Service
55metadata:
56 name: radicale
57spec:
58 selector:
59 app: radicale
60 ports:
61 - name: https
62 port: 443
63 targetPort: 5232
64---
65apiVersion: v1
66kind: PersistentVolumeClaim
67metadata:
68 name: radicale-collections
69spec:
70 storageClassName: local-path
71 accessModes:
72 - ReadWriteOnce
73 resources:
74 requests:
75 storage: 100Mi