all repos — infra @ f752d418fb45cbdb1d3021468df2171bce4d2608

infrastructure manifests and setup notes

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
56spec:
57  ingressClassName: caddy
58  rules:
59  - host: git.icyphox.sh
60    http:
61      paths:
62      - path: /
63        pathType: Prefix
64        backend:
65          service:
66            name: legit
67            port:
68              number: 5555
69