Compare commits
11 Commits
fix/myorg-
...
84be8f2c36
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
84be8f2c36 | ||
|
|
a8c7df67fe | ||
|
|
097fe2e0e7 | ||
|
|
6df0be81c9 | ||
| a5291da0b2 | |||
|
|
075bdd8ca3 | ||
|
|
e44d7ba1fc | ||
|
|
f1005cd426 | ||
|
|
43c0c2561e | ||
| 8334cd48f8 | |||
|
|
ba7e05a73d |
@@ -25,6 +25,8 @@ metadata:
|
|||||||
namespace: gitea
|
namespace: gitea
|
||||||
labels:
|
labels:
|
||||||
app: gitea
|
app: gitea
|
||||||
|
annotations:
|
||||||
|
kubectl.kubernetes.io/restartedAt: "2026-07-21T13:30:00Z"
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -101,6 +103,8 @@ metadata:
|
|||||||
namespace: gitea
|
namespace: gitea
|
||||||
labels:
|
labels:
|
||||||
app: gitea-runner
|
app: gitea-runner
|
||||||
|
annotations:
|
||||||
|
kubectl.kubernetes.io/restartedAt: "2026-07-21T13:30:00Z"
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -115,7 +119,14 @@ spec:
|
|||||||
kubernetes.io/arch: arm64
|
kubernetes.io/arch: arm64
|
||||||
containers:
|
containers:
|
||||||
- name: gitea-runner
|
- 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:
|
env:
|
||||||
- name: GITEA_INSTANCE_URL
|
- name: GITEA_INSTANCE_URL
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
|||||||
@@ -102,6 +102,13 @@ spec:
|
|||||||
- "/app/proxy_server_config.yaml"
|
- "/app/proxy_server_config.yaml"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 4000
|
- containerPort: 4000
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "512Mi"
|
||||||
|
cpu: "500m"
|
||||||
|
limits:
|
||||||
|
memory: "2Gi"
|
||||||
|
cpu: "1000m"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
mountPath: /app/proxy_server_config.yaml
|
mountPath: /app/proxy_server_config.yaml
|
||||||
|
|||||||
@@ -39,10 +39,10 @@ spec:
|
|||||||
mountPath: /prometheus
|
mountPath: /prometheus
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "512Mi"
|
memory: "1Gi"
|
||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
limits:
|
limits:
|
||||||
memory: "1Gi"
|
memory: "2Gi"
|
||||||
cpu: "1000m"
|
cpu: "1000m"
|
||||||
volumes:
|
volumes:
|
||||||
- name: prometheus-config
|
- name: prometheus-config
|
||||||
|
|||||||
@@ -24,6 +24,43 @@ spec:
|
|||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: gitea-registry
|
- 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:
|
containers:
|
||||||
- name: git-sync
|
- name: git-sync
|
||||||
image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf
|
image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ spec:
|
|||||||
ingressClassName: traefik
|
ingressClassName: traefik
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- openai.rogi.casa
|
- ai.rogi.casa
|
||||||
secretName: openwebui-tls
|
secretName: openwebui-tls
|
||||||
rules:
|
rules:
|
||||||
- host: openai.rogi.casa
|
- host: ai.rogi.casa
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
|||||||
@@ -125,6 +125,13 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: HERMES_HOME
|
- name: HERMES_HOME
|
||||||
value: /opt/data
|
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:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /opt/data
|
mountPath: /opt/data
|
||||||
|
|||||||
Reference in New Issue
Block a user