apps: legit: run on sini temporarily
Anirudh Oppiliappan x@icyphox.sh
Fri, 05 Jul 2024 00:06:06 +0300
1 files changed,
23 insertions(+),
5 deletions(-)
jump to
M
apps/legit/legit.yaml
→
apps/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 +