apps/legit/legit.yaml (view raw)
1apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: legit
5 labels:
6 app: legit
7spec:
8 selector:
9 matchLabels:
10 app: legit
11 replicas: 1
12 strategy:
13 type: RollingUpdate
14 template:
15 metadata:
16 labels:
17 app: legit
18 spec:
19 nodeSelector:
20 kubernetes.io/hostname: denna
21 containers:
22 - name: legit
23 image: sini:5000/legit:latest
24 imagePullPolicy: Always
25 ports:
26 - containerPort: 5555
27 args:
28 - -config
29 - /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
50---
51apiVersion: networking.k8s.io/v1
52kind: Ingress
53metadata:
54 name: git.icyphox.sh
55 namespace: default
56 annotations:
57 cert-manager.io/cluster-issuer: "letsencrypt-prod"
58spec:
59 ingressClassName: nginx
60 tls:
61 - hosts:
62 - git.icyphox.sh
63 secretName: git-icyphox-sh-tls
64 rules:
65 - host: git.icyphox.sh
66 http:
67 paths:
68 - path: /
69 pathType: Prefix
70 backend:
71 service:
72 name: legit
73 port:
74 number: 5555
75