apps/legit/legit.yaml (view raw)
1apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: legit
5 labels:
6 app: legit
7spec:
8 nodeSelector:
9 kubernetes.io/hostname: denna
10 selector:
11 matchLabels:
12 app: legit
13 replicas: 1
14 strategy:
15 type: RollingUpdate
16 template:
17 metadata:
18 labels:
19 app: legit
20 spec:
21 containers:
22 - name: legit
23 image: sini:5000/legit:latest
24 ports:
25 - containerPort: 5555
26 command: ["/bin/sh"]
27 args:
28 - -c
29 - /legit -config /config.yaml
30 volumeMounts:
31 - name: repos
32 mountPath: /var/www/git
33 readOnly: true
34 volumes:
35 - name: repos
36 hostPath:
37 path: /home/git
38---
39apiVersion: v1
40kind: Service
41metadata:
42 name: legit
43spec:
44 selector:
45 app: legit
46 ports:
47 - name: legit-http
48 port: 5555
49 targetPort: 5555