Compare commits
1 Commits
fix/gitsyn
...
948a647c3d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
948a647c3d |
@@ -58,9 +58,9 @@ spec:
|
||||
image: ghcr.io/home-assistant/home-assistant:stable
|
||||
resources:
|
||||
requests:
|
||||
memory: "512Mi"
|
||||
memory: "256Mi"
|
||||
limits:
|
||||
memory: "1Gi"
|
||||
memory: "512Mi"
|
||||
ports:
|
||||
- containerPort: 8123
|
||||
volumeMounts:
|
||||
|
||||
@@ -11,30 +11,18 @@ metadata:
|
||||
data:
|
||||
config.yaml: |
|
||||
model_list:
|
||||
- model_name: gpt-5.6-luna
|
||||
- model_name: gpt-5-mini
|
||||
litellm_params:
|
||||
model: openai/gpt-5.6-luna
|
||||
model: openai/gpt-5-mini-2025-08-07
|
||||
api_key: "os.environ/OPENAI_API_KEY"
|
||||
- model_name: claude-haiku-4.5
|
||||
- model_name: claude-4.5-haiku
|
||||
litellm_params:
|
||||
model: "anthropic/claude-haiku-4-5-20251001"
|
||||
api_key: "os.environ/ANTHROPIC_API_KEY"
|
||||
- model_name: claude-sonnet-5
|
||||
litellm_params:
|
||||
model: "anthropic/claude-sonnet-5"
|
||||
api_key: "os.environ/ANTHROPIC_API_KEY"
|
||||
- model_name: gemini-3-flash
|
||||
litellm_params:
|
||||
model: gemini/gemini-3-flash-preview
|
||||
api_key: "os.environ/GEMINI_API_KEY"
|
||||
- model_name: tencent/hy3:free
|
||||
litellm_params:
|
||||
model: openrouter/tencent/hy3:free
|
||||
api_key: "os.environ/OPENROUTER_API_KEY"
|
||||
- model_name: z-ai/glm-5.2
|
||||
litellm_params:
|
||||
model: openrouter/z-ai/glm-5.2
|
||||
api_key: "os.environ/OPENROUTER_API_KEY"
|
||||
- model_name: glm-4.7-flash
|
||||
litellm_params:
|
||||
model: ollama/glm-4.7-flash
|
||||
|
||||
@@ -59,11 +59,6 @@ spec:
|
||||
secretKeyRef:
|
||||
name: myorg-assistant-secret
|
||||
key: WEB_SECRET_KEY
|
||||
- name: GIT_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: myorg-assistant-secret
|
||||
key: GIT_TOKEN
|
||||
volumeMounts:
|
||||
- name: myorg-data
|
||||
mountPath: /data/myorg
|
||||
|
||||
@@ -59,11 +59,6 @@ spec:
|
||||
secretKeyRef:
|
||||
name: myorg-assistant-secret
|
||||
key: WEB_SECRET_KEY
|
||||
- name: GIT_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: myorg-assistant-secret
|
||||
key: GIT_TOKEN
|
||||
volumeMounts:
|
||||
- name: myorg-data
|
||||
mountPath: /data/myorg
|
||||
|
||||
@@ -24,47 +24,6 @@ spec:
|
||||
restartPolicy: OnFailure
|
||||
imagePullSecrets:
|
||||
- name: gitea-registry
|
||||
initContainers:
|
||||
- name: git-clone
|
||||
image: alpine/git:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
# Normalize the repo URL host to the correct Gitea subdomain.
|
||||
# The GIT_REPO_URL secret historically contained gitea.rogi.casa,
|
||||
# which 526s through Cloudflare; the working subdomain is git.rogi.casa.
|
||||
export GIT_REPO_URL="$(echo "${GIT_REPO_URL}" | sed -E 's#https?://[^/@]+@?gitea\.rogi\.casa#https://'"${GIT_USERNAME}"':'"${GIT_TOKEN}"'@git.rogi.casa#')"
|
||||
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
|
||||
|
||||
@@ -66,11 +66,6 @@ spec:
|
||||
secretKeyRef:
|
||||
name: myorg-assistant-secret
|
||||
key: WEB_SECRET_KEY
|
||||
- name: GIT_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: myorg-assistant-secret
|
||||
key: GIT_TOKEN
|
||||
volumeMounts:
|
||||
- name: myorg-data
|
||||
mountPath: /data/myorg
|
||||
|
||||
@@ -59,11 +59,6 @@ spec:
|
||||
secretKeyRef:
|
||||
name: myorg-assistant-secret
|
||||
key: WEB_SECRET_KEY
|
||||
- name: GIT_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: myorg-assistant-secret
|
||||
key: GIT_TOKEN
|
||||
volumeMounts:
|
||||
- name: myorg-data
|
||||
mountPath: /data/myorg
|
||||
|
||||
@@ -53,17 +53,15 @@ spec:
|
||||
value: http
|
||||
- name: N8N_PORT
|
||||
value: "5678"
|
||||
- name: NODE_OPTIONS
|
||||
value: "--max-old-space-size=768"
|
||||
image: n8nio/n8n
|
||||
name: n8n
|
||||
ports:
|
||||
- containerPort: 5678
|
||||
resources:
|
||||
requests:
|
||||
memory: "512Mi"
|
||||
memory: "250Mi"
|
||||
limits:
|
||||
memory: "1Gi"
|
||||
memory: "500Mi"
|
||||
volumeMounts:
|
||||
- mountPath: /home/node/.n8n
|
||||
name: n8n-claim0
|
||||
|
||||
@@ -9,10 +9,10 @@ spec:
|
||||
ingressClassName: traefik
|
||||
tls:
|
||||
- hosts:
|
||||
- ai.rogi.casa
|
||||
- openai.rogi.casa
|
||||
secretName: openwebui-tls
|
||||
rules:
|
||||
- host: ai.rogi.casa
|
||||
- host: openai.rogi.casa
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
|
||||
@@ -59,16 +59,6 @@ data:
|
||||
cron:
|
||||
wrap_response: false
|
||||
|
||||
discord:
|
||||
allowed_channels: '1470909384162017444' # DISCORD_HOME_CHANNEL
|
||||
free_response_channels: '1470909384162017444' # no @mention needed here
|
||||
# Per-platform gateway auth. Paired with GATEWAY_ALLOW_ALL_USERS=true in
|
||||
# the env (secret.yaml), this lets the bot reply to inbound DMs and
|
||||
# group messages from anyone. Tighten later by switching to
|
||||
# DISCORD_ALLOWED_USERS=<id> in the secret and dropping these two lines.
|
||||
dm_policy: open
|
||||
group_policy: open
|
||||
|
||||
memory:
|
||||
memory_enabled: true
|
||||
user_profile_enabled: true
|
||||
|
||||
@@ -125,13 +125,6 @@ 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