all repos — infra @ 6e48325a81b810b901bfa5e5dcbd464fa535c859

infrastructure manifests and setup notes

apps: legit: run on sini temporarily
Anirudh Oppiliappan x@icyphox.sh
Fri, 05 Jul 2024 00:06:06 +0300
commit

6e48325a81b810b901bfa5e5dcbd464fa535c859

parent

a9dae339c442c7fd11cfb2bfb0901a274fe71925

1 files changed, 23 insertions(+), 5 deletions(-)

jump to
M apps/legit/legit.yamlapps/legit/legit.yaml

@@ -5,8 +5,6 @@ name: legit

labels: app: legit spec: - nodeSelector: - kubernetes.io/hostname: denna selector: matchLabels: app: legit

@@ -21,12 +19,12 @@ spec:

containers: - name: legit image: sini:5000/legit:latest + imagePullPolicy: Always ports: - containerPort: 5555 - command: ["/bin/sh"] args: - - -c - - /legit -config /config.yaml + - -config + - /config.yaml volumeMounts: - name: repos mountPath: /var/www/git

@@ -47,3 +45,23 @@ ports:

- name: legit-http port: 5555 targetPort: 5555 +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: git.icyphox.sh + namespace: default +spec: + ingressClassName: caddy + rules: + - host: git.icyphox.sh + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: legit + port: + number: 5555 +