Compare commits
9 Commits
fix/myorg-
...
fix/litell
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9c134d5dd0 | ||
|
|
6df0be81c9 | ||
| a5291da0b2 | |||
|
|
075bdd8ca3 | ||
|
|
e44d7ba1fc | ||
|
|
f1005cd426 | ||
|
|
43c0c2561e | ||
| 8334cd48f8 | |||
|
|
ba7e05a73d |
@@ -25,6 +25,8 @@ metadata:
|
||||
namespace: gitea
|
||||
labels:
|
||||
app: gitea
|
||||
annotations:
|
||||
kubectl.kubernetes.io/restartedAt: "2026-07-21T13:30:00Z"
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
@@ -101,6 +103,8 @@ metadata:
|
||||
namespace: gitea
|
||||
labels:
|
||||
app: gitea-runner
|
||||
annotations:
|
||||
kubectl.kubernetes.io/restartedAt: "2026-07-21T13:30:00Z"
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
@@ -115,7 +119,14 @@ spec:
|
||||
kubernetes.io/arch: arm64
|
||||
containers:
|
||||
- name: gitea-runner
|
||||
image: vegardit/gitea-act-runner:latest
|
||||
image: vegardit/gitea-act-runner:v0.12.0
|
||||
resources:
|
||||
requests:
|
||||
memory: "512Mi"
|
||||
cpu: "250m"
|
||||
limits:
|
||||
memory: "1Gi"
|
||||
cpu: "500m"
|
||||
env:
|
||||
- name: GITEA_INSTANCE_URL
|
||||
valueFrom:
|
||||
|
||||
@@ -112,6 +112,13 @@ spec:
|
||||
env:
|
||||
- name: STORE_MODEL_IN_DB
|
||||
value: "True"
|
||||
resources:
|
||||
requests:
|
||||
memory: "512Mi"
|
||||
cpu: "250m"
|
||||
limits:
|
||||
memory: "2Gi"
|
||||
cpu: "1000m"
|
||||
volumes:
|
||||
- name: config-volume
|
||||
configMap:
|
||||
|
||||
@@ -15,9 +15,10 @@ spec:
|
||||
labels:
|
||||
app: prometheus
|
||||
spec:
|
||||
# Prevent scheduling on Raspberry Pi due to resource requirements (512Mi-1Gi memory, 500m-1000m CPU)
|
||||
# Target the nucbox (amd64, 24Gi RAM) which is the only node with enough memory for Prometheus.
|
||||
nodeSelector:
|
||||
hardware: high-memory
|
||||
kubernetes.io/os: linux
|
||||
kubernetes.io/arch: amd64
|
||||
serviceAccountName: prometheus
|
||||
containers:
|
||||
- name: prometheus
|
||||
|
||||
@@ -24,6 +24,43 @@ spec:
|
||||
restartPolicy: OnFailure
|
||||
imagePullSecrets:
|
||||
- name: gitea-registry
|
||||
initContainers:
|
||||
- name: git-clone
|
||||
image: alpine/git:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
if [ ! -d /data/myorg/.git ]; then
|
||||
echo "Cloning repository..."
|
||||
git clone ${GIT_REPO_URL} /data/myorg
|
||||
cd /data/myorg
|
||||
git config user.name "${GIT_USERNAME}"
|
||||
git config user.email "${GIT_USERNAME}@rogi.casa"
|
||||
git config credential.helper store
|
||||
echo "https://${GIT_USERNAME}:${GIT_TOKEN}@git.rogi.casa" > ~/.git-credentials
|
||||
else
|
||||
echo "Repository already exists, skipping clone."
|
||||
fi
|
||||
env:
|
||||
- name: GIT_REPO_URL
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: myorg-assistant-secret
|
||||
key: GIT_REPO_URL
|
||||
- name: GIT_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: myorg-assistant-secret
|
||||
key: GIT_USERNAME
|
||||
- name: GIT_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: myorg-assistant-secret
|
||||
key: GIT_TOKEN
|
||||
volumeMounts:
|
||||
- name: myorg-data
|
||||
mountPath: /data/myorg
|
||||
containers:
|
||||
- name: git-sync
|
||||
image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf
|
||||
|
||||
@@ -9,10 +9,10 @@ spec:
|
||||
ingressClassName: traefik
|
||||
tls:
|
||||
- hosts:
|
||||
- openai.rogi.casa
|
||||
- ai.rogi.casa
|
||||
secretName: openwebui-tls
|
||||
rules:
|
||||
- host: openai.rogi.casa
|
||||
- host: ai.rogi.casa
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
|
||||
@@ -125,6 +125,13 @@ spec:
|
||||
env:
|
||||
- name: HERMES_HOME
|
||||
value: /opt/data
|
||||
# Hermes' file-write tool refuses any path outside HERMES_WRITE_SAFE_ROOT.
|
||||
# When unset it defaults to HERMES_HOME (/opt/data), which blocks the
|
||||
# agent's only GitOps remediation path (editing manifests under
|
||||
# /workspace/k3s-cluster). Whitelist the whole filesystem — consistent
|
||||
# with yolo:true, approvals.mode:off, and the agent having no k8s RBAC.
|
||||
- name: HERMES_WRITE_SAFE_ROOT
|
||||
value: "/"
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /opt/data
|
||||
|
||||
Reference in New Issue
Block a user