seed: devroadmap-demo — self-hosted CI loop
Some checks failed
build-and-deploy / build-deploy (push) Failing after 49s

This commit is contained in:
automation 2026-09-14 10:08:07 +03:00
commit 04461a10e5
7 changed files with 213 additions and 0 deletions

34
deploy/deployment.yaml Normal file
View file

@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: devroadmap-demo
spec:
replicas: 1
template:
spec:
nodeSelector:
kubernetes.io/arch: arm64 # image built native arm64 on the runner
containers:
- name: web
image: harbor.devroadmap.ru/homelab/devroadmap-demo:bootstrap
ports:
- name: http
containerPort: 80
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 3
periodSeconds: 10
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 10
periodSeconds: 20
resources:
requests:
cpu: 10m
memory: 16Mi
limits:
memory: 64Mi

21
deploy/kustomization.yaml Normal file
View file

@ -0,0 +1,21 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
# Rendered by ArgoCD from THIS Forgejo repo (path: deploy). The CI pipeline bumps
# newTag on every push, then Argo syncs the new image into k3s.
namespace: devroadmap-demo
labels:
- includeSelectors: true
pairs:
app.kubernetes.io/name: devroadmap-demo
app.kubernetes.io/instance: devroadmap-demo
resources:
- deployment.yaml
- service.yaml
images:
- name: harbor.devroadmap.ru/homelab/devroadmap-demo
newTag: "bootstrap" # bumped to the short SHA by .forgejo/workflows/ci.yml

14
deploy/service.yaml Normal file
View file

@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: devroadmap-demo
annotations:
# LAN VIP (allocation table: docs/k3s-app-standard.md). .235-.237 are argo
# metrics LBs — do not reuse.
metallb.io/loadBalancerIPs: 192.168.2.233
spec:
type: LoadBalancer
ports:
- name: http
port: 80
targetPort: http