blob: ddb27ac2122057da300bae2a949320787c9ba7a1 (
plain)
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
|
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cgit
namespace: personal-services
labels:
app.kubernetes.io/created-by: tyil
app.kubernetes.io/managed-by: manual
app.kubernetes.io/name: cgit
app.kubernetes.io/part-of: personal-services
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/created-by: tyil
app.kubernetes.io/managed-by: manual
app.kubernetes.io/name: cgit
app.kubernetes.io/part-of: personal-services
strategy:
type: RollingUpdate
template:
metadata:
labels:
app.kubernetes.io/created-by: tyil
app.kubernetes.io/managed-by: manual
app.kubernetes.io/name: cgit
app.kubernetes.io/part-of: personal-services
spec:
containers:
- image: emarcs/nginx-cgit
name: cgit
ports:
- containerPort: 80
volumeMounts:
- mountPath: /srv/git
name: data
- mountPath: /etc/cgitrc
subPath: cgitrc
name: config
restartPolicy: Always
volumes:
- name: data
hostPath:
path: /mnt/pool/git
type: DirectoryOrCreate
- name: config
configMap:
name: cgit
...
|