all repos — infra @ 1f3e5c14c9d8d3279ec75c37e9179a4ae5020397

infrastructure manifests and setup notes

apps/readit/readit.yaml (view raw)

 1apiVersion: apps/v1
 2kind: Deployment
 3metadata:
 4  name: readit
 5spec:
 6  replicas: 1
 7  selector:
 8    matchLabels:
 9      app: readit
10  template:
11    metadata:
12      labels:
13        app: readit
14    spec:
15      containers:
16        - name: readit
17          image: sini:5000/readit:latest
18          ports:
19            - containerPort: 3000
20          env:
21            - name: READIT_PORT
22              value: "3000"
23---
24apiVersion: v1
25kind: Service
26metadata:
27  name: readit
28spec:
29  selector:
30    app: readit
31  ports:
32    - protocol: TCP
33      port: 80
34      targetPort: 3000
35---
36apiVersion: networking.k8s.io/v1
37kind: Ingress
38metadata:
39  name: readit
40spec:
41  ingressClassName: nginx
42  rules:
43    - host: red.koti.lan
44      http:
45        paths:
46          - path: /
47            pathType: Prefix
48            backend:
49              service:
50                name: readit
51                port:
52                  number: 80