chore: promote node GitOps source 37fdcd2

This commit is contained in:
HWLAB node GitOps Bot
2026-07-04 07:05:09 +00:00
parent 072fea5159
commit 90cc08305d
16 changed files with 5538 additions and 3936 deletions
@@ -10,7 +10,7 @@
"namespace": "hwlab-v03",
"labels": {
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/source-commit": "8f93559622be09667d54214a4390a79fccce5b18",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/config-kind": "hwpod-preinstalled-specs"
@@ -34,7 +34,7 @@
"namespace": "hwlab-v03",
"labels": {
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/source-commit": "8f93559622be09667d54214a4390a79fccce5b18",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/config-kind": "project-management-bootstrap-sources"
@@ -1,327 +1,414 @@
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: ConfigMap
metadata:
name: hwlab-deepseek-proxy-config
namespace: hwlab-v03
labels:
app.kubernetes.io/name: hwlab-deepseek-proxy
app.kubernetes.io/part-of: hwlab
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/service-id: hwlab-deepseek-proxy
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/monitoring: disabled
data:
render-config.sh: >
#!/bin/sh
if [ -z "${DEEPSEEK_API_KEY:-}" ] && [ -z "${OPENCODE_API_KEY:-}" ];
then
echo "at least one of DEEPSEEK_API_KEY or OPENCODE_API_KEY is required" >&2
exit 1
fi
cat > /config/config.yml <<EOF
mode: "Transform"
log:
level: "info"
format: "text"
server:
addr: "0.0.0.0:4001"
persistence:
active_provider: db_sqlite
extensions:
db_sqlite:
enabled: true
config:
path: /data/moonbridge.db
wal: true
busy_timeout_ms: 5000
max_open_conns: 1
metrics:
enabled: true
config:
default_limit: 100
max_limit: 1000
deepseek_v4:
config:
reinforce_instructions: true
reinforce_prompt: "[System Reminder]: Please pay close attention to the system instructions, AGENTS.md files, and any other context provided. Follow them carefully and completely in your response.\n[User]:"
cache:
mode: "explicit"
ttl: "5m"
prompt_caching: true
automatic_prompt_cache: false
explicit_cache_breakpoints: true
allow_retention_downgrade: false
max_breakpoints: 4
min_cache_tokens: 1024
expected_reuse: 2
minimum_value_score: 2048
min_breakpoint_tokens: 1024
defaults:
model: "deepseek-chat"
max_tokens: 8192
trace:
enabled: false
models:
deepseek-chat:
context_window: 128000
max_output_tokens: 8192
display_name: "deepseek-chat"
description: "DeepSeek via Moon Bridge"
default_reasoning_level: null
supported_reasoning_levels: []
extensions:
deepseek_v4:
enabled: true
deepseek-v4-flash:
context_window: 1000000
max_output_tokens: 384000
display_name: "DeepSeek V4 Flash via OpenCode Zen Go"
description: "DeepSeek V4 Flash through OpenCode Zen Go Chat Completions via Moon Bridge"
default_reasoning_level: "xhigh"
supported_reasoning_levels:
- effort: "high"
description: "High reasoning effort"
- effort: "xhigh"
description: "Maximum reasoning effort"
supports_reasoning_summaries: true
default_reasoning_summary: "auto"
extensions:
deepseek_v4:
enabled: true
providers:
deepseek:
base_url: "https://api.deepseek.com/anthropic"
api_key: "${DEEPSEEK_API_KEY}"
version: "2023-06-01"
user_agent: "moonbridge/1.0"
offers:
- model: deepseek-chat
opencode:
base_url: "https://opencode.ai/zen/go/v1"
api_key: "${OPENCODE_API_KEY:-}"
protocol: "openai-chat"
user_agent: "moonbridge-dsflash-go/1.0"
web_search:
support: "disabled"
offers:
- model: deepseek-v4-flash
routes:
deepseek-chat:
model: deepseek-chat
provider: deepseek
deepseek-v4-flash:
model: deepseek-v4-flash
provider: opencode
EOF
- apiVersion: apps/v1
kind: Deployment
metadata:
name: hwlab-deepseek-proxy
namespace: hwlab-v03
labels:
app.kubernetes.io/name: hwlab-deepseek-proxy
app.kubernetes.io/part-of: hwlab
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/service-id: hwlab-deepseek-proxy
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/monitoring: disabled
annotations:
hwlab.pikastech.local/moonbridge-source-ref: 1b99888d3dae889b79ee602cb875c7907f7e76f2
hwlab.pikastech.local/bridge-service-id: hwlab-cloud-api
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/bridge-source-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/bridge-image-tag: env-5ff41b539190
hwlab.pikastech.local/bridge-image: 127.0.0.1:5000/hwlab/hwlab-cloud-api-env@sha256:e2df91d6c907cf35af13a7b3d232892ec80283f11801ad515a3b6ed2648bace5
hwlab.pikastech.local/bridge-runtime-mode: env-reuse-git-mirror-checkout
hwlab.pikastech.local/bridge-boot-repo: git@github.com:pikasTech/HWLAB.git
hwlab.pikastech.local/bridge-boot-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/bridge-boot-sh: deploy/runtime/boot/hwlab-deepseek-responses-bridge.sh
hwlab.pikastech.local/bridge-environment-digest: sha256:e2df91d6c907cf35af13a7b3d232892ec80283f11801ad515a3b6ed2648bace5
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: hwlab-deepseek-proxy
template:
metadata:
labels:
app.kubernetes.io/name: hwlab-deepseek-proxy
app.kubernetes.io/part-of: hwlab
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/service-id: hwlab-deepseek-proxy
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/monitoring: disabled
hwlab.pikastech.local/bridge-source-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/bridge-runtime-mode: env-reuse-git-mirror-checkout
hwlab.pikastech.local/bridge-boot-commit: 8f93559622be09667d54214a4390a79fccce5b18
annotations:
hwlab.pikastech.local/bridge-service-id: hwlab-cloud-api
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/bridge-source-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/bridge-image-tag: env-5ff41b539190
hwlab.pikastech.local/bridge-image: 127.0.0.1:5000/hwlab/hwlab-cloud-api-env@sha256:e2df91d6c907cf35af13a7b3d232892ec80283f11801ad515a3b6ed2648bace5
hwlab.pikastech.local/bridge-runtime-mode: env-reuse-git-mirror-checkout
hwlab.pikastech.local/bridge-boot-repo: git@github.com:pikasTech/HWLAB.git
hwlab.pikastech.local/bridge-boot-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/bridge-boot-sh: deploy/runtime/boot/hwlab-deepseek-responses-bridge.sh
hwlab.pikastech.local/bridge-environment-digest: sha256:e2df91d6c907cf35af13a7b3d232892ec80283f11801ad515a3b6ed2648bace5
spec:
initContainers:
- name: moonbridge-config
image: 127.0.0.1:5000/hwlab/hwlab-cloud-api-env@sha256:e2df91d6c907cf35af13a7b3d232892ec80283f11801ad515a3b6ed2648bace5
imagePullPolicy: IfNotPresent
command:
- /bin/sh
- -eu
- /scripts/render-config.sh
env:
- name: DEEPSEEK_API_KEY
valueFrom:
secretKeyRef:
name: hwlab-v03-code-agent-provider
key: openai-api-key
optional: true
- name: OPENCODE_API_KEY
valueFrom:
secretKeyRef:
name: hwlab-v03-code-agent-provider
key: opencode-api-key
optional: true
volumeMounts:
- name: moonbridge-scripts
mountPath: /scripts
readOnly: true
- name: moonbridge-config
mountPath: /config
containers:
- name: responses-bridge
image: 127.0.0.1:5000/hwlab/hwlab-cloud-api-env@sha256:e2df91d6c907cf35af13a7b3d232892ec80283f11801ad515a3b6ed2648bace5
imagePullPolicy: IfNotPresent
env:
- name: PORT
value: "4000"
- name: HWLAB_COMMIT_ID
value: 8f93559622be09667d54214a4390a79fccce5b18
- name: HWLAB_IMAGE
value: 127.0.0.1:5000/hwlab/hwlab-cloud-api-env@sha256:e2df91d6c907cf35af13a7b3d232892ec80283f11801ad515a3b6ed2648bace5
- name: HWLAB_IMAGE_TAG
value: env-5ff41b539190
- name: HWLAB_DEEPSEEK_BRIDGE_UPSTREAM
value: http://127.0.0.1:4001
- name: HWLAB_DEEPSEEK_BRIDGE_MODEL
value: deepseek-chat
- name: HWLAB_RUNTIME_MODE
value: env-reuse-git-mirror-checkout
- name: HWLAB_BOOT_REPO
value: git@github.com:pikasTech/HWLAB.git
- name: HWLAB_BOOT_COMMIT
value: 8f93559622be09667d54214a4390a79fccce5b18
- name: HWLAB_BOOT_REF
value: v0.3
- name: HWLAB_BOOT_SH
value: deploy/runtime/boot/hwlab-deepseek-responses-bridge.sh
- name: HWLAB_BOOT_READ_URL
value: http://git-mirror-http.devops-infra.svc.cluster.local:8080/pikasTech/HWLAB.git
- name: HWLAB_ENVIRONMENT_IMAGE
value: 127.0.0.1:5000/hwlab/hwlab-cloud-api-env:env-5ff41b539190
- name: HWLAB_ENVIRONMENT_DIGEST
value: sha256:e2df91d6c907cf35af13a7b3d232892ec80283f11801ad515a3b6ed2648bace5
- name: HWLAB_ENVIRONMENT_INPUT_HASH
value: 5ff41b539190849e76511ed722a4539f5921622e98eea1444b606475f8ef55aa
- name: HWLAB_CODE_INPUT_HASH
value: e9ce96840e4a0b5732e5b0f4de06e81947ad0cf3ccaf711d1f1108f592e9bee1
- name: HWLAB_IMAGE_DIGEST
value: sha256:e2df91d6c907cf35af13a7b3d232892ec80283f11801ad515a3b6ed2648bace5
ports:
- name: http
containerPort: 4000
readinessProbe:
httpGet:
path: /health/readiness
port: http
initialDelaySeconds: 10
periodSeconds: 10
livenessProbe:
httpGet:
path: /health/liveliness
port: http
initialDelaySeconds: 20
periodSeconds: 20
startupProbe:
httpGet:
path: /health/readiness
port: http
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 2
failureThreshold: 30
successThreshold: 1
- name: moonbridge
image: 127.0.0.1:5000/hwlab/moonbridge:1b99888d3dae
imagePullPolicy: IfNotPresent
args:
- -config
- /config/config.yml
ports:
- name: moonbridge-http
containerPort: 4001
readinessProbe:
httpGet:
path: /v1/models
port: moonbridge-http
initialDelaySeconds: 10
periodSeconds: 10
livenessProbe:
httpGet:
path: /v1/models
port: moonbridge-http
initialDelaySeconds: 20
periodSeconds: 20
volumeMounts:
- name: moonbridge-config
mountPath: /config
readOnly: true
- name: moonbridge-data
mountPath: /data
volumes:
- name: moonbridge-scripts
configMap:
name: hwlab-deepseek-proxy-config
- name: moonbridge-config
emptyDir: {}
- name: moonbridge-data
emptyDir: {}
- apiVersion: v1
kind: Service
metadata:
name: hwlab-deepseek-proxy
namespace: hwlab-v03
labels:
app.kubernetes.io/name: hwlab-deepseek-proxy
app.kubernetes.io/part-of: hwlab
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/service-id: hwlab-deepseek-proxy
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/monitoring: disabled
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: hwlab-deepseek-proxy
ports:
- name: http
port: 4000
targetPort: http
- name: metrics
port: 9100
targetPort: metrics
{
"apiVersion": "v1",
"kind": "List",
"items": [
{
"apiVersion": "v1",
"kind": "ConfigMap",
"metadata": {
"name": "hwlab-deepseek-proxy-config",
"namespace": "hwlab-v03",
"labels": {
"app.kubernetes.io/name": "hwlab-deepseek-proxy",
"app.kubernetes.io/part-of": "hwlab",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/service-id": "hwlab-deepseek-proxy",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/monitoring": "enabled"
}
},
"data": {
"render-config.sh": "#!/bin/sh\nif [ -z \"${DEEPSEEK_API_KEY:-}\" ] && [ -z \"${OPENCODE_API_KEY:-}\" ]; then\n echo \"at least one of DEEPSEEK_API_KEY or OPENCODE_API_KEY is required\" >&2\n exit 1\nfi\ncat > /config/config.yml <<EOF\nmode: \"Transform\"\nlog:\n level: \"info\"\n format: \"text\"\nserver:\n addr: \"0.0.0.0:4001\"\npersistence:\n active_provider: db_sqlite\nextensions:\n db_sqlite:\n enabled: true\n config:\n path: /data/moonbridge.db\n wal: true\n busy_timeout_ms: 5000\n max_open_conns: 1\n metrics:\n enabled: true\n config:\n default_limit: 100\n max_limit: 1000\n deepseek_v4:\n config:\n reinforce_instructions: true\n reinforce_prompt: \"[System Reminder]: Please pay close attention to the system instructions, AGENTS.md files, and any other context provided. Follow them carefully and completely in your response.\\n[User]:\"\ncache:\n mode: \"explicit\"\n ttl: \"5m\"\n prompt_caching: true\n automatic_prompt_cache: false\n explicit_cache_breakpoints: true\n allow_retention_downgrade: false\n max_breakpoints: 4\n min_cache_tokens: 1024\n expected_reuse: 2\n minimum_value_score: 2048\n min_breakpoint_tokens: 1024\ndefaults:\n model: \"deepseek-chat\"\n max_tokens: 8192\ntrace:\n enabled: false\nmodels:\n deepseek-chat:\n context_window: 128000\n max_output_tokens: 8192\n display_name: \"deepseek-chat\"\n description: \"DeepSeek via Moon Bridge\"\n default_reasoning_level: null\n supported_reasoning_levels: []\n extensions:\n deepseek_v4:\n enabled: true\n deepseek-v4-flash:\n context_window: 1000000\n max_output_tokens: 384000\n display_name: \"DeepSeek V4 Flash via OpenCode Zen Go\"\n description: \"DeepSeek V4 Flash through OpenCode Zen Go Chat Completions via Moon Bridge\"\n default_reasoning_level: \"xhigh\"\n supported_reasoning_levels:\n - effort: \"high\"\n description: \"High reasoning effort\"\n - effort: \"xhigh\"\n description: \"Maximum reasoning effort\"\n supports_reasoning_summaries: true\n default_reasoning_summary: \"auto\"\n extensions:\n deepseek_v4:\n enabled: true\nproviders:\n deepseek:\n base_url: \"https://api.deepseek.com/anthropic\"\n api_key: \"${DEEPSEEK_API_KEY}\"\n version: \"2023-06-01\"\n user_agent: \"moonbridge/1.0\"\n offers:\n - model: deepseek-chat\n opencode:\n base_url: \"https://opencode.ai/zen/go/v1\"\n api_key: \"${OPENCODE_API_KEY:-}\"\n protocol: \"openai-chat\"\n user_agent: \"moonbridge-dsflash-go/1.0\"\n web_search:\n support: \"disabled\"\n offers:\n - model: deepseek-v4-flash\nroutes:\n deepseek-chat:\n model: deepseek-chat\n provider: deepseek\n deepseek-v4-flash:\n model: deepseek-v4-flash\n provider: opencode\nEOF\n"
}
},
{
"apiVersion": "apps/v1",
"kind": "Deployment",
"metadata": {
"name": "hwlab-deepseek-proxy",
"namespace": "hwlab-v03",
"labels": {
"app.kubernetes.io/name": "hwlab-deepseek-proxy",
"app.kubernetes.io/part-of": "hwlab",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/service-id": "hwlab-deepseek-proxy",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/monitoring": "enabled"
},
"annotations": {
"hwlab.pikastech.local/moonbridge-source-ref": "1b99888d3dae889b79ee602cb875c7907f7e76f2",
"hwlab.pikastech.local/bridge-service-id": "hwlab-cloud-api",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/bridge-source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/bridge-image-tag": "env-f5109d26020b",
"hwlab.pikastech.local/bridge-image": "127.0.0.1:5000/hwlab/hwlab-cloud-api-env@sha256:d696dbd9ed99e1bf1152fb88fac47552526816faf141fb84bcfe74e6689bb5e3",
"hwlab.pikastech.local/metrics-sidecar-sha256": "782e26256b5a5cddff52a165a0eb5f852973eee1aac1b19acac4a313db7968f4",
"hwlab.pikastech.local/bridge-runtime-mode": "env-reuse-git-mirror-checkout",
"hwlab.pikastech.local/bridge-boot-repo": "git@github.com:pikasTech/HWLAB.git",
"hwlab.pikastech.local/bridge-boot-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/bridge-boot-sh": "deploy/runtime/boot/hwlab-deepseek-responses-bridge.sh",
"hwlab.pikastech.local/bridge-environment-digest": "sha256:d696dbd9ed99e1bf1152fb88fac47552526816faf141fb84bcfe74e6689bb5e3"
}
},
"spec": {
"replicas": 1,
"selector": {
"matchLabels": {
"app.kubernetes.io/name": "hwlab-deepseek-proxy"
}
},
"template": {
"metadata": {
"labels": {
"app.kubernetes.io/name": "hwlab-deepseek-proxy",
"app.kubernetes.io/part-of": "hwlab",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/service-id": "hwlab-deepseek-proxy",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/monitoring": "enabled",
"hwlab.pikastech.local/bridge-source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/bridge-runtime-mode": "env-reuse-git-mirror-checkout",
"hwlab.pikastech.local/bridge-boot-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
},
"annotations": {
"hwlab.pikastech.local/bridge-service-id": "hwlab-cloud-api",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/bridge-source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/bridge-image-tag": "env-f5109d26020b",
"hwlab.pikastech.local/bridge-image": "127.0.0.1:5000/hwlab/hwlab-cloud-api-env@sha256:d696dbd9ed99e1bf1152fb88fac47552526816faf141fb84bcfe74e6689bb5e3",
"hwlab.pikastech.local/metrics-sidecar-sha256": "782e26256b5a5cddff52a165a0eb5f852973eee1aac1b19acac4a313db7968f4",
"hwlab.pikastech.local/bridge-runtime-mode": "env-reuse-git-mirror-checkout",
"hwlab.pikastech.local/bridge-boot-repo": "git@github.com:pikasTech/HWLAB.git",
"hwlab.pikastech.local/bridge-boot-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/bridge-boot-sh": "deploy/runtime/boot/hwlab-deepseek-responses-bridge.sh",
"hwlab.pikastech.local/bridge-environment-digest": "sha256:d696dbd9ed99e1bf1152fb88fac47552526816faf141fb84bcfe74e6689bb5e3"
}
},
"spec": {
"initContainers": [
{
"name": "moonbridge-config",
"image": "127.0.0.1:5000/hwlab/hwlab-cloud-api-env@sha256:d696dbd9ed99e1bf1152fb88fac47552526816faf141fb84bcfe74e6689bb5e3",
"imagePullPolicy": "IfNotPresent",
"command": [
"/bin/sh",
"-eu",
"/scripts/render-config.sh"
],
"env": [
{
"name": "DEEPSEEK_API_KEY",
"valueFrom": {
"secretKeyRef": {
"name": "hwlab-v03-code-agent-provider",
"key": "openai-api-key",
"optional": true
}
}
},
{
"name": "OPENCODE_API_KEY",
"valueFrom": {
"secretKeyRef": {
"name": "hwlab-v03-code-agent-provider",
"key": "opencode-api-key",
"optional": true
}
}
}
],
"volumeMounts": [
{
"name": "moonbridge-scripts",
"mountPath": "/scripts",
"readOnly": true
},
{
"name": "moonbridge-config",
"mountPath": "/config"
}
]
}
],
"containers": [
{
"name": "responses-bridge",
"image": "127.0.0.1:5000/hwlab/hwlab-cloud-api-env@sha256:d696dbd9ed99e1bf1152fb88fac47552526816faf141fb84bcfe74e6689bb5e3",
"imagePullPolicy": "IfNotPresent",
"env": [
{
"name": "PORT",
"value": "4000"
},
{
"name": "HWLAB_COMMIT_ID",
"value": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
},
{
"name": "HWLAB_IMAGE",
"value": "127.0.0.1:5000/hwlab/hwlab-cloud-api-env@sha256:d696dbd9ed99e1bf1152fb88fac47552526816faf141fb84bcfe74e6689bb5e3"
},
{
"name": "HWLAB_IMAGE_TAG",
"value": "env-f5109d26020b"
},
{
"name": "HWLAB_DEEPSEEK_BRIDGE_UPSTREAM",
"value": "http://127.0.0.1:4001"
},
{
"name": "HWLAB_DEEPSEEK_BRIDGE_MODEL",
"value": "deepseek-chat"
},
{
"name": "HWLAB_RUNTIME_MODE",
"value": "env-reuse-git-mirror-checkout"
},
{
"name": "HWLAB_BOOT_REPO",
"value": "git@github.com:pikasTech/HWLAB.git"
},
{
"name": "HWLAB_BOOT_COMMIT",
"value": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
},
{
"name": "HWLAB_BOOT_REF",
"value": "v0.3"
},
{
"name": "HWLAB_BOOT_SH",
"value": "deploy/runtime/boot/hwlab-deepseek-responses-bridge.sh"
},
{
"name": "HWLAB_BOOT_READ_URL",
"value": "http://git-mirror-http.devops-infra.svc.cluster.local/pikasTech/HWLAB.git"
},
{
"name": "HWLAB_ENVIRONMENT_IMAGE",
"value": "127.0.0.1:5000/hwlab/hwlab-cloud-api-env:env-f5109d26020b"
},
{
"name": "HWLAB_ENVIRONMENT_DIGEST",
"value": "sha256:d696dbd9ed99e1bf1152fb88fac47552526816faf141fb84bcfe74e6689bb5e3"
},
{
"name": "HWLAB_ENVIRONMENT_INPUT_HASH",
"value": "f5109d26020b05d9023ab1a6dd4e34ed07c9bbca03fc8d0a4697cc208c85a175"
},
{
"name": "HWLAB_CODE_INPUT_HASH",
"value": "e9ce96840e4a0b5732e5b0f4de06e81947ad0cf3ccaf711d1f1108f592e9bee1"
},
{
"name": "HWLAB_IMAGE_DIGEST",
"value": "sha256:d696dbd9ed99e1bf1152fb88fac47552526816faf141fb84bcfe74e6689bb5e3"
}
],
"ports": [
{
"name": "http",
"containerPort": 4000
}
],
"readinessProbe": {
"httpGet": {
"path": "/health/readiness",
"port": "http"
},
"initialDelaySeconds": 10,
"periodSeconds": 10
},
"livenessProbe": {
"httpGet": {
"path": "/health/liveliness",
"port": "http"
},
"initialDelaySeconds": 20,
"periodSeconds": 20
},
"startupProbe": {
"httpGet": {
"path": "/health/readiness",
"port": "http"
},
"initialDelaySeconds": 10,
"periodSeconds": 10,
"timeoutSeconds": 2,
"failureThreshold": 30,
"successThreshold": 1
}
},
{
"name": "moonbridge",
"image": "127.0.0.1:5000/hwlab/moonbridge:1b99888d3dae",
"imagePullPolicy": "IfNotPresent",
"args": [
"-config",
"/config/config.yml"
],
"ports": [
{
"name": "moonbridge-http",
"containerPort": 4001
}
],
"readinessProbe": {
"httpGet": {
"path": "/v1/models",
"port": "moonbridge-http"
},
"initialDelaySeconds": 10,
"periodSeconds": 10
},
"livenessProbe": {
"httpGet": {
"path": "/v1/models",
"port": "moonbridge-http"
},
"initialDelaySeconds": 20,
"periodSeconds": 20
},
"volumeMounts": [
{
"name": "moonbridge-config",
"mountPath": "/config",
"readOnly": true
},
{
"name": "moonbridge-data",
"mountPath": "/data"
}
]
},
{
"name": "hwlab-metrics",
"image": "127.0.0.1:5000/hwlab/hwlab-ci-node-tools:node22-alpine-bun-v1",
"imagePullPolicy": "IfNotPresent",
"command": [
"node",
"/metrics/metrics-sidecar.mjs"
],
"env": [
{
"name": "HWLAB_METRICS_SERVICE_ID",
"value": "hwlab-deepseek-proxy"
},
{
"name": "HWLAB_METRICS_NAMESPACE",
"value": "hwlab-v03"
},
{
"name": "HWLAB_METRICS_GITOPS_TARGET",
"value": "v03"
},
{
"name": "HWLAB_METRICS_PORT",
"value": "9100"
},
{
"name": "HWLAB_METRICS_TARGET_URL",
"value": "http://127.0.0.1:4000/health/live"
},
{
"name": "HWLAB_METRICS_TARGET_TIMEOUT_MS",
"value": "2000"
}
],
"ports": [
{
"name": "metrics",
"containerPort": 9100
}
],
"readinessProbe": {
"httpGet": {
"path": "/health/live",
"port": "metrics"
},
"initialDelaySeconds": 3,
"periodSeconds": 10
},
"livenessProbe": {
"httpGet": {
"path": "/health/live",
"port": "metrics"
},
"initialDelaySeconds": 10,
"periodSeconds": 20
},
"volumeMounts": [
{
"name": "hwlab-metrics-sidecar",
"mountPath": "/metrics",
"readOnly": true
}
]
}
],
"volumes": [
{
"name": "moonbridge-scripts",
"configMap": {
"name": "hwlab-deepseek-proxy-config"
}
},
{
"name": "moonbridge-config",
"emptyDir": {}
},
{
"name": "moonbridge-data",
"emptyDir": {}
},
{
"name": "hwlab-metrics-sidecar",
"configMap": {
"name": "hwlab-v03-metrics-sidecar"
}
}
]
}
}
}
},
{
"apiVersion": "v1",
"kind": "Service",
"metadata": {
"name": "hwlab-deepseek-proxy",
"namespace": "hwlab-v03",
"labels": {
"app.kubernetes.io/name": "hwlab-deepseek-proxy",
"app.kubernetes.io/part-of": "hwlab",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/service-id": "hwlab-deepseek-proxy",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/monitoring": "enabled"
}
},
"spec": {
"type": "ClusterIP",
"selector": {
"app.kubernetes.io/name": "hwlab-deepseek-proxy"
},
"ports": [
{
"name": "http",
"port": 4000,
"targetPort": "http"
},
{
"name": "metrics",
"port": 9100,
"targetPort": "metrics"
}
]
}
}
]
}
@@ -0,0 +1,76 @@
{
"apiVersion": "v1",
"kind": "List",
"items": [
{
"apiVersion": "v1",
"kind": "Service",
"metadata": {
"name": "g14-platform-postgres",
"namespace": "hwlab-v03",
"labels": {
"app.kubernetes.io/name": "g14-platform-postgres",
"app.kubernetes.io/part-of": "hwlab",
"hwlab.pikastech.local/component": "platform-db-bridge",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs"
}
},
"spec": {
"type": "ClusterIP",
"ports": [
{
"name": "postgres",
"port": 5432,
"targetPort": 5432,
"protocol": "TCP"
}
]
}
},
{
"apiVersion": "discovery.k8s.io/v1",
"kind": "EndpointSlice",
"metadata": {
"name": "g14-platform-postgres-host",
"namespace": "hwlab-v03",
"labels": {
"app.kubernetes.io/name": "g14-platform-postgres",
"app.kubernetes.io/part-of": "hwlab",
"hwlab.pikastech.local/component": "platform-db-bridge",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"kubernetes.io/service-name": "g14-platform-postgres"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs"
}
},
"addressType": "IPv4",
"ports": [
{
"name": "postgres",
"port": 5432,
"protocol": "TCP"
}
],
"endpoints": [
{
"addresses": [
"10.42.0.1"
],
"conditions": {
"ready": true
}
}
]
}
]
}
@@ -10,7 +10,7 @@
"namespace": "hwlab-v03",
"labels": {
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/source-commit": "8f93559622be09667d54214a4390a79fccce5b18",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/profile": "v03",
"app.kubernetes.io/name": "hwlab-secret-plane-smoke",
@@ -53,7 +53,7 @@
"namespace": "hwlab-v03",
"labels": {
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/source-commit": "8f93559622be09667d54214a4390a79fccce5b18",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/profile": "v03",
"app.kubernetes.io/name": "test-1",
@@ -8,7 +8,7 @@
"app.kubernetes.io/name": "hwlab-v03-health-contract",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/source-commit": "8f93559622be09667d54214a4390a79fccce5b18",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/environment": "v03"
},
"annotations": {
@@ -16,10 +16,10 @@
}
},
"data": {
"endpoint": "https://hwlab.pikapython.com",
"cloud-api": "GET /health/live through https://hwlab.pikapython.com",
"endpoint": "https://hwlab-v03.74-48-78-17.nip.io",
"cloud-api": "GET /health/live through https://hwlab-v03.74-48-78-17.nip.io",
"cloud-api-db": "DEV DB config gate requires HWLAB_CLOUD_DB_URL from Secret hwlab-cloud-api-dev-db/database-url and HWLAB_CLOUD_DB_SSL_MODE=disable. Runtime readiness dials the redacted host parsed from the Secret URL and reports endpointSource=secret-url-host. cloud-api-db is an optional desired alias only until this repo owns Service plus Endpoint or EndpointSlice manifests and rollout/apply contract; health reports env presence, env injection, redacted connection attempt/result, and liveConnected without exposing secret values",
"cloud-web": "GET /health/live on https://hwlab.pikapython.com; consumes cloud-api only",
"cloud-web": "GET /health/live on https://hwlab-v03.74-48-78-17.nip.io; consumes cloud-api only",
"agent": "hwlab-cloud-api authorizes Code Agent sessions and dispatches execution to AgentRun v0.1; no HWLAB-owned agent manager/worker service is deployed",
"edge-proxy": "hwlab-edge-proxy:6667 exposes /health/live and proxies DEV endpoint traffic to hwlab-cloud-api",
"runtime-substitute-policy": "Do not replace HWLAB runtime with UniDesk backend, provider-gateway, or microservice proxy"
@@ -1,16 +1,20 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: hwlab-v03
resources:
- namespace.yaml
- services.yaml
- health-contract.yaml
- configmaps.yaml
- external-secrets.yaml
- workloads.yaml
- deepseek-proxy.yaml
- postgres.yaml
- workbench-redis.yaml
- openfga.yaml
- opencode.yaml
- node-frpc.yaml
{
"apiVersion": "kustomize.config.k8s.io/v1beta1",
"kind": "Kustomization",
"namespace": "hwlab-v03",
"resources": [
"namespace.yaml",
"services.yaml",
"health-contract.yaml",
"configmaps.yaml",
"external-secrets.yaml",
"workloads.yaml",
"deepseek-proxy.yaml",
"external-postgres.yaml",
"workbench-redis.yaml",
"openfga.yaml",
"observability.yaml",
"opencode.yaml",
"node-frpc.yaml"
]
}
@@ -7,7 +7,7 @@
"app.kubernetes.io/part-of": "hwlab",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/source-commit": "8f93559622be09667d54214a4390a79fccce5b18",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/environment": "v03"
},
"annotations": {
@@ -1,97 +1,94 @@
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: ConfigMap
metadata:
name: hwlab-v03-frpc-config
namespace: hwlab-v03
labels:
app.kubernetes.io/name: hwlab-v03-frpc
app.kubernetes.io/part-of: hwlab
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/profile: v03
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
data:
frpc.toml: |
serverAddr = "82.156.23.220"
serverPort = 22000
loginFailExit = true
auth.token = "{{ .Envs.HWLAB_FRP_TOKEN }}"
[[proxies]]
name = "hwlab-jd01-v03-cloud-web"
type = "tcp"
localIP = "hwlab-cloud-web.hwlab-v03.svc.cluster.local"
localPort = 8080
remotePort = 22090
[[proxies]]
name = "hwlab-jd01-v03-edge-proxy"
type = "tcp"
localIP = "hwlab-edge-proxy.hwlab-v03.svc.cluster.local"
localPort = 6667
remotePort = 22088
[[proxies]]
name = "hwlab-jd01-v03-opencode"
type = "tcp"
localIP = "hwlab-cloud-web.hwlab-v03.svc.cluster.local"
localPort = 8080
remotePort = 22095
- apiVersion: apps/v1
kind: Deployment
metadata:
name: hwlab-v03-frpc
namespace: hwlab-v03
labels:
app.kubernetes.io/name: hwlab-v03-frpc
app.kubernetes.io/part-of: hwlab
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/profile: v03
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: hwlab-v03-frpc
template:
metadata:
labels:
app.kubernetes.io/name: hwlab-v03-frpc
app.kubernetes.io/part-of: hwlab
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/profile: v03
hwlab.pikastech.local/config-sha256: ce6c82e15b128572
annotations:
hwlab.pikastech.local/config-sha256: ce6c82e15b12857248f574b624109aae09b0489b990a252c4955d57567dd2ac2
unidesk.ai/frpc-config-sha256: 42aaec6c96b4a5f48332676ffbf3bbae4e6a96f98a97ba126c7f7bab9dbb01eb
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: frpc
image: 127.0.0.1:5000/hwlab/frpc:v0.68.1
imagePullPolicy: IfNotPresent
args:
- -c
- /etc/frp/frpc.toml
volumeMounts:
- name: config
mountPath: /etc/frp
readOnly: true
env:
- name: HWLAB_FRP_TOKEN
valueFrom:
secretKeyRef:
name: hwlab-v03-frpc-secrets
key: token
volumes:
- name: config
configMap:
name: hwlab-v03-frpc-config
strategy:
type: Recreate
{
"apiVersion": "v1",
"kind": "List",
"items": [
{
"apiVersion": "v1",
"kind": "ConfigMap",
"metadata": {
"name": "hwlab-v03-frpc-config",
"namespace": "hwlab-v03",
"labels": {
"app.kubernetes.io/name": "hwlab-v03-frpc",
"app.kubernetes.io/part-of": "hwlab",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
}
},
"data": {
"frpc.toml": "serverAddr = \"74.48.78.17\"\nserverPort = 7000\nloginFailExit = true\n\n[[proxies]]\nname = \"hwlab-v03-cloud-web\"\ntype = \"tcp\"\nlocalIP = \"hwlab-cloud-web.hwlab-v03.svc.cluster.local\"\nlocalPort = 8080\nremotePort = 20666\n\n[[proxies]]\nname = \"hwlab-v03-edge-proxy\"\ntype = \"tcp\"\nlocalIP = \"hwlab-edge-proxy.hwlab-v03.svc.cluster.local\"\nlocalPort = 6667\nremotePort = 20667\n"
}
},
{
"apiVersion": "apps/v1",
"kind": "Deployment",
"metadata": {
"name": "hwlab-v03-frpc",
"namespace": "hwlab-v03",
"labels": {
"app.kubernetes.io/name": "hwlab-v03-frpc",
"app.kubernetes.io/part-of": "hwlab",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
}
},
"spec": {
"replicas": 1,
"selector": {
"matchLabels": {
"app.kubernetes.io/name": "hwlab-v03-frpc"
}
},
"template": {
"metadata": {
"labels": {
"app.kubernetes.io/name": "hwlab-v03-frpc",
"app.kubernetes.io/part-of": "hwlab",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/config-sha256": "ce6c82e15b128572"
},
"annotations": {
"hwlab.pikastech.local/config-sha256": "ce6c82e15b12857248f574b624109aae09b0489b990a252c4955d57567dd2ac2"
}
},
"spec": {
"hostNetwork": true,
"dnsPolicy": "ClusterFirstWithHostNet",
"containers": [
{
"name": "frpc",
"image": "fatedier/frpc:v0.68.1",
"imagePullPolicy": "IfNotPresent",
"args": [
"-c",
"/etc/frp/frpc.toml"
],
"volumeMounts": [
{
"name": "config",
"mountPath": "/etc/frp",
"readOnly": true
}
]
}
],
"volumes": [
{
"name": "config",
"configMap": {
"name": "hwlab-v03-frpc-config"
}
}
]
}
}
}
}
]
}
File diff suppressed because one or more lines are too long
+537 -386
View File
@@ -1,386 +1,537 @@
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: ServiceAccount
metadata:
name: opencode-server
namespace: hwlab-v03
labels:
app.kubernetes.io/name: opencode-server
app.kubernetes.io/part-of: hwlab
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/profile: v03
hwlab.pikastech.local/component: opencode
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/service-id: opencode-server
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
annotations:
hwlab.pikastech.local/rendered-by: scripts/gitops-render.mjs
hwlab.pikastech.local/opencode-provider-profile: dsflash-go
hwlab.pikastech.local/opencode-provider-id: dsflash-go
hwlab.pikastech.local/opencode-model: deepseek-v4-flash
hwlab.pikastech.local/opencode-provider-base-url: http://127.0.0.1:4097/v1
hwlab.pikastech.local/opencode-provider-upstream-base-url: https://opencode.ai/zen/go/v1
hwlab.pikastech.local/opencode-image: 127.0.0.1:5000/hwlab/opencode:1.17.7-git
hwlab.pikastech.local/opencode-config-sha256: 40a92e2d93f344d7c9dbcb98bd67760078f90a0af085f83b4b5385513bb26234
hwlab.pikastech.local/opencode-api-key-secret-ref: hwlab-v03-code-agent-provider/opencode-api-key
hwlab.pikastech.local/agentrun-provider-secret-ref: agentrun-v02/agentrun-v01-provider-dsflash-go
hwlab.pikastech.local/agentrun-provider-secret-keys: auth.json,config.toml,model-catalog.json
hwlab.pikastech.local/values-printed: "false"
hwlab.pikastech.local/opencode-provider-proxy-runtime-mode: env-reuse-git-mirror-checkout
hwlab.pikastech.local/opencode-provider-proxy-boot-repo: git@github.com:pikasTech/HWLAB.git
hwlab.pikastech.local/opencode-provider-proxy-boot-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/opencode-provider-proxy-boot-sh: deploy/runtime/boot/opencode-provider-proxy.sh
hwlab.pikastech.local/opencode-provider-proxy-environment-digest: sha256:1f3b67b29346b70a0af97e399ae7e6cd038bef8626f0f3c221d848394074b94a
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: opencode-server-data
namespace: hwlab-v03
labels:
app.kubernetes.io/name: opencode-server
app.kubernetes.io/part-of: hwlab
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/profile: v03
hwlab.pikastech.local/component: opencode
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/service-id: opencode-server
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
annotations:
hwlab.pikastech.local/rendered-by: scripts/gitops-render.mjs
hwlab.pikastech.local/opencode-provider-profile: dsflash-go
hwlab.pikastech.local/opencode-provider-id: dsflash-go
hwlab.pikastech.local/opencode-model: deepseek-v4-flash
hwlab.pikastech.local/opencode-provider-base-url: http://127.0.0.1:4097/v1
hwlab.pikastech.local/opencode-provider-upstream-base-url: https://opencode.ai/zen/go/v1
hwlab.pikastech.local/opencode-image: 127.0.0.1:5000/hwlab/opencode:1.17.7-git
hwlab.pikastech.local/opencode-config-sha256: 40a92e2d93f344d7c9dbcb98bd67760078f90a0af085f83b4b5385513bb26234
hwlab.pikastech.local/opencode-api-key-secret-ref: hwlab-v03-code-agent-provider/opencode-api-key
hwlab.pikastech.local/agentrun-provider-secret-ref: agentrun-v02/agentrun-v01-provider-dsflash-go
hwlab.pikastech.local/agentrun-provider-secret-keys: auth.json,config.toml,model-catalog.json
hwlab.pikastech.local/values-printed: "false"
hwlab.pikastech.local/opencode-provider-proxy-runtime-mode: env-reuse-git-mirror-checkout
hwlab.pikastech.local/opencode-provider-proxy-boot-repo: git@github.com:pikasTech/HWLAB.git
hwlab.pikastech.local/opencode-provider-proxy-boot-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/opencode-provider-proxy-boot-sh: deploy/runtime/boot/opencode-provider-proxy.sh
hwlab.pikastech.local/opencode-provider-proxy-environment-digest: sha256:1f3b67b29346b70a0af97e399ae7e6cd038bef8626f0f3c221d848394074b94a
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi
- apiVersion: v1
kind: Service
metadata:
name: opencode-server
namespace: hwlab-v03
labels:
app.kubernetes.io/name: opencode-server
app.kubernetes.io/part-of: hwlab
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/profile: v03
hwlab.pikastech.local/component: opencode
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/service-id: opencode-server
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
annotations:
hwlab.pikastech.local/rendered-by: scripts/gitops-render.mjs
hwlab.pikastech.local/opencode-provider-profile: dsflash-go
hwlab.pikastech.local/opencode-provider-id: dsflash-go
hwlab.pikastech.local/opencode-model: deepseek-v4-flash
hwlab.pikastech.local/opencode-provider-base-url: http://127.0.0.1:4097/v1
hwlab.pikastech.local/opencode-provider-upstream-base-url: https://opencode.ai/zen/go/v1
hwlab.pikastech.local/opencode-image: 127.0.0.1:5000/hwlab/opencode:1.17.7-git
hwlab.pikastech.local/opencode-config-sha256: 40a92e2d93f344d7c9dbcb98bd67760078f90a0af085f83b4b5385513bb26234
hwlab.pikastech.local/opencode-api-key-secret-ref: hwlab-v03-code-agent-provider/opencode-api-key
hwlab.pikastech.local/agentrun-provider-secret-ref: agentrun-v02/agentrun-v01-provider-dsflash-go
hwlab.pikastech.local/agentrun-provider-secret-keys: auth.json,config.toml,model-catalog.json
hwlab.pikastech.local/values-printed: "false"
hwlab.pikastech.local/opencode-provider-proxy-runtime-mode: env-reuse-git-mirror-checkout
hwlab.pikastech.local/opencode-provider-proxy-boot-repo: git@github.com:pikasTech/HWLAB.git
hwlab.pikastech.local/opencode-provider-proxy-boot-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/opencode-provider-proxy-boot-sh: deploy/runtime/boot/opencode-provider-proxy.sh
hwlab.pikastech.local/opencode-provider-proxy-environment-digest: sha256:1f3b67b29346b70a0af97e399ae7e6cd038bef8626f0f3c221d848394074b94a
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: opencode-server
app.kubernetes.io/part-of: hwlab
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/profile: v03
ports:
- name: http
port: 4096
targetPort: http
- apiVersion: apps/v1
kind: Deployment
metadata:
name: opencode-server
namespace: hwlab-v03
labels:
app.kubernetes.io/name: opencode-server
app.kubernetes.io/part-of: hwlab
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/profile: v03
hwlab.pikastech.local/component: opencode
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/service-id: opencode-server
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
annotations:
hwlab.pikastech.local/rendered-by: scripts/gitops-render.mjs
hwlab.pikastech.local/opencode-provider-profile: dsflash-go
hwlab.pikastech.local/opencode-provider-id: dsflash-go
hwlab.pikastech.local/opencode-model: deepseek-v4-flash
hwlab.pikastech.local/opencode-provider-base-url: http://127.0.0.1:4097/v1
hwlab.pikastech.local/opencode-provider-upstream-base-url: https://opencode.ai/zen/go/v1
hwlab.pikastech.local/opencode-image: 127.0.0.1:5000/hwlab/opencode:1.17.7-git
hwlab.pikastech.local/opencode-config-sha256: 40a92e2d93f344d7c9dbcb98bd67760078f90a0af085f83b4b5385513bb26234
hwlab.pikastech.local/opencode-api-key-secret-ref: hwlab-v03-code-agent-provider/opencode-api-key
hwlab.pikastech.local/agentrun-provider-secret-ref: agentrun-v02/agentrun-v01-provider-dsflash-go
hwlab.pikastech.local/agentrun-provider-secret-keys: auth.json,config.toml,model-catalog.json
hwlab.pikastech.local/values-printed: "false"
hwlab.pikastech.local/opencode-provider-proxy-runtime-mode: env-reuse-git-mirror-checkout
hwlab.pikastech.local/opencode-provider-proxy-boot-repo: git@github.com:pikasTech/HWLAB.git
hwlab.pikastech.local/opencode-provider-proxy-boot-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/opencode-provider-proxy-boot-sh: deploy/runtime/boot/opencode-provider-proxy.sh
hwlab.pikastech.local/opencode-provider-proxy-environment-digest: sha256:1f3b67b29346b70a0af97e399ae7e6cd038bef8626f0f3c221d848394074b94a
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app.kubernetes.io/name: opencode-server
app.kubernetes.io/part-of: hwlab
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/profile: v03
template:
metadata:
labels:
app.kubernetes.io/name: opencode-server
app.kubernetes.io/part-of: hwlab
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/profile: v03
hwlab.pikastech.local/component: opencode
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/service-id: opencode-server
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
annotations:
hwlab.pikastech.local/rendered-by: scripts/gitops-render.mjs
hwlab.pikastech.local/opencode-provider-profile: dsflash-go
hwlab.pikastech.local/opencode-provider-id: dsflash-go
hwlab.pikastech.local/opencode-model: deepseek-v4-flash
hwlab.pikastech.local/opencode-provider-base-url: http://127.0.0.1:4097/v1
hwlab.pikastech.local/opencode-provider-upstream-base-url: https://opencode.ai/zen/go/v1
hwlab.pikastech.local/opencode-image: 127.0.0.1:5000/hwlab/opencode:1.17.7-git
hwlab.pikastech.local/opencode-config-sha256: 40a92e2d93f344d7c9dbcb98bd67760078f90a0af085f83b4b5385513bb26234
hwlab.pikastech.local/opencode-api-key-secret-ref: hwlab-v03-code-agent-provider/opencode-api-key
hwlab.pikastech.local/agentrun-provider-secret-ref: agentrun-v02/agentrun-v01-provider-dsflash-go
hwlab.pikastech.local/agentrun-provider-secret-keys: auth.json,config.toml,model-catalog.json
hwlab.pikastech.local/values-printed: "false"
hwlab.pikastech.local/opencode-provider-proxy-runtime-mode: env-reuse-git-mirror-checkout
hwlab.pikastech.local/opencode-provider-proxy-boot-repo: git@github.com:pikasTech/HWLAB.git
hwlab.pikastech.local/opencode-provider-proxy-boot-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/opencode-provider-proxy-boot-sh: deploy/runtime/boot/opencode-provider-proxy.sh
hwlab.pikastech.local/opencode-provider-proxy-environment-digest:
sha256:1f3b67b29346b70a0af97e399ae7e6cd038bef8626f0f3c221d848394074b94a
spec:
serviceAccountName: opencode-server
securityContext:
fsGroup: 1000
fsGroupChangePolicy: OnRootMismatch
initContainers:
- name: opencode-workspace-git-init
image: 127.0.0.1:5000/hwlab/hwlab-cloud-web-env@sha256:1f3b67b29346b70a0af97e399ae7e6cd038bef8626f0f3c221d848394074b94a
imagePullPolicy: IfNotPresent
command:
- /bin/sh
- -ec
args:
- >-
set -eu
mkdir -p /workspace
if [ ! -d /workspace/.git ]; then
git -C /workspace init
fi
git -C /workspace config user.name 'HWLAB OpenCode' || true
git -C /workspace config user.email 'opencode@hwlab.local' ||
true
chgrp -R 1000 /workspace/.git 2>/dev/null || true
chmod -R g+rwX /workspace/.git 2>/dev/null || true
resources:
requests:
cpu: 25m
memory: 64Mi
limits:
cpu: 250m
memory: 256Mi
volumeMounts:
- name: workspace
mountPath: /workspace
containers:
- name: opencode-server
image: 127.0.0.1:5000/hwlab/opencode:1.17.7-git
imagePullPolicy: IfNotPresent
command:
- /bin/sh
- -ec
args:
- exec opencode serve --hostname 0.0.0.0 --port 4096
workingDir: /workspace
env:
- name: HOME
value: /workspace
- name: XDG_CONFIG_HOME
value: /workspace/.config
- name: XDG_DATA_HOME
value: /workspace/.local/share
- name: HTTP_PROXY
value: http://10.42.0.1:10808
- name: HTTPS_PROXY
value: http://10.42.0.1:10808
- name: http_proxy
value: http://10.42.0.1:10808
- name: https_proxy
value: http://10.42.0.1:10808
- name: NO_PROXY
value: localhost,127.0.0.1,::1,127.0.0.1:5000,localhost:5000,.svc,.svc.cluster.local,.cluster.local,kubernetes,kubernetes.default,kubernetes.default.svc,argocd-repo-server,argocd-repo-server.argocd,argocd-redis,argocd-redis.argocd,git-mirror-http,git-mirror-http.devops-infra,git-mirror-write,git-mirror-write.devops-infra,10.0.0.0/8,10.42.0.0/16,10.43.0.0/16,172.16.0.0/12,192.168.0.0/16,82.156.23.220,74.48.78.17,hyueapi.com,.hyueapi.com
- name: no_proxy
value: localhost,127.0.0.1,::1,127.0.0.1:5000,localhost:5000,.svc,.svc.cluster.local,.cluster.local,kubernetes,kubernetes.default,kubernetes.default.svc,argocd-repo-server,argocd-repo-server.argocd,argocd-redis,argocd-redis.argocd,git-mirror-http,git-mirror-http.devops-infra,git-mirror-write,git-mirror-write.devops-infra,10.0.0.0/8,10.42.0.0/16,10.43.0.0/16,172.16.0.0/12,192.168.0.0/16,82.156.23.220,74.48.78.17,hyueapi.com,.hyueapi.com
- name: OPENCODE_CONFIG_CONTENT
value: '{"$schema":"https://opencode.ai/config.json","autoupdate":false,"share":"disabled","model":"dsflash-go/deepseek-v4-flash","small_model":"dsflash-go/deepseek-v4-flash","provider":{"dsflash-go":{"npm":"@ai-sdk/openai-compatible","name":"AgentRun
dsflash-go","options":{"baseURL":"http://127.0.0.1:4097/v1","apiKey":"{env:OPENCODE_DSFLASH_GO_API_KEY}","timeout":600000,"headerTimeout":600000,"chunkTimeout":300000},"models":{"deepseek-v4-flash":{"name":"deepseek-v4-flash","reasoning":false,"tool_call":true,"limit":{"context":1000000,"output":384000}}}}}}'
- name: OPENCODE_DSFLASH_GO_API_KEY
valueFrom:
secretKeyRef:
name: hwlab-v03-code-agent-provider
key: opencode-api-key
optional: true
- name: OPENCODE_SERVER_USERNAME
valueFrom:
secretKeyRef:
name: hwlab-v03-opencode-server-auth
key: username
- name: OPENCODE_SERVER_PASSWORD
valueFrom:
secretKeyRef:
name: hwlab-v03-opencode-server-auth
key: password
ports:
- name: http
containerPort: 4096
startupProbe:
tcpSocket:
port: http
periodSeconds: 5
failureThreshold: 60
readinessProbe:
tcpSocket:
port: http
periodSeconds: 10
failureThreshold: 3
livenessProbe:
tcpSocket:
port: http
periodSeconds: 20
failureThreshold: 3
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: "1"
memory: 1Gi
volumeMounts:
- name: workspace
mountPath: /workspace
- name: opencode-provider-proxy
image: 127.0.0.1:5000/hwlab/hwlab-cloud-web-env@sha256:1f3b67b29346b70a0af97e399ae7e6cd038bef8626f0f3c221d848394074b94a
imagePullPolicy: IfNotPresent
env:
- name: HWLAB_SERVICE_ID
value: opencode-provider-proxy
- name: HWLAB_ENVIRONMENT
value: v03
- name: HWLAB_COMMIT_ID
value: 8f93559622be09667d54214a4390a79fccce5b18
- name: HWLAB_IMAGE
value: 127.0.0.1:5000/hwlab/hwlab-cloud-web-env@sha256:1f3b67b29346b70a0af97e399ae7e6cd038bef8626f0f3c221d848394074b94a
- name: HWLAB_IMAGE_TAG
value: env-5ff41b539190
- name: PORT
value: "4097"
- name: HWLAB_OPENCODE_PROVIDER_PROXY_UPSTREAM_BASE_URL
value: https://opencode.ai/zen/go/v1
- name: HWLAB_OPENCODE_PROVIDER_PROXY_PUBLIC_BASE_PATH
value: /v1
- name: HWLAB_OPENCODE_PROVIDER_PROXY_TIMEOUT_MS
value: "600000"
- name: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
value: http://otel-collector.platform-infra.svc.cluster.local:4318/v1/traces
- name: OTEL_SERVICE_NAME
value: opencode-provider-proxy
- name: HWLAB_RUNTIME_MODE
value: env-reuse-git-mirror-checkout
- name: HWLAB_BOOT_REPO
value: git@github.com:pikasTech/HWLAB.git
- name: HWLAB_BOOT_COMMIT
value: 8f93559622be09667d54214a4390a79fccce5b18
- name: HWLAB_BOOT_REF
value: v0.3
- name: HWLAB_BOOT_SH
value: deploy/runtime/boot/opencode-provider-proxy.sh
- name: HWLAB_BOOT_READ_URL
value: http://git-mirror-http.devops-infra.svc.cluster.local:8080/pikasTech/HWLAB.git
- name: HWLAB_ENVIRONMENT_IMAGE
value: 127.0.0.1:5000/hwlab/hwlab-cloud-web-env:env-5ff41b539190
- name: HWLAB_ENVIRONMENT_DIGEST
value: sha256:1f3b67b29346b70a0af97e399ae7e6cd038bef8626f0f3c221d848394074b94a
- name: HWLAB_ENVIRONMENT_INPUT_HASH
value: 5ff41b539190849e76511ed722a4539f5921622e98eea1444b606475f8ef55aa
- name: HWLAB_CODE_INPUT_HASH
value: cc21a4d8c26d5183cb1fa8bcd4736a1c16d7b58739678d7f07d1b7a374f9599c
- name: HWLAB_IMAGE_DIGEST
value: sha256:1f3b67b29346b70a0af97e399ae7e6cd038bef8626f0f3c221d848394074b94a
ports:
- name: provider
containerPort: 4097
readinessProbe:
httpGet:
path: /health/readiness
port: provider
periodSeconds: 10
failureThreshold: 3
livenessProbe:
httpGet:
path: /health/live
port: provider
periodSeconds: 20
failureThreshold: 3
resources:
requests:
cpu: 25m
memory: 64Mi
limits:
cpu: 250m
memory: 256Mi
startupProbe:
httpGet:
path: /health/readiness
port: provider
periodSeconds: 10
failureThreshold: 30
timeoutSeconds: 2
successThreshold: 1
volumes:
- name: workspace
persistentVolumeClaim:
claimName: opencode-server-data
{
"apiVersion": "v1",
"kind": "List",
"items": [
{
"apiVersion": "v1",
"kind": "ServiceAccount",
"metadata": {
"name": "opencode-server",
"namespace": "hwlab-v03",
"labels": {
"app.kubernetes.io/name": "opencode-server",
"app.kubernetes.io/part-of": "hwlab",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/component": "opencode",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/service-id": "opencode-server",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs",
"hwlab.pikastech.local/opencode-provider-profile": "dsflash-go",
"hwlab.pikastech.local/opencode-provider-id": "dsflash-go",
"hwlab.pikastech.local/opencode-model": "deepseek-v4-flash",
"hwlab.pikastech.local/opencode-provider-base-url": "http://127.0.0.1:4097/v1",
"hwlab.pikastech.local/opencode-provider-upstream-base-url": "https://opencode.ai/zen/go/v1",
"hwlab.pikastech.local/opencode-image": "127.0.0.1:5000/hwlab/opencode:1.17.7-git",
"hwlab.pikastech.local/opencode-config-sha256": "40a92e2d93f344d7c9dbcb98bd67760078f90a0af085f83b4b5385513bb26234",
"hwlab.pikastech.local/opencode-api-key-secret-ref": "hwlab-v03-code-agent-provider/opencode-api-key",
"hwlab.pikastech.local/agentrun-provider-secret-ref": "agentrun-v02/agentrun-v01-provider-dsflash-go",
"hwlab.pikastech.local/agentrun-provider-secret-keys": "auth.json,config.toml,model-catalog.json",
"hwlab.pikastech.local/values-printed": "false",
"hwlab.pikastech.local/opencode-provider-proxy-runtime-mode": "env-reuse-git-mirror-checkout",
"hwlab.pikastech.local/opencode-provider-proxy-boot-repo": "git@github.com:pikasTech/HWLAB.git",
"hwlab.pikastech.local/opencode-provider-proxy-boot-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/opencode-provider-proxy-boot-sh": "deploy/runtime/boot/opencode-provider-proxy.sh",
"hwlab.pikastech.local/opencode-provider-proxy-environment-digest": "sha256:35be9f812c9aef6d989caf83def79bdfe5dca42f461d9f99fb34622b38ff9b2f"
}
}
},
{
"apiVersion": "v1",
"kind": "PersistentVolumeClaim",
"metadata": {
"name": "opencode-server-data",
"namespace": "hwlab-v03",
"labels": {
"app.kubernetes.io/name": "opencode-server",
"app.kubernetes.io/part-of": "hwlab",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/component": "opencode",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/service-id": "opencode-server",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs",
"hwlab.pikastech.local/opencode-provider-profile": "dsflash-go",
"hwlab.pikastech.local/opencode-provider-id": "dsflash-go",
"hwlab.pikastech.local/opencode-model": "deepseek-v4-flash",
"hwlab.pikastech.local/opencode-provider-base-url": "http://127.0.0.1:4097/v1",
"hwlab.pikastech.local/opencode-provider-upstream-base-url": "https://opencode.ai/zen/go/v1",
"hwlab.pikastech.local/opencode-image": "127.0.0.1:5000/hwlab/opencode:1.17.7-git",
"hwlab.pikastech.local/opencode-config-sha256": "40a92e2d93f344d7c9dbcb98bd67760078f90a0af085f83b4b5385513bb26234",
"hwlab.pikastech.local/opencode-api-key-secret-ref": "hwlab-v03-code-agent-provider/opencode-api-key",
"hwlab.pikastech.local/agentrun-provider-secret-ref": "agentrun-v02/agentrun-v01-provider-dsflash-go",
"hwlab.pikastech.local/agentrun-provider-secret-keys": "auth.json,config.toml,model-catalog.json",
"hwlab.pikastech.local/values-printed": "false",
"hwlab.pikastech.local/opencode-provider-proxy-runtime-mode": "env-reuse-git-mirror-checkout",
"hwlab.pikastech.local/opencode-provider-proxy-boot-repo": "git@github.com:pikasTech/HWLAB.git",
"hwlab.pikastech.local/opencode-provider-proxy-boot-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/opencode-provider-proxy-boot-sh": "deploy/runtime/boot/opencode-provider-proxy.sh",
"hwlab.pikastech.local/opencode-provider-proxy-environment-digest": "sha256:35be9f812c9aef6d989caf83def79bdfe5dca42f461d9f99fb34622b38ff9b2f"
}
},
"spec": {
"accessModes": [
"ReadWriteOnce"
],
"resources": {
"requests": {
"storage": "8Gi"
}
}
}
},
{
"apiVersion": "v1",
"kind": "Service",
"metadata": {
"name": "opencode-server",
"namespace": "hwlab-v03",
"labels": {
"app.kubernetes.io/name": "opencode-server",
"app.kubernetes.io/part-of": "hwlab",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/component": "opencode",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/service-id": "opencode-server",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs",
"hwlab.pikastech.local/opencode-provider-profile": "dsflash-go",
"hwlab.pikastech.local/opencode-provider-id": "dsflash-go",
"hwlab.pikastech.local/opencode-model": "deepseek-v4-flash",
"hwlab.pikastech.local/opencode-provider-base-url": "http://127.0.0.1:4097/v1",
"hwlab.pikastech.local/opencode-provider-upstream-base-url": "https://opencode.ai/zen/go/v1",
"hwlab.pikastech.local/opencode-image": "127.0.0.1:5000/hwlab/opencode:1.17.7-git",
"hwlab.pikastech.local/opencode-config-sha256": "40a92e2d93f344d7c9dbcb98bd67760078f90a0af085f83b4b5385513bb26234",
"hwlab.pikastech.local/opencode-api-key-secret-ref": "hwlab-v03-code-agent-provider/opencode-api-key",
"hwlab.pikastech.local/agentrun-provider-secret-ref": "agentrun-v02/agentrun-v01-provider-dsflash-go",
"hwlab.pikastech.local/agentrun-provider-secret-keys": "auth.json,config.toml,model-catalog.json",
"hwlab.pikastech.local/values-printed": "false",
"hwlab.pikastech.local/opencode-provider-proxy-runtime-mode": "env-reuse-git-mirror-checkout",
"hwlab.pikastech.local/opencode-provider-proxy-boot-repo": "git@github.com:pikasTech/HWLAB.git",
"hwlab.pikastech.local/opencode-provider-proxy-boot-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/opencode-provider-proxy-boot-sh": "deploy/runtime/boot/opencode-provider-proxy.sh",
"hwlab.pikastech.local/opencode-provider-proxy-environment-digest": "sha256:35be9f812c9aef6d989caf83def79bdfe5dca42f461d9f99fb34622b38ff9b2f"
}
},
"spec": {
"type": "ClusterIP",
"selector": {
"app.kubernetes.io/name": "opencode-server",
"app.kubernetes.io/part-of": "hwlab",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/profile": "v03"
},
"ports": [
{
"name": "http",
"port": 4096,
"targetPort": "http"
}
]
}
},
{
"apiVersion": "apps/v1",
"kind": "Deployment",
"metadata": {
"name": "opencode-server",
"namespace": "hwlab-v03",
"labels": {
"app.kubernetes.io/name": "opencode-server",
"app.kubernetes.io/part-of": "hwlab",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/component": "opencode",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/service-id": "opencode-server",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs",
"hwlab.pikastech.local/opencode-provider-profile": "dsflash-go",
"hwlab.pikastech.local/opencode-provider-id": "dsflash-go",
"hwlab.pikastech.local/opencode-model": "deepseek-v4-flash",
"hwlab.pikastech.local/opencode-provider-base-url": "http://127.0.0.1:4097/v1",
"hwlab.pikastech.local/opencode-provider-upstream-base-url": "https://opencode.ai/zen/go/v1",
"hwlab.pikastech.local/opencode-image": "127.0.0.1:5000/hwlab/opencode:1.17.7-git",
"hwlab.pikastech.local/opencode-config-sha256": "40a92e2d93f344d7c9dbcb98bd67760078f90a0af085f83b4b5385513bb26234",
"hwlab.pikastech.local/opencode-api-key-secret-ref": "hwlab-v03-code-agent-provider/opencode-api-key",
"hwlab.pikastech.local/agentrun-provider-secret-ref": "agentrun-v02/agentrun-v01-provider-dsflash-go",
"hwlab.pikastech.local/agentrun-provider-secret-keys": "auth.json,config.toml,model-catalog.json",
"hwlab.pikastech.local/values-printed": "false",
"hwlab.pikastech.local/opencode-provider-proxy-runtime-mode": "env-reuse-git-mirror-checkout",
"hwlab.pikastech.local/opencode-provider-proxy-boot-repo": "git@github.com:pikasTech/HWLAB.git",
"hwlab.pikastech.local/opencode-provider-proxy-boot-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/opencode-provider-proxy-boot-sh": "deploy/runtime/boot/opencode-provider-proxy.sh",
"hwlab.pikastech.local/opencode-provider-proxy-environment-digest": "sha256:35be9f812c9aef6d989caf83def79bdfe5dca42f461d9f99fb34622b38ff9b2f"
}
},
"spec": {
"replicas": 1,
"strategy": {
"type": "Recreate"
},
"selector": {
"matchLabels": {
"app.kubernetes.io/name": "opencode-server",
"app.kubernetes.io/part-of": "hwlab",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/profile": "v03"
}
},
"template": {
"metadata": {
"labels": {
"app.kubernetes.io/name": "opencode-server",
"app.kubernetes.io/part-of": "hwlab",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/component": "opencode",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/service-id": "opencode-server",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs",
"hwlab.pikastech.local/opencode-provider-profile": "dsflash-go",
"hwlab.pikastech.local/opencode-provider-id": "dsflash-go",
"hwlab.pikastech.local/opencode-model": "deepseek-v4-flash",
"hwlab.pikastech.local/opencode-provider-base-url": "http://127.0.0.1:4097/v1",
"hwlab.pikastech.local/opencode-provider-upstream-base-url": "https://opencode.ai/zen/go/v1",
"hwlab.pikastech.local/opencode-image": "127.0.0.1:5000/hwlab/opencode:1.17.7-git",
"hwlab.pikastech.local/opencode-config-sha256": "40a92e2d93f344d7c9dbcb98bd67760078f90a0af085f83b4b5385513bb26234",
"hwlab.pikastech.local/opencode-api-key-secret-ref": "hwlab-v03-code-agent-provider/opencode-api-key",
"hwlab.pikastech.local/agentrun-provider-secret-ref": "agentrun-v02/agentrun-v01-provider-dsflash-go",
"hwlab.pikastech.local/agentrun-provider-secret-keys": "auth.json,config.toml,model-catalog.json",
"hwlab.pikastech.local/values-printed": "false",
"hwlab.pikastech.local/opencode-provider-proxy-runtime-mode": "env-reuse-git-mirror-checkout",
"hwlab.pikastech.local/opencode-provider-proxy-boot-repo": "git@github.com:pikasTech/HWLAB.git",
"hwlab.pikastech.local/opencode-provider-proxy-boot-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/opencode-provider-proxy-boot-sh": "deploy/runtime/boot/opencode-provider-proxy.sh",
"hwlab.pikastech.local/opencode-provider-proxy-environment-digest": "sha256:35be9f812c9aef6d989caf83def79bdfe5dca42f461d9f99fb34622b38ff9b2f"
}
},
"spec": {
"serviceAccountName": "opencode-server",
"securityContext": {
"fsGroup": 1000,
"fsGroupChangePolicy": "OnRootMismatch"
},
"initContainers": [
{
"name": "opencode-workspace-git-init",
"image": "127.0.0.1:5000/hwlab/hwlab-cloud-web-env@sha256:35be9f812c9aef6d989caf83def79bdfe5dca42f461d9f99fb34622b38ff9b2f",
"imagePullPolicy": "IfNotPresent",
"command": [
"/bin/sh",
"-ec"
],
"args": [
"set -eu\nmkdir -p /workspace\nif [ ! -d /workspace/.git ]; then\n git -C /workspace init\nfi\ngit -C /workspace config user.name 'HWLAB OpenCode' || true\ngit -C /workspace config user.email 'opencode@hwlab.local' || true\nchgrp -R 1000 /workspace/.git 2>/dev/null || true\nchmod -R g+rwX /workspace/.git 2>/dev/null || true"
],
"resources": {
"requests": {
"cpu": "25m",
"memory": "64Mi"
},
"limits": {
"cpu": "250m",
"memory": "256Mi"
}
},
"volumeMounts": [
{
"name": "workspace",
"mountPath": "/workspace"
}
]
}
],
"containers": [
{
"name": "opencode-server",
"image": "127.0.0.1:5000/hwlab/opencode:1.17.7-git",
"imagePullPolicy": "IfNotPresent",
"command": [
"/bin/sh",
"-ec"
],
"args": [
"exec opencode serve --hostname 0.0.0.0 --port 4096"
],
"workingDir": "/workspace",
"env": [
{
"name": "HOME",
"value": "/workspace"
},
{
"name": "XDG_CONFIG_HOME",
"value": "/workspace/.config"
},
{
"name": "XDG_DATA_HOME",
"value": "/workspace/.local/share"
},
{
"name": "HTTP_PROXY",
"value": "http://sub2api-egress-proxy.platform-infra.svc.cluster.local:10808"
},
{
"name": "HTTPS_PROXY",
"value": "http://sub2api-egress-proxy.platform-infra.svc.cluster.local:10808"
},
{
"name": "http_proxy",
"value": "http://sub2api-egress-proxy.platform-infra.svc.cluster.local:10808"
},
{
"name": "https_proxy",
"value": "http://sub2api-egress-proxy.platform-infra.svc.cluster.local:10808"
},
{
"name": "NO_PROXY",
"value": "localhost,127.0.0.1,::1,127.0.0.1:5000,localhost:5000,.svc,.svc.cluster.local,.cluster.local,kubernetes,kubernetes.default,kubernetes.default.svc,10.0.0.0/8,10.42.0.0/16,10.43.0.0/16,172.16.0.0/12,192.168.0.0/16,82.156.23.220,74.48.78.17,hyueapi.com,.hyueapi.com"
},
{
"name": "no_proxy",
"value": "localhost,127.0.0.1,::1,127.0.0.1:5000,localhost:5000,.svc,.svc.cluster.local,.cluster.local,kubernetes,kubernetes.default,kubernetes.default.svc,10.0.0.0/8,10.42.0.0/16,10.43.0.0/16,172.16.0.0/12,192.168.0.0/16,82.156.23.220,74.48.78.17,hyueapi.com,.hyueapi.com"
},
{
"name": "OPENCODE_CONFIG_CONTENT",
"value": "{\"$schema\":\"https://opencode.ai/config.json\",\"autoupdate\":false,\"share\":\"disabled\",\"model\":\"dsflash-go/deepseek-v4-flash\",\"small_model\":\"dsflash-go/deepseek-v4-flash\",\"provider\":{\"dsflash-go\":{\"npm\":\"@ai-sdk/openai-compatible\",\"name\":\"AgentRun dsflash-go\",\"options\":{\"baseURL\":\"http://127.0.0.1:4097/v1\",\"apiKey\":\"{env:OPENCODE_DSFLASH_GO_API_KEY}\",\"timeout\":600000,\"headerTimeout\":600000,\"chunkTimeout\":300000},\"models\":{\"deepseek-v4-flash\":{\"name\":\"deepseek-v4-flash\",\"reasoning\":false,\"tool_call\":true,\"limit\":{\"context\":1000000,\"output\":384000}}}}}}"
},
{
"name": "OPENCODE_DSFLASH_GO_API_KEY",
"valueFrom": {
"secretKeyRef": {
"name": "hwlab-v03-code-agent-provider",
"key": "opencode-api-key",
"optional": true
}
}
},
{
"name": "OPENCODE_SERVER_USERNAME",
"valueFrom": {
"secretKeyRef": {
"name": "hwlab-v03-opencode-server-auth",
"key": "username"
}
}
},
{
"name": "OPENCODE_SERVER_PASSWORD",
"valueFrom": {
"secretKeyRef": {
"name": "hwlab-v03-opencode-server-auth",
"key": "password"
}
}
}
],
"ports": [
{
"name": "http",
"containerPort": 4096
}
],
"startupProbe": {
"tcpSocket": {
"port": "http"
},
"periodSeconds": 5,
"failureThreshold": 60
},
"readinessProbe": {
"tcpSocket": {
"port": "http"
},
"periodSeconds": 10,
"failureThreshold": 3
},
"livenessProbe": {
"tcpSocket": {
"port": "http"
},
"periodSeconds": 20,
"failureThreshold": 3
},
"resources": {
"requests": {
"cpu": "100m",
"memory": "256Mi"
},
"limits": {
"cpu": "1",
"memory": "1Gi"
}
},
"volumeMounts": [
{
"name": "workspace",
"mountPath": "/workspace"
}
]
},
{
"name": "opencode-provider-proxy",
"image": "127.0.0.1:5000/hwlab/hwlab-cloud-web-env@sha256:35be9f812c9aef6d989caf83def79bdfe5dca42f461d9f99fb34622b38ff9b2f",
"imagePullPolicy": "IfNotPresent",
"env": [
{
"name": "HWLAB_SERVICE_ID",
"value": "opencode-provider-proxy"
},
{
"name": "HWLAB_ENVIRONMENT",
"value": "v03"
},
{
"name": "HWLAB_COMMIT_ID",
"value": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
},
{
"name": "HWLAB_IMAGE",
"value": "127.0.0.1:5000/hwlab/hwlab-cloud-web-env@sha256:35be9f812c9aef6d989caf83def79bdfe5dca42f461d9f99fb34622b38ff9b2f"
},
{
"name": "HWLAB_IMAGE_TAG",
"value": "env-f5109d26020b"
},
{
"name": "PORT",
"value": "4097"
},
{
"name": "HWLAB_OPENCODE_PROVIDER_PROXY_UPSTREAM_BASE_URL",
"value": "https://opencode.ai/zen/go/v1"
},
{
"name": "HWLAB_OPENCODE_PROVIDER_PROXY_PUBLIC_BASE_PATH",
"value": "/v1"
},
{
"name": "HWLAB_OPENCODE_PROVIDER_PROXY_TIMEOUT_MS",
"value": "600000"
},
{
"name": "OTEL_EXPORTER_OTLP_TRACES_ENDPOINT",
"value": "http://otel-collector.platform-infra.svc.cluster.local:4318/v1/traces"
},
{
"name": "OTEL_SERVICE_NAME",
"value": "opencode-provider-proxy"
},
{
"name": "HWLAB_RUNTIME_MODE",
"value": "env-reuse-git-mirror-checkout"
},
{
"name": "HWLAB_BOOT_REPO",
"value": "git@github.com:pikasTech/HWLAB.git"
},
{
"name": "HWLAB_BOOT_COMMIT",
"value": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
},
{
"name": "HWLAB_BOOT_REF",
"value": "v0.3"
},
{
"name": "HWLAB_BOOT_SH",
"value": "deploy/runtime/boot/opencode-provider-proxy.sh"
},
{
"name": "HWLAB_BOOT_READ_URL",
"value": "http://git-mirror-http.devops-infra.svc.cluster.local/pikasTech/HWLAB.git"
},
{
"name": "HWLAB_ENVIRONMENT_IMAGE",
"value": "127.0.0.1:5000/hwlab/hwlab-cloud-web-env:env-f5109d26020b"
},
{
"name": "HWLAB_ENVIRONMENT_DIGEST",
"value": "sha256:35be9f812c9aef6d989caf83def79bdfe5dca42f461d9f99fb34622b38ff9b2f"
},
{
"name": "HWLAB_ENVIRONMENT_INPUT_HASH",
"value": "f5109d26020b05d9023ab1a6dd4e34ed07c9bbca03fc8d0a4697cc208c85a175"
},
{
"name": "HWLAB_CODE_INPUT_HASH",
"value": "a30d3b6d134dd5e18879523ba0022838e879eb06f3bfb0753eca9d236d7d7780"
},
{
"name": "HWLAB_IMAGE_DIGEST",
"value": "sha256:35be9f812c9aef6d989caf83def79bdfe5dca42f461d9f99fb34622b38ff9b2f"
}
],
"ports": [
{
"name": "provider",
"containerPort": 4097
}
],
"readinessProbe": {
"httpGet": {
"path": "/health/readiness",
"port": "provider"
},
"periodSeconds": 10,
"failureThreshold": 3
},
"livenessProbe": {
"httpGet": {
"path": "/health/live",
"port": "provider"
},
"periodSeconds": 20,
"failureThreshold": 3
},
"resources": {
"requests": {
"cpu": "25m",
"memory": "64Mi"
},
"limits": {
"cpu": "250m",
"memory": "256Mi"
}
},
"startupProbe": {
"httpGet": {
"path": "/health/readiness",
"port": "provider"
},
"periodSeconds": 10,
"failureThreshold": 30,
"timeoutSeconds": 2,
"successThreshold": 1
}
}
],
"volumes": [
{
"name": "workspace",
"persistentVolumeClaim": {
"claimName": "opencode-server-data"
}
}
]
}
}
}
}
]
}
@@ -16,7 +16,7 @@
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/service-id": "hwlab-openfga",
"hwlab.pikastech.local/source-commit": "8f93559622be09667d54214a4390a79fccce5b18"
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs",
@@ -37,7 +37,7 @@
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/service-id": "hwlab-openfga",
"hwlab.pikastech.local/source-commit": "8f93559622be09667d54214a4390a79fccce5b18"
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs"
@@ -113,7 +113,7 @@
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/service-id": "hwlab-openfga",
"hwlab.pikastech.local/source-commit": "8f93559622be09667d54214a4390a79fccce5b18"
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs",
@@ -137,7 +137,7 @@
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/service-id": "hwlab-openfga",
"hwlab.pikastech.local/source-commit": "8f93559622be09667d54214a4390a79fccce5b18"
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs"
@@ -248,7 +248,7 @@
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/service-id": "hwlab-openfga",
"hwlab.pikastech.local/source-commit": "8f93559622be09667d54214a4390a79fccce5b18"
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs",
@@ -1,942 +0,0 @@
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: ConfigMap
metadata:
name: hwlab-v03-postgres-init
namespace: hwlab-v03
labels:
app.kubernetes.io/name: hwlab-v03-postgres
app.kubernetes.io/part-of: hwlab
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/profile: v03
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
data:
0001_cloud_core_skeleton.sql: >
-- SPEC: PJ2026-0104010803 Workbench唯一投影
draft-2026-06-24-p0-aggregate-event-stream.
-- HWLAB L1 Cloud Core schema skeleton.
-- This file is source schema only; applying it to DEV/PROD is a
separate
-- operator action and is not performed by source tests or smokes.
CREATE TABLE IF NOT EXISTS projects (
id TEXT PRIMARY KEY,
name TEXT NOT NULL DEFAULT '',
status TEXT NOT NULL DEFAULT 'pending',
created_at TEXT NOT NULL,
updated_at TEXT NOT NULL
);
CREATE TABLE IF NOT EXISTS users (
id TEXT PRIMARY KEY,
username TEXT NOT NULL UNIQUE,
display_name TEXT NOT NULL DEFAULT '',
role TEXT NOT NULL CHECK (role IN ('admin', 'user')),
status TEXT NOT NULL DEFAULT 'active' CHECK (status IN ('active', 'disabled')),
password_hash TEXT,
created_at TEXT NOT NULL,
updated_at TEXT NOT NULL
);
CREATE TABLE IF NOT EXISTS user_sessions (
id TEXT PRIMARY KEY,
user_id TEXT NOT NULL REFERENCES users(id),
session_token_hash TEXT NOT NULL UNIQUE,
created_at TEXT NOT NULL,
last_seen_at TEXT NOT NULL,
expires_at TEXT NOT NULL,
revoked_at TEXT
);
CREATE TABLE IF NOT EXISTS gateway_sessions (
id TEXT PRIMARY KEY,
project_id TEXT,
gateway_service_id TEXT NOT NULL,
status TEXT NOT NULL DEFAULT 'pending',
started_at TEXT,
ended_at TEXT,
gateway_session_json TEXT NOT NULL DEFAULT '{}'
);
CREATE TABLE IF NOT EXISTS box_resources (
id TEXT PRIMARY KEY,
project_id TEXT,
gateway_session_id TEXT,
resource_state TEXT NOT NULL DEFAULT 'available',
labels_json TEXT NOT NULL DEFAULT '{}',
resource_json TEXT NOT NULL DEFAULT '{}',
updated_at TEXT NOT NULL
);
CREATE TABLE IF NOT EXISTS box_capabilities (
id TEXT PRIMARY KEY,
box_resource_id TEXT NOT NULL,
capability_type TEXT NOT NULL,
capability_json TEXT NOT NULL DEFAULT '{}',
updated_at TEXT NOT NULL
);
CREATE TABLE IF NOT EXISTS wiring_configs (
id TEXT PRIMARY KEY,
project_id TEXT,
wiring_json TEXT NOT NULL DEFAULT '{}',
status TEXT NOT NULL DEFAULT 'pending',
updated_at TEXT NOT NULL
);
CREATE TABLE IF NOT EXISTS patch_panel_status (
id TEXT PRIMARY KEY,
gateway_session_id TEXT,
wiring_config_id TEXT,
status_json TEXT NOT NULL DEFAULT '{}',
updated_at TEXT NOT NULL
);
CREATE TABLE IF NOT EXISTS hardware_operations (
id TEXT PRIMARY KEY,
project_id TEXT,
requested_by TEXT,
operation_type TEXT NOT NULL,
operation_json TEXT NOT NULL DEFAULT '{}',
status TEXT NOT NULL DEFAULT 'requested',
requested_at TEXT NOT NULL,
updated_at TEXT NOT NULL
);
CREATE TABLE IF NOT EXISTS audit_events (
id TEXT PRIMARY KEY,
request_id TEXT NOT NULL,
actor TEXT NOT NULL,
source TEXT NOT NULL,
operation TEXT NOT NULL,
target TEXT NOT NULL,
result TEXT NOT NULL,
timestamp TEXT NOT NULL,
event_json TEXT NOT NULL DEFAULT '{}'
);
CREATE TABLE IF NOT EXISTS agent_sessions (
id TEXT PRIMARY KEY,
project_id TEXT,
agent_id TEXT NOT NULL,
status TEXT NOT NULL DEFAULT 'pending',
started_at TEXT,
ended_at TEXT,
owner_user_id TEXT REFERENCES users(id),
conversation_id TEXT,
thread_id TEXT,
last_trace_id TEXT,
session_json TEXT NOT NULL DEFAULT '{}',
updated_at TEXT
);
ALTER TABLE agent_sessions ADD COLUMN IF NOT EXISTS owner_user_id TEXT
REFERENCES users(id);
ALTER TABLE agent_sessions ADD COLUMN IF NOT EXISTS conversation_id
TEXT;
ALTER TABLE agent_sessions ADD COLUMN IF NOT EXISTS thread_id TEXT;
ALTER TABLE agent_sessions ADD COLUMN IF NOT EXISTS last_trace_id TEXT;
ALTER TABLE agent_sessions ADD COLUMN IF NOT EXISTS session_json TEXT
NOT NULL DEFAULT '{}';
ALTER TABLE agent_sessions ADD COLUMN IF NOT EXISTS updated_at TEXT;
CREATE INDEX IF NOT EXISTS idx_agent_sessions_owner ON
agent_sessions(owner_user_id);
CREATE INDEX IF NOT EXISTS idx_agent_sessions_conversation ON
agent_sessions(conversation_id);
CREATE INDEX IF NOT EXISTS idx_agent_sessions_active_updated ON
agent_sessions(updated_at DESC, id DESC) WHERE status <> 'archived';
CREATE INDEX IF NOT EXISTS idx_agent_sessions_owner_active_updated ON
agent_sessions(owner_user_id, updated_at DESC, id DESC) WHERE status <>
'archived';
CREATE TABLE IF NOT EXISTS account_workspaces (
id TEXT PRIMARY KEY,
owner_user_id TEXT NOT NULL REFERENCES users(id),
project_id TEXT NOT NULL,
name TEXT NOT NULL DEFAULT 'Default Workbench',
status TEXT NOT NULL DEFAULT 'active' CHECK (status IN ('active', 'archived')),
is_default BOOLEAN NOT NULL DEFAULT true,
selected_conversation_id TEXT,
selected_agent_session_id TEXT,
active_trace_id TEXT,
provider_profile TEXT,
workspace_json TEXT NOT NULL DEFAULT '{}',
revision INTEGER NOT NULL DEFAULT 1,
updated_by_session_id TEXT,
updated_by_client TEXT,
created_at TEXT NOT NULL,
updated_at TEXT NOT NULL
);
CREATE UNIQUE INDEX IF NOT EXISTS idx_account_workspaces_default ON
account_workspaces(owner_user_id, project_id) WHERE is_default = TRUE
AND status = 'active';
CREATE INDEX IF NOT EXISTS idx_account_workspaces_owner ON
account_workspaces(owner_user_id, project_id, updated_at DESC);
CREATE TABLE IF NOT EXISTS worker_sessions (
id TEXT PRIMARY KEY,
agent_session_id TEXT,
worker_id TEXT NOT NULL,
status TEXT NOT NULL DEFAULT 'pending',
started_at TEXT,
ended_at TEXT
);
CREATE TABLE IF NOT EXISTS agent_trace_events (
id TEXT PRIMARY KEY,
trace_id TEXT NOT NULL,
agent_session_id TEXT,
worker_session_id TEXT,
level TEXT NOT NULL DEFAULT 'info',
message TEXT NOT NULL DEFAULT '',
event_json TEXT NOT NULL DEFAULT '{}',
occurred_at TEXT NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_agent_trace_events_trace_order ON
agent_trace_events(trace_id, occurred_at, id);
CREATE INDEX IF NOT EXISTS idx_agent_trace_events_session_order ON
agent_trace_events(agent_session_id, occurred_at, id);
CREATE INDEX IF NOT EXISTS idx_agent_trace_events_worker_order ON
agent_trace_events(worker_session_id, occurred_at, id);
CREATE TABLE IF NOT EXISTS workbench_projection_state (
trace_id TEXT PRIMARY KEY,
session_id TEXT,
conversation_id TEXT,
thread_id TEXT,
run_id TEXT NOT NULL,
command_id TEXT NOT NULL,
last_agentrun_seq INTEGER NOT NULL DEFAULT 0,
last_projected_seq INTEGER NOT NULL DEFAULT 0,
upstream_latest_seq INTEGER,
projection_status TEXT NOT NULL DEFAULT 'projecting',
projection_health TEXT NOT NULL DEFAULT 'healthy',
result_sync_state TEXT NOT NULL DEFAULT 'not_started',
last_projected_at TEXT,
last_result_sync_at TEXT,
last_error_code TEXT,
last_error_message TEXT,
failure_count INTEGER NOT NULL DEFAULT 0,
next_retry_at TEXT,
projection_json TEXT NOT NULL DEFAULT '{}',
created_at TEXT NOT NULL,
updated_at TEXT NOT NULL
);
CREATE INDEX IF NOT EXISTS
idx_workbench_projection_state_status_retry_updated ON
workbench_projection_state(projection_status, next_retry_at,
updated_at);
CREATE INDEX IF NOT EXISTS idx_workbench_projection_state_run_command ON
workbench_projection_state(run_id, command_id);
CREATE INDEX IF NOT EXISTS
idx_workbench_projection_state_session_updated ON
workbench_projection_state(session_id, updated_at DESC);
CREATE TABLE IF NOT EXISTS workbench_sessions (
session_id TEXT PRIMARY KEY,
owner_user_id TEXT REFERENCES users(id),
project_id TEXT,
conversation_id TEXT,
thread_id TEXT,
status TEXT NOT NULL DEFAULT 'unknown',
last_trace_id TEXT,
projected_seq INTEGER NOT NULL DEFAULT 0,
source_seq INTEGER NOT NULL DEFAULT 0,
source_event_id TEXT,
terminal BOOLEAN NOT NULL DEFAULT false,
sealed BOOLEAN NOT NULL DEFAULT false,
session_json TEXT NOT NULL DEFAULT '{}',
created_at TEXT NOT NULL,
updated_at TEXT NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_workbench_sessions_owner_updated ON
workbench_sessions(owner_user_id, updated_at DESC, session_id);
CREATE INDEX IF NOT EXISTS idx_workbench_sessions_status_updated ON
workbench_sessions(status, updated_at DESC, session_id);
CREATE TABLE IF NOT EXISTS workbench_messages (
message_id TEXT PRIMARY KEY,
session_id TEXT NOT NULL,
turn_id TEXT,
trace_id TEXT,
role TEXT NOT NULL,
status TEXT NOT NULL DEFAULT 'unknown',
projected_seq INTEGER NOT NULL DEFAULT 0,
source_seq INTEGER NOT NULL DEFAULT 0,
source_event_id TEXT,
terminal BOOLEAN NOT NULL DEFAULT false,
sealed BOOLEAN NOT NULL DEFAULT false,
message_json TEXT NOT NULL DEFAULT '{}',
created_at TEXT NOT NULL,
updated_at TEXT NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_workbench_messages_session_updated ON
workbench_messages(session_id, updated_at ASC, message_id);
CREATE INDEX IF NOT EXISTS idx_workbench_messages_trace ON
workbench_messages(trace_id, message_id);
CREATE INDEX IF NOT EXISTS idx_workbench_messages_turn ON
workbench_messages(turn_id, message_id);
CREATE TABLE IF NOT EXISTS workbench_parts (
part_id TEXT PRIMARY KEY,
message_id TEXT NOT NULL,
session_id TEXT NOT NULL,
turn_id TEXT,
trace_id TEXT,
part_index INTEGER NOT NULL DEFAULT 0,
part_type TEXT NOT NULL DEFAULT 'text',
status TEXT NOT NULL DEFAULT 'unknown',
projected_seq INTEGER NOT NULL DEFAULT 0,
source_seq INTEGER NOT NULL DEFAULT 0,
source_event_id TEXT,
terminal BOOLEAN NOT NULL DEFAULT false,
sealed BOOLEAN NOT NULL DEFAULT false,
part_json TEXT NOT NULL DEFAULT '{}',
created_at TEXT NOT NULL,
updated_at TEXT NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_workbench_parts_message_index ON
workbench_parts(message_id, part_index, part_id);
CREATE INDEX IF NOT EXISTS idx_workbench_parts_session_trace ON
workbench_parts(session_id, trace_id, part_index);
CREATE TABLE IF NOT EXISTS workbench_turns (
turn_id TEXT PRIMARY KEY,
session_id TEXT NOT NULL,
trace_id TEXT,
message_id TEXT,
status TEXT NOT NULL DEFAULT 'unknown',
projected_seq INTEGER NOT NULL DEFAULT 0,
source_seq INTEGER NOT NULL DEFAULT 0,
source_event_id TEXT,
terminal BOOLEAN NOT NULL DEFAULT false,
sealed BOOLEAN NOT NULL DEFAULT false,
final_response_json TEXT NOT NULL DEFAULT 'null',
diagnostic_json TEXT NOT NULL DEFAULT '{}',
turn_json TEXT NOT NULL DEFAULT '{}',
created_at TEXT NOT NULL,
updated_at TEXT NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_workbench_turns_session_updated ON
workbench_turns(session_id, updated_at DESC, turn_id);
CREATE INDEX IF NOT EXISTS idx_workbench_turns_trace ON
workbench_turns(trace_id, turn_id);
CREATE TABLE IF NOT EXISTS workbench_trace_events (
id TEXT PRIMARY KEY,
trace_id TEXT NOT NULL,
session_id TEXT,
turn_id TEXT,
message_id TEXT,
source_seq INTEGER NOT NULL DEFAULT 0,
source_event_id TEXT,
projected_seq INTEGER NOT NULL DEFAULT 0,
event_type TEXT NOT NULL DEFAULT 'event',
terminal BOOLEAN NOT NULL DEFAULT false,
sealed BOOLEAN NOT NULL DEFAULT false,
event_json TEXT NOT NULL DEFAULT '{}',
occurred_at TEXT NOT NULL,
updated_at TEXT NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_workbench_trace_events_trace_seq ON
workbench_trace_events(trace_id, source_seq, projected_seq, id);
CREATE INDEX IF NOT EXISTS idx_workbench_trace_events_session_seq ON
workbench_trace_events(session_id, source_seq, projected_seq, id);
WITH duplicate_trace_source_events AS (
SELECT
id,
ROW_NUMBER() OVER (
PARTITION BY trace_id, source_event_id
ORDER BY occurred_at, id
) AS duplicate_rank
FROM workbench_trace_events
WHERE trace_id IS NOT NULL AND source_event_id IS NOT NULL
), trace_source_event_rewrites AS (
SELECT
id,
'workbench_trace_events:' || id AS stable_source_event_id
FROM duplicate_trace_source_events
WHERE duplicate_rank > 1
)
UPDATE workbench_trace_events AS target
SET
source_event_id = trace_source_event_rewrites.stable_source_event_id,
updated_at = COALESCE(NULLIF(target.updated_at, ''), target.occurred_at, CURRENT_TIMESTAMP::text)
FROM trace_source_event_rewrites
WHERE target.id = trace_source_event_rewrites.id
AND target.source_event_id IS DISTINCT FROM trace_source_event_rewrites.stable_source_event_id;
WITH trace_event_projected_seq_conflicts AS (
SELECT trace_id
FROM workbench_trace_events
WHERE trace_id IS NOT NULL
GROUP BY trace_id
HAVING COUNT(*) <> COUNT(DISTINCT projected_seq)
), trace_event_resequence AS (
SELECT
workbench_trace_events.id,
(ROW_NUMBER() OVER (
PARTITION BY workbench_trace_events.trace_id
ORDER BY
CASE WHEN workbench_trace_events.projected_seq > 0 THEN 0 ELSE 1 END,
workbench_trace_events.projected_seq,
workbench_trace_events.occurred_at,
workbench_trace_events.id
))::integer AS durable_projected_seq
FROM workbench_trace_events
INNER JOIN trace_event_projected_seq_conflicts
ON trace_event_projected_seq_conflicts.trace_id = workbench_trace_events.trace_id
)
UPDATE workbench_trace_events AS target
SET
projected_seq = trace_event_resequence.durable_projected_seq,
source_seq = CASE
WHEN target.source_seq > 0 THEN target.source_seq
ELSE trace_event_resequence.durable_projected_seq
END,
updated_at = COALESCE(NULLIF(target.updated_at, ''), target.occurred_at, CURRENT_TIMESTAMP::text)
FROM trace_event_resequence
WHERE target.id = trace_event_resequence.id
AND (
target.projected_seq IS DISTINCT FROM trace_event_resequence.durable_projected_seq
OR target.source_seq <= 0
);
DROP INDEX IF EXISTS idx_workbench_trace_events_trace_source_event;
CREATE UNIQUE INDEX idx_workbench_trace_events_trace_source_event ON
workbench_trace_events(trace_id, source_event_id) WHERE source_event_id
IS NOT NULL;
DROP INDEX IF EXISTS idx_workbench_trace_events_trace_projected_seq;
CREATE UNIQUE INDEX idx_workbench_trace_events_trace_projected_seq ON
workbench_trace_events(trace_id, projected_seq);
CREATE TABLE IF NOT EXISTS workbench_event_sequences (
aggregate_id TEXT PRIMARY KEY,
aggregate_type TEXT NOT NULL DEFAULT 'trace',
session_id TEXT,
turn_id TEXT,
trace_id TEXT,
last_seq INTEGER NOT NULL DEFAULT 0,
created_at TEXT NOT NULL,
updated_at TEXT NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_workbench_event_sequences_session ON
workbench_event_sequences(session_id, updated_at DESC, aggregate_id);
CREATE INDEX IF NOT EXISTS idx_workbench_event_sequences_trace ON
workbench_event_sequences(trace_id, updated_at DESC, aggregate_id);
CREATE TABLE IF NOT EXISTS workbench_events (
event_seq BIGSERIAL PRIMARY KEY,
event_id TEXT NOT NULL UNIQUE,
aggregate_id TEXT NOT NULL,
aggregate_type TEXT NOT NULL DEFAULT 'trace',
aggregate_seq INTEGER NOT NULL,
session_id TEXT,
turn_id TEXT,
trace_id TEXT,
message_id TEXT,
source_run_id TEXT,
source_command_id TEXT,
source_seq INTEGER NOT NULL DEFAULT 0,
source_event_id TEXT,
event_type TEXT NOT NULL DEFAULT 'event',
projection_revision INTEGER NOT NULL DEFAULT 0,
terminal BOOLEAN NOT NULL DEFAULT false,
sealed BOOLEAN NOT NULL DEFAULT false,
payload_json TEXT NOT NULL DEFAULT '{}',
occurred_at TEXT NOT NULL,
committed_at TEXT NOT NULL
);
CREATE UNIQUE INDEX IF NOT EXISTS idx_workbench_events_aggregate_seq ON
workbench_events(aggregate_id, aggregate_seq);
CREATE UNIQUE INDEX IF NOT EXISTS
idx_workbench_events_aggregate_source_event ON
workbench_events(aggregate_id, source_event_id) WHERE source_event_id IS
NOT NULL;
CREATE INDEX IF NOT EXISTS idx_workbench_events_trace_seq ON
workbench_events(trace_id, event_seq);
CREATE INDEX IF NOT EXISTS idx_workbench_events_session_seq ON
workbench_events(session_id, event_seq);
CREATE INDEX IF NOT EXISTS idx_workbench_events_type_seq ON
workbench_events(event_type, event_seq);
CREATE TABLE IF NOT EXISTS workbench_session_inputs (
input_id TEXT PRIMARY KEY,
session_id TEXT NOT NULL,
turn_id TEXT,
trace_id TEXT,
message_id TEXT,
command_id TEXT,
delivery TEXT NOT NULL DEFAULT 'queue',
admitted_seq INTEGER NOT NULL DEFAULT 0,
promoted_seq INTEGER,
status TEXT NOT NULL DEFAULT 'admitted',
error_code TEXT,
source_event_id TEXT,
input_json TEXT NOT NULL DEFAULT '{}',
created_at TEXT NOT NULL,
updated_at TEXT NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_workbench_session_inputs_session_seq ON
workbench_session_inputs(session_id, admitted_seq, input_id);
CREATE INDEX IF NOT EXISTS idx_workbench_session_inputs_trace ON
workbench_session_inputs(trace_id, input_id);
CREATE INDEX IF NOT EXISTS idx_workbench_session_inputs_command ON
workbench_session_inputs(command_id, input_id) WHERE command_id IS NOT
NULL;
CREATE UNIQUE INDEX IF NOT EXISTS
idx_workbench_session_inputs_source_event ON
workbench_session_inputs(session_id, source_event_id) WHERE
source_event_id IS NOT NULL;
CREATE TABLE IF NOT EXISTS workbench_projection_checkpoints (
trace_id TEXT PRIMARY KEY,
session_id TEXT,
turn_id TEXT,
run_id TEXT,
command_id TEXT,
projected_seq INTEGER NOT NULL DEFAULT 0,
source_seq INTEGER NOT NULL DEFAULT 0,
source_event_id TEXT,
projection_status TEXT NOT NULL DEFAULT 'projecting',
projection_health TEXT NOT NULL DEFAULT 'healthy',
terminal BOOLEAN NOT NULL DEFAULT false,
sealed BOOLEAN NOT NULL DEFAULT false,
diagnostic_json TEXT NOT NULL DEFAULT '{}',
checkpoint_json TEXT NOT NULL DEFAULT '{}',
created_at TEXT NOT NULL,
updated_at TEXT NOT NULL
);
CREATE INDEX IF NOT EXISTS
idx_workbench_projection_checkpoints_status_updated ON
workbench_projection_checkpoints(projection_status, updated_at DESC,
trace_id);
CREATE INDEX IF NOT EXISTS
idx_workbench_projection_checkpoints_session_updated ON
workbench_projection_checkpoints(session_id, updated_at DESC, trace_id);
CREATE TABLE IF NOT EXISTS workbench_projection_outbox (
outbox_seq BIGSERIAL PRIMARY KEY,
event_seq BIGINT,
aggregate_id TEXT,
aggregate_seq INTEGER NOT NULL DEFAULT 0,
projection_revision INTEGER NOT NULL DEFAULT 0,
trace_id TEXT NOT NULL,
session_id TEXT,
turn_id TEXT,
message_id TEXT,
projected_seq INTEGER NOT NULL DEFAULT 0,
source_seq INTEGER NOT NULL DEFAULT 0,
source_event_id TEXT,
commit_type TEXT NOT NULL DEFAULT 'event',
terminal BOOLEAN NOT NULL DEFAULT false,
sealed BOOLEAN NOT NULL DEFAULT false,
payload_json TEXT NOT NULL DEFAULT '{}',
created_at TEXT NOT NULL
);
ALTER TABLE workbench_projection_outbox ADD COLUMN IF NOT EXISTS
event_seq BIGINT;
ALTER TABLE workbench_projection_outbox ADD COLUMN IF NOT EXISTS
aggregate_id TEXT;
ALTER TABLE workbench_projection_outbox ADD COLUMN IF NOT EXISTS
aggregate_seq INTEGER NOT NULL DEFAULT 0;
ALTER TABLE workbench_projection_outbox ADD COLUMN IF NOT EXISTS
projection_revision INTEGER NOT NULL DEFAULT 0;
CREATE INDEX IF NOT EXISTS idx_workbench_projection_outbox_trace_seq ON
workbench_projection_outbox(trace_id, outbox_seq);
CREATE INDEX IF NOT EXISTS idx_workbench_projection_outbox_session_seq
ON workbench_projection_outbox(session_id, outbox_seq);
CREATE INDEX IF NOT EXISTS idx_workbench_projection_outbox_after_seq ON
workbench_projection_outbox(outbox_seq);
CREATE INDEX IF NOT EXISTS idx_workbench_projection_outbox_event_seq ON
workbench_projection_outbox(event_seq) WHERE event_seq IS NOT NULL;
INSERT INTO workbench_sessions (
session_id,
owner_user_id,
project_id,
conversation_id,
thread_id,
status,
last_trace_id,
projected_seq,
source_seq,
source_event_id,
terminal,
sealed,
session_json,
created_at,
updated_at
)
SELECT
id,
owner_user_id,
project_id,
conversation_id,
thread_id,
status,
last_trace_id,
0,
0,
id,
status IN ('completed', 'failed', 'canceled', 'cancelled', 'archived'),
status IN ('completed', 'failed', 'canceled', 'cancelled', 'archived') AND ended_at IS NOT NULL,
COALESCE(NULLIF(session_json, ''), '{}'),
COALESCE(started_at, updated_at, CURRENT_TIMESTAMP::text),
COALESCE(updated_at, ended_at, started_at, CURRENT_TIMESTAMP::text)
FROM agent_sessions
WHERE id IS NOT NULL
ON CONFLICT (session_id) DO NOTHING;
INSERT INTO workbench_trace_events (
id,
trace_id,
session_id,
turn_id,
message_id,
source_seq,
source_event_id,
projected_seq,
event_type,
terminal,
sealed,
event_json,
occurred_at,
updated_at
)
SELECT
source_trace_events.id,
source_trace_events.trace_id,
source_trace_events.agent_session_id,
source_trace_events.trace_id,
NULL,
source_trace_events.durable_projection_seq,
source_trace_events.id,
source_trace_events.durable_projection_seq,
'agent_trace_event',
false,
false,
COALESCE(NULLIF(source_trace_events.event_json, ''), '{}'),
source_trace_events.occurred_at,
source_trace_events.occurred_at
FROM (
SELECT
agent_trace_events.*,
(ROW_NUMBER() OVER (PARTITION BY trace_id ORDER BY occurred_at, id))::integer AS durable_projection_seq
FROM agent_trace_events
WHERE id IS NOT NULL AND trace_id IS NOT NULL
) AS source_trace_events
ON CONFLICT DO NOTHING;
INSERT INTO workbench_turns (
turn_id,
session_id,
trace_id,
message_id,
status,
projected_seq,
source_seq,
source_event_id,
terminal,
sealed,
final_response_json,
diagnostic_json,
turn_json,
created_at,
updated_at
)
SELECT
trace_id,
COALESCE(session_id, trace_id),
trace_id,
NULL,
projection_status,
last_projected_seq,
last_agentrun_seq,
trace_id || ':' || last_agentrun_seq::text,
projection_status IN ('caught_up', 'terminal'),
projection_status = 'terminal',
'null',
COALESCE(NULLIF(projection_json, ''), '{}'),
COALESCE(NULLIF(projection_json, ''), '{}'),
COALESCE(created_at, updated_at, CURRENT_TIMESTAMP::text),
COALESCE(updated_at, created_at, CURRENT_TIMESTAMP::text)
FROM workbench_projection_state
WHERE trace_id IS NOT NULL
ON CONFLICT (turn_id) DO NOTHING;
INSERT INTO workbench_projection_checkpoints (
trace_id,
session_id,
turn_id,
run_id,
command_id,
projected_seq,
source_seq,
source_event_id,
projection_status,
projection_health,
terminal,
sealed,
diagnostic_json,
checkpoint_json,
created_at,
updated_at
)
SELECT
trace_id,
session_id,
trace_id,
run_id,
command_id,
last_projected_seq,
last_agentrun_seq,
trace_id || ':' || last_agentrun_seq::text,
projection_status,
projection_health,
projection_status IN ('caught_up', 'terminal'),
projection_status = 'terminal',
COALESCE(NULLIF(projection_json, ''), '{}'),
COALESCE(NULLIF(projection_json, ''), '{}'),
COALESCE(created_at, updated_at, CURRENT_TIMESTAMP::text),
COALESCE(updated_at, created_at, CURRENT_TIMESTAMP::text)
FROM workbench_projection_state
WHERE trace_id IS NOT NULL
ON CONFLICT (trace_id) DO NOTHING;
CREATE TABLE IF NOT EXISTS evidence_records (
id TEXT PRIMARY KEY,
project_id TEXT,
operation_id TEXT,
evidence_type TEXT NOT NULL,
uri TEXT NOT NULL DEFAULT '',
metadata_json TEXT NOT NULL DEFAULT '{}',
created_at TEXT NOT NULL
);
CREATE TABLE IF NOT EXISTS hwlab_schema_migrations (
id TEXT PRIMARY KEY,
schema_version TEXT NOT NULL,
applied_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
migration_json TEXT NOT NULL DEFAULT '{}'
);
INSERT INTO hwlab_schema_migrations (id, schema_version, applied_at,
migration_json)
VALUES (
'0001_cloud_core_skeleton',
'runtime-durable-postgres-v7',
CURRENT_TIMESTAMP,
'{"path":"internal/db/migrations/0001_cloud_core_skeleton.sql","runtime":"cloud-api"}'
)
ON CONFLICT (id) DO UPDATE SET
schema_version = EXCLUDED.schema_version,
migration_json = EXCLUDED.migration_json;
- apiVersion: v1
kind: Service
metadata:
name: hwlab-v03-postgres
namespace: hwlab-v03
labels:
app.kubernetes.io/name: hwlab-v03-postgres
app.kubernetes.io/part-of: hwlab
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/profile: v03
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: hwlab-v03-postgres
ports:
- name: postgres
port: 5432
targetPort: postgres
- apiVersion: apps/v1
kind: StatefulSet
metadata:
name: hwlab-v03-postgres
namespace: hwlab-v03
labels:
app.kubernetes.io/name: hwlab-v03-postgres
app.kubernetes.io/part-of: hwlab
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/profile: v03
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
spec:
serviceName: hwlab-v03-postgres
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: hwlab-v03-postgres
template:
metadata:
labels:
app.kubernetes.io/name: hwlab-v03-postgres
app.kubernetes.io/part-of: hwlab
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/profile: v03
hwlab.pikastech.local/migration-sha256: 880f77326c6dd41a
annotations:
hwlab.pikastech.local/migration-sha256: 880f77326c6dd41a994931567da1d0372af0b3c3f8aef1e2f69e3d5ed4343274
spec:
containers:
- name: postgres
image: 127.0.0.1:5000/hwlab/postgres:16-alpine
imagePullPolicy: IfNotPresent
env:
- name: POSTGRES_DB
value: hwlab_v03
- name: POSTGRES_USER
value: hwlab_v03
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: hwlab-v03-postgres
key: POSTGRES_PASSWORD
ports:
- name: postgres
containerPort: 5432
readinessProbe:
tcpSocket:
port: postgres
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
tcpSocket:
port: postgres
initialDelaySeconds: 30
periodSeconds: 20
volumeMounts:
- name: data
mountPath: /var/lib/postgresql/data
- name: init
mountPath: /docker-entrypoint-initdb.d
readOnly: true
volumes:
- name: init
configMap:
name: hwlab-v03-postgres-init
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi
+305 -208
View File
@@ -1,208 +1,305 @@
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: Service
metadata:
name: hwlab-cloud-api
namespace: hwlab-v03
labels:
app.kubernetes.io/name: hwlab-cloud-api
hwlab.pikastech.local/service-id: hwlab-cloud-api
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/profile: v03
hwlab.pikastech.local/monitoring: disabled
annotations:
hwlab.pikastech.local/rendered-by: scripts/gitops-render.mjs
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: hwlab-cloud-api
ports:
- name: http
port: 6667
targetPort: http
- name: metrics
port: 9100
targetPort: metrics
- apiVersion: v1
kind: Service
metadata:
name: hwlab-project-management
namespace: hwlab-v03
labels:
app.kubernetes.io/name: hwlab-project-management
hwlab.pikastech.local/service-id: hwlab-project-management
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/profile: v03
hwlab.pikastech.local/monitoring: disabled
annotations:
hwlab.pikastech.local/rendered-by: scripts/gitops-render.mjs
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: hwlab-project-management
ports:
- name: http
port: 6672
targetPort: http
- name: metrics
port: 9100
targetPort: metrics
- apiVersion: v1
kind: Service
metadata:
name: hwlab-workbench-runtime
namespace: hwlab-v03
labels:
app.kubernetes.io/name: hwlab-workbench-runtime
hwlab.pikastech.local/service-id: hwlab-workbench-runtime
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/profile: v03
hwlab.pikastech.local/monitoring: disabled
annotations:
hwlab.pikastech.local/rendered-by: scripts/gitops-render.mjs
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: hwlab-workbench-runtime
ports:
- name: http
port: 6671
targetPort: http
- name: metrics
port: 9100
targetPort: metrics
- apiVersion: v1
kind: Service
metadata:
name: hwlab-user-billing
namespace: hwlab-v03
labels:
app.kubernetes.io/name: hwlab-user-billing
hwlab.pikastech.local/service-id: hwlab-user-billing
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/profile: v03
hwlab.pikastech.local/monitoring: disabled
annotations:
hwlab.pikastech.local/rendered-by: scripts/gitops-render.mjs
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: hwlab-user-billing
ports:
- name: http
port: 6670
targetPort: http
- name: metrics
port: 9100
targetPort: metrics
- apiVersion: v1
kind: Service
metadata:
name: hwlab-cloud-web
namespace: hwlab-v03
labels:
app.kubernetes.io/name: hwlab-cloud-web
hwlab.pikastech.local/service-id: hwlab-cloud-web
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/profile: v03
hwlab.pikastech.local/monitoring: disabled
annotations:
hwlab.pikastech.local/rendered-by: scripts/gitops-render.mjs
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: hwlab-cloud-web
ports:
- name: http
port: 8080
targetPort: http
- name: metrics
port: 9100
targetPort: metrics
- apiVersion: v1
kind: Service
metadata:
name: hwlab-gateway
namespace: hwlab-v03
labels:
app.kubernetes.io/name: hwlab-gateway
hwlab.pikastech.local/service-id: hwlab-gateway
hwlab.pikastech.local/activation: manual
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/profile: v03
annotations:
hwlab.pikastech.local/rendered-by: scripts/gitops-render.mjs
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: hwlab-gateway
ports:
- name: http
port: 7001
targetPort: http
- apiVersion: v1
kind: Service
metadata:
name: hwlab-agent-skills
namespace: hwlab-v03
labels:
app.kubernetes.io/name: hwlab-agent-skills
hwlab.pikastech.local/service-id: hwlab-agent-skills
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/profile: v03
hwlab.pikastech.local/monitoring: disabled
annotations:
hwlab.pikastech.local/rendered-by: scripts/gitops-render.mjs
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: hwlab-agent-skills
ports:
- name: http
port: 7430
targetPort: http
- name: metrics
port: 9100
targetPort: metrics
- apiVersion: v1
kind: Service
metadata:
name: hwlab-edge-proxy
namespace: hwlab-v03
labels:
app.kubernetes.io/name: hwlab-edge-proxy
hwlab.pikastech.local/service-id: hwlab-edge-proxy
hwlab.pikastech.local/gitops-target: v03
hwlab.pikastech.local/source-commit: 8f93559622be09667d54214a4390a79fccce5b18
hwlab.pikastech.local/environment: v03
hwlab.pikastech.local/profile: v03
hwlab.pikastech.local/monitoring: disabled
annotations:
hwlab.pikastech.local/rendered-by: scripts/gitops-render.mjs
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: hwlab-edge-proxy
ports:
- name: http
port: 6667
targetPort: http
- name: metrics
port: 9100
targetPort: metrics
{
"apiVersion": "v1",
"kind": "List",
"items": [
{
"apiVersion": "v1",
"kind": "Service",
"metadata": {
"name": "hwlab-cloud-api",
"namespace": "hwlab-v03",
"labels": {
"app.kubernetes.io/name": "hwlab-cloud-api",
"hwlab.pikastech.local/service-id": "hwlab-cloud-api",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/monitoring": "enabled"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs"
}
},
"spec": {
"type": "ClusterIP",
"selector": {
"app.kubernetes.io/name": "hwlab-cloud-api"
},
"ports": [
{
"name": "http",
"port": 6667,
"targetPort": "http"
},
{
"name": "metrics",
"port": 9100,
"targetPort": "metrics"
}
]
}
},
{
"apiVersion": "v1",
"kind": "Service",
"metadata": {
"name": "hwlab-project-management",
"namespace": "hwlab-v03",
"labels": {
"app.kubernetes.io/name": "hwlab-project-management",
"hwlab.pikastech.local/service-id": "hwlab-project-management",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/monitoring": "enabled"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs"
}
},
"spec": {
"type": "ClusterIP",
"selector": {
"app.kubernetes.io/name": "hwlab-project-management"
},
"ports": [
{
"name": "http",
"port": 6672,
"targetPort": "http"
},
{
"name": "metrics",
"port": 9100,
"targetPort": "metrics"
}
]
}
},
{
"apiVersion": "v1",
"kind": "Service",
"metadata": {
"name": "hwlab-workbench-runtime",
"namespace": "hwlab-v03",
"labels": {
"app.kubernetes.io/name": "hwlab-workbench-runtime",
"hwlab.pikastech.local/service-id": "hwlab-workbench-runtime",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/monitoring": "enabled"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs"
}
},
"spec": {
"type": "ClusterIP",
"selector": {
"app.kubernetes.io/name": "hwlab-workbench-runtime"
},
"ports": [
{
"name": "http",
"port": 6671,
"targetPort": "http"
},
{
"name": "metrics",
"port": 9100,
"targetPort": "metrics"
}
]
}
},
{
"apiVersion": "v1",
"kind": "Service",
"metadata": {
"name": "hwlab-user-billing",
"namespace": "hwlab-v03",
"labels": {
"app.kubernetes.io/name": "hwlab-user-billing",
"hwlab.pikastech.local/service-id": "hwlab-user-billing",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/monitoring": "enabled"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs"
}
},
"spec": {
"type": "ClusterIP",
"selector": {
"app.kubernetes.io/name": "hwlab-user-billing"
},
"ports": [
{
"name": "http",
"port": 6670,
"targetPort": "http"
},
{
"name": "metrics",
"port": 9100,
"targetPort": "metrics"
}
]
}
},
{
"apiVersion": "v1",
"kind": "Service",
"metadata": {
"name": "hwlab-cloud-web",
"namespace": "hwlab-v03",
"labels": {
"app.kubernetes.io/name": "hwlab-cloud-web",
"hwlab.pikastech.local/service-id": "hwlab-cloud-web",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/monitoring": "enabled"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs"
}
},
"spec": {
"type": "ClusterIP",
"selector": {
"app.kubernetes.io/name": "hwlab-cloud-web"
},
"ports": [
{
"name": "http",
"port": 8080,
"targetPort": "http"
},
{
"name": "metrics",
"port": 9100,
"targetPort": "metrics"
}
]
}
},
{
"apiVersion": "v1",
"kind": "Service",
"metadata": {
"name": "hwlab-gateway",
"namespace": "hwlab-v03",
"labels": {
"app.kubernetes.io/name": "hwlab-gateway",
"hwlab.pikastech.local/service-id": "hwlab-gateway",
"hwlab.pikastech.local/activation": "manual",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/profile": "v03"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs"
}
},
"spec": {
"type": "ClusterIP",
"selector": {
"app.kubernetes.io/name": "hwlab-gateway"
},
"ports": [
{
"name": "http",
"port": 7001,
"targetPort": "http"
}
]
}
},
{
"apiVersion": "v1",
"kind": "Service",
"metadata": {
"name": "hwlab-agent-skills",
"namespace": "hwlab-v03",
"labels": {
"app.kubernetes.io/name": "hwlab-agent-skills",
"hwlab.pikastech.local/service-id": "hwlab-agent-skills",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/monitoring": "enabled"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs"
}
},
"spec": {
"type": "ClusterIP",
"selector": {
"app.kubernetes.io/name": "hwlab-agent-skills"
},
"ports": [
{
"name": "http",
"port": 7430,
"targetPort": "http"
},
{
"name": "metrics",
"port": 9100,
"targetPort": "metrics"
}
]
}
},
{
"apiVersion": "v1",
"kind": "Service",
"metadata": {
"name": "hwlab-edge-proxy",
"namespace": "hwlab-v03",
"labels": {
"app.kubernetes.io/name": "hwlab-edge-proxy",
"hwlab.pikastech.local/service-id": "hwlab-edge-proxy",
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c",
"hwlab.pikastech.local/environment": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/monitoring": "enabled"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs"
}
},
"spec": {
"type": "ClusterIP",
"selector": {
"app.kubernetes.io/name": "hwlab-edge-proxy"
},
"ports": [
{
"name": "http",
"port": 6667,
"targetPort": "http"
},
{
"name": "metrics",
"port": 9100,
"targetPort": "metrics"
}
]
}
}
]
}
@@ -17,7 +17,7 @@
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/service-id": "hwlab-workbench-redis",
"hwlab.pikastech.local/source-commit": "8f93559622be09667d54214a4390a79fccce5b18"
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs",
@@ -43,7 +43,7 @@
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/service-id": "hwlab-workbench-redis",
"hwlab.pikastech.local/source-commit": "8f93559622be09667d54214a4390a79fccce5b18"
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs",
@@ -68,7 +68,7 @@
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/service-id": "hwlab-workbench-redis",
"hwlab.pikastech.local/source-commit": "8f93559622be09667d54214a4390a79fccce5b18"
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs",
@@ -165,7 +165,7 @@
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/service-id": "hwlab-workbench-redis",
"hwlab.pikastech.local/source-commit": "8f93559622be09667d54214a4390a79fccce5b18"
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs",
@@ -202,7 +202,7 @@
"hwlab.pikastech.local/gitops-target": "v03",
"hwlab.pikastech.local/profile": "v03",
"hwlab.pikastech.local/service-id": "hwlab-workbench-redis",
"hwlab.pikastech.local/source-commit": "8f93559622be09667d54214a4390a79fccce5b18"
"hwlab.pikastech.local/source-commit": "37fdcd2e6f0ae701c520944ff02681ea7aabcb8c"
},
"annotations": {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs",
File diff suppressed because it is too large Load Diff