apps: add readit
Anirudh Oppiliappan x@icyphox.sh
Tue, 05 Nov 2024 16:49:36 +0200
3 files changed,
56 insertions(+),
0 deletions(-)
M
apps/coredns/coredns.yaml
→
apps/coredns/coredns.yaml
@@ -10,6 +10,7 @@ rewrite name feed.koti.lan miniflux.default.svc.koti.lan
rewrite name g.koti.lan grafana.monitoring.svc.koti.lan rewrite name files.garage.koti.lan garage.default.svc.koti.lan rewrite name pass.koti.lan koti-ingress-nginx-controller.ingress-nginx.svc.koti.lan + rewrite name red.koti.lan koti-ingress-nginx-controller.ingress-nginx.svc.koti.lan } kind: ConfigMap metadata:
A
apps/readit/readit.yaml
@@ -0,0 +1,52 @@
+apiVersion: apps/v1 +kind: Deployment +metadata: + name: readit +spec: + replicas: 1 + selector: + matchLabels: + app: readit + template: + metadata: + labels: + app: readit + spec: + containers: + - name: readit + image: sini:5000/readit:latest + ports: + - containerPort: 3000 + env: + - name: READIT_PORT + value: "3000" +--- +apiVersion: v1 +kind: Service +metadata: + name: readit +spec: + selector: + app: readit + ports: + - protocol: TCP + port: 80 + targetPort: 3000 +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: readit +spec: + ingressClassName: nginx + rules: + - host: red.koti.lan + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: readit + port: + number: 80