Compare commits
33
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d86e9eab9c | ||
|
|
88ebfd30e1 | ||
|
|
60356c55aa | ||
|
|
68bccfc092 | ||
|
|
e031d656a0 | ||
|
|
347180d77b | ||
|
|
9fdb306601 | ||
|
|
c3e295494d | ||
|
|
17a186a9df | ||
|
|
321b602905 | ||
|
|
a1da3f4e42 | ||
|
|
8733595824 | ||
|
|
ff5ecf710e | ||
|
|
c2b78f8ff0 | ||
|
|
b0e1dcd4f0 | ||
|
|
e7f4b71cd0 | ||
|
|
4bcf4fe0a3 | ||
|
|
33de837556 | ||
|
|
b1d65fab30 | ||
|
|
25a9385751 | ||
|
|
0c8effe321 | ||
|
|
0aeb301be5 | ||
|
|
2892f80bd1 | ||
|
|
2b3bcbcfa8 | ||
|
|
cd3635643b | ||
|
|
326236b5e6 | ||
|
|
133c032144 | ||
|
|
373c020fc4 | ||
|
|
5d54a3ef92 | ||
|
|
ff458a86be | ||
|
|
3345c257c4 | ||
|
|
869cc95c8b | ||
|
|
58ae4560a7 |
No files matched your search
@@ -35,6 +35,22 @@ helm template ci-edge release-charts/mixingx-edge-unit
|
||||
|
||||
`mixingx-deploy` 的 ApplicationSet 按 unit chart 逐个发布,每个 edge/agent 一个独立 Helm release。详见 `mixingx-deploy/`。
|
||||
|
||||
## PostgreSQL on K3s
|
||||
|
||||
PostgreSQL StatefulSets use the Debian image's UID/GID 999 and run the image
|
||||
entrypoint directly. This skips gosu while preserving database initialization
|
||||
and startup on the existing data volume. The readiness probe uses
|
||||
`pg_isready` over TCP so the container is Ready only after PostgreSQL accepts
|
||||
connections, including after recovery.
|
||||
|
||||
Only the PostgreSQL container uses `privileged: true` as a temporary workaround
|
||||
for checkpoint signal failures observed on affected Ubuntu 26.04 / K3s nodes.
|
||||
The namespace's admission policy must permit privileged containers. The
|
||||
[containerd signal-denial report](https://github.com/containerd/containerd/issues/14485)
|
||||
describes the same checkpoint error with AppArmor. Check the host kernel log
|
||||
for an AppArmor signal denial and validate initialization and recovery with the
|
||||
corrected runtime or profile before removing privileged mode.
|
||||
|
||||
## 关联文档
|
||||
|
||||
- hub [AGENTS.md](https://gitee.com/mixing-tech/mixingx.hub) — 全项目指南
|
||||
|
||||
@@ -2,5 +2,5 @@ apiVersion: v2
|
||||
name: mixingx-agent-unit
|
||||
description: "One MixingX agent unit release: agent backend, agent web, and agent PostgreSQL."
|
||||
type: application
|
||||
version: 1.0.61
|
||||
appVersion: "1.0.61"
|
||||
version: 1.0.91
|
||||
appVersion: "1.0.91"
|
||||
@@ -207,6 +207,11 @@ spec:
|
||||
labels:
|
||||
app.kubernetes.io/component: {{ $name }}-postgres
|
||||
spec:
|
||||
securityContext:
|
||||
# Run the image entrypoint as postgres so it does not invoke gosu.
|
||||
runAsUser: 999
|
||||
runAsGroup: 999
|
||||
fsGroup: 999
|
||||
{{ include "mixingx-unit.followerScheduling" . | nindent 6 }}
|
||||
{{- with $.Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
@@ -216,6 +221,10 @@ spec:
|
||||
- name: postgres
|
||||
image: {{ .Values.images.postgres.repository }}:{{ .Values.images.postgres.tag | default "latest" }}
|
||||
imagePullPolicy: IfNotPresent
|
||||
command: ["docker-entrypoint.sh", "postgres"]
|
||||
securityContext:
|
||||
# Temporary compatibility workaround for checkpoint signal failures on affected k3s nodes.
|
||||
privileged: true
|
||||
env:
|
||||
- name: POSTGRES_PASSWORD
|
||||
value: "{{ .Values.sharedInfra.postgres.password }}"
|
||||
@@ -229,6 +238,15 @@ spec:
|
||||
- name: tcp
|
||||
containerPort: {{ .Values.ports.postgres }}
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- sh
|
||||
- -ec
|
||||
- >-
|
||||
exec pg_isready -q -h 127.0.0.1 -p {{ .Values.ports.postgres }} -U "$POSTGRES_USER" -d "$POSTGRES_DB"
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 3
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /var/lib/postgresql/data
|
||||
|
||||
@@ -2,5 +2,5 @@ apiVersion: v2
|
||||
name: mixingx-audit
|
||||
description: MixingX audit service.
|
||||
type: application
|
||||
version: 1.0.61
|
||||
appVersion: "1.0.61"
|
||||
version: 1.0.91
|
||||
appVersion: "1.0.91"
|
||||
@@ -31,6 +31,11 @@ spec:
|
||||
labels:
|
||||
app.kubernetes.io/component: {{ .Values.audit.database }}-postgres
|
||||
spec:
|
||||
securityContext:
|
||||
# Run the image entrypoint as postgres so it does not invoke gosu.
|
||||
runAsUser: 999
|
||||
runAsGroup: 999
|
||||
fsGroup: 999
|
||||
{{ include "mixingx-audit.tierAffinity" (dict "role" "audit" "root" $root) | nindent 6 }}
|
||||
{{- with $.Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
@@ -40,6 +45,10 @@ spec:
|
||||
- name: postgres
|
||||
image: {{ $root.Values.sharedInfra.postgres.image | default "docker.io/library/postgres:17" }}
|
||||
imagePullPolicy: IfNotPresent
|
||||
command: ["docker-entrypoint.sh", "postgres"]
|
||||
securityContext:
|
||||
# Temporary compatibility workaround for checkpoint signal failures on affected k3s nodes.
|
||||
privileged: true
|
||||
env:
|
||||
- name: POSTGRES_PASSWORD
|
||||
value: "{{ $root.Values.sharedInfra.postgres.password }}"
|
||||
@@ -53,6 +62,15 @@ spec:
|
||||
- name: tcp
|
||||
containerPort: {{ $root.Values.sharedInfra.postgres.port }}
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- sh
|
||||
- -ec
|
||||
- >-
|
||||
exec pg_isready -q -h 127.0.0.1 -p {{ $root.Values.sharedInfra.postgres.port }} -U "$POSTGRES_USER" -d "$POSTGRES_DB"
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 3
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /var/lib/postgresql/data
|
||||
|
||||
@@ -46,9 +46,12 @@ spec:
|
||||
key: AUDIT_PG_URI
|
||||
- name: AUDIT_PG_TIMEZONE
|
||||
value: "{{ $root.Values.timezone | default "Asia/Shanghai" }}"
|
||||
# 数据保留月数(按自然月清理分区)
|
||||
# 数据保留月数(按自然月清理分区;operations 表)
|
||||
- name: AUDIT_RETENTION_MONTHS
|
||||
value: "{{ .Values.audit.retentionMonths | default 6 }}"
|
||||
# 错误流水独立保留月数(errors 表,分表独立清除)
|
||||
- name: AUDIT_ERROR_RETENTION_MONTHS
|
||||
value: "{{ .Values.audit.errorRetentionMonths | default 3 }}"
|
||||
# MQTT broker
|
||||
- name: AUDIT_MQTT_BROKER_URL
|
||||
value: "mqtt://{{ .Values.audit.mqtt.brokerHost }}:{{ .Values.audit.mqtt.brokerPort }}"
|
||||
|
||||
@@ -24,8 +24,10 @@ audit:
|
||||
replicas: 2
|
||||
database: audit-db
|
||||
pgStorage: 5Gi
|
||||
# 数据保留月数,按完整自然月清理分区(后端 AUDIT_RETENTION_MONTHS)
|
||||
# 操作流水(audit_operations)保留月数,按完整自然月清理分区(后端 AUDIT_RETENTION_MONTHS)
|
||||
retentionMonths: 6
|
||||
# 错误流水(audit_errors)独立保留月数(后端 AUDIT_ERROR_RETENTION_MONTHS,2026-10-26 裁决:分表独立)
|
||||
errorRetentionMonths: 3
|
||||
# JWT 鉴权:后端通过 SSO /api/sso/users/info 间接校验 token,这里配置 SSO base URL
|
||||
jwt:
|
||||
ssoBaseUrl: "http://sso-service:8080"
|
||||
|
||||
@@ -2,5 +2,5 @@ apiVersion: v2
|
||||
name: mixingx-codeserver
|
||||
description: MixingX code-server — 浏览器版 VS Code 测试 IDE,预装 GitLens/EditorConfig/Prettier/C#/OPC UA Browser 插件。
|
||||
type: application
|
||||
version: 1.0.61
|
||||
appVersion: "1.0.61"
|
||||
version: 1.0.91
|
||||
appVersion: "1.0.91"
|
||||
@@ -2,5 +2,5 @@ apiVersion: v2
|
||||
name: mixingx-edge-unit
|
||||
description: "One MixingX edge unit release with durable local revision storage."
|
||||
type: application
|
||||
version: 1.0.61
|
||||
appVersion: "1.0.61"
|
||||
version: 1.0.91
|
||||
appVersion: "1.0.91"
|
||||
@@ -2,5 +2,5 @@ apiVersion: v2
|
||||
name: mixingx-gateway
|
||||
description: MixingX gateway service, RBAC, and root ingress.
|
||||
type: application
|
||||
version: 1.0.61
|
||||
appVersion: "1.0.61"
|
||||
version: 1.0.91
|
||||
appVersion: "1.0.91"
|
||||
@@ -2,5 +2,5 @@ apiVersion: v2
|
||||
name: mixingx-infra
|
||||
description: MixingX shared infrastructure services (Redis, MongoDB, RabbitMQ).
|
||||
type: application
|
||||
version: 1.0.61
|
||||
appVersion: "1.0.61"
|
||||
version: 1.0.91
|
||||
appVersion: "1.0.91"
|
||||
@@ -2,5 +2,5 @@ apiVersion: v2
|
||||
name: mixingx-mqttx
|
||||
description: MixingX MQTTX Web — 浏览器端 MQTT 客户端,用于监控/调试各 Edge 的 NanoMQ broker。
|
||||
type: application
|
||||
version: 1.0.61
|
||||
appVersion: "1.0.61"
|
||||
version: 1.0.91
|
||||
appVersion: "1.0.91"
|
||||
@@ -2,5 +2,5 @@ apiVersion: v2
|
||||
name: mixingx-network-agent
|
||||
description: "MixingX network console agent: 每节点常驻,提供主机网口(IP/掩码/网关/DNS)与 WiFi 的可视化配置 API。"
|
||||
type: application
|
||||
version: 1.0.61
|
||||
appVersion: "1.0.61"
|
||||
version: 1.0.91
|
||||
appVersion: "1.0.91"
|
||||
@@ -2,5 +2,5 @@ apiVersion: v2
|
||||
name: mixingx-platform
|
||||
description: MixingX central platform services without customer edge/agent instances.
|
||||
type: application
|
||||
version: 1.0.61
|
||||
appVersion: "1.0.61"
|
||||
version: 1.0.91
|
||||
appVersion: "1.0.91"
|
||||
@@ -231,6 +231,11 @@ spec:
|
||||
labels:
|
||||
app.kubernetes.io/component: {{ .name }}-postgres
|
||||
spec:
|
||||
securityContext:
|
||||
# Run the image entrypoint as postgres so it does not invoke gosu.
|
||||
runAsUser: 999
|
||||
runAsGroup: 999
|
||||
fsGroup: 999
|
||||
{{ include "mixingx-platform.tierAffinity" (dict "role" .tierRole "root" $root) | nindent 6 }}
|
||||
{{- with $root.Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
@@ -240,6 +245,10 @@ spec:
|
||||
- name: postgres
|
||||
image: {{ $root.Values.sharedInfra.postgres.image | default "docker.io/library/postgres:17" }}
|
||||
imagePullPolicy: IfNotPresent
|
||||
command: ["docker-entrypoint.sh", "postgres"]
|
||||
securityContext:
|
||||
# Temporary compatibility workaround for checkpoint signal failures on affected k3s nodes.
|
||||
privileged: true
|
||||
env:
|
||||
- name: POSTGRES_PASSWORD
|
||||
value: "{{ $root.Values.sharedInfra.postgres.password }}"
|
||||
@@ -253,6 +262,15 @@ spec:
|
||||
- name: tcp
|
||||
containerPort: {{ $root.Values.sharedInfra.postgres.port }}
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- sh
|
||||
- -ec
|
||||
- >-
|
||||
exec pg_isready -q -h 127.0.0.1 -p {{ $root.Values.sharedInfra.postgres.port }} -U "$POSTGRES_USER" -d "$POSTGRES_DB"
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 3
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /var/lib/postgresql/data
|
||||
|
||||
@@ -213,6 +213,11 @@ spec:
|
||||
labels:
|
||||
app.kubernetes.io/component: {{ .Values.audit.database }}-postgres
|
||||
spec:
|
||||
securityContext:
|
||||
# Run the image entrypoint as postgres so it does not invoke gosu.
|
||||
runAsUser: 999
|
||||
runAsGroup: 999
|
||||
fsGroup: 999
|
||||
{{ include "mixingx-platform.tierAffinity" (dict "role" "audit" "root" $root) | nindent 6 }}
|
||||
{{- with $.Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
@@ -222,6 +227,10 @@ spec:
|
||||
- name: postgres
|
||||
image: {{ $root.Values.sharedInfra.postgres.image | default "docker.io/library/postgres:17" }}
|
||||
imagePullPolicy: IfNotPresent
|
||||
command: ["docker-entrypoint.sh", "postgres"]
|
||||
securityContext:
|
||||
# Temporary compatibility workaround for checkpoint signal failures on affected k3s nodes.
|
||||
privileged: true
|
||||
env:
|
||||
- name: POSTGRES_PASSWORD
|
||||
value: "{{ $root.Values.sharedInfra.postgres.password }}"
|
||||
@@ -235,6 +244,15 @@ spec:
|
||||
- name: tcp
|
||||
containerPort: {{ $root.Values.sharedInfra.postgres.port }}
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- sh
|
||||
- -ec
|
||||
- >-
|
||||
exec pg_isready -q -h 127.0.0.1 -p {{ $root.Values.sharedInfra.postgres.port }} -U "$POSTGRES_USER" -d "$POSTGRES_DB"
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 3
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /var/lib/postgresql/data
|
||||
|
||||
@@ -2,5 +2,5 @@ apiVersion: v2
|
||||
name: mixingx-protocol-server-unit
|
||||
description: Deploy one MixingX edge protocol test server instance.
|
||||
type: application
|
||||
version: 1.0.61
|
||||
appVersion: "1.0.61"
|
||||
version: 1.0.91
|
||||
appVersion: "1.0.91"
|
||||
@@ -2,5 +2,5 @@ apiVersion: v2
|
||||
name: mixingx-sso
|
||||
description: MixingX SSO standalone release (backend, web, and PostgreSQL).
|
||||
type: application
|
||||
version: 1.0.61
|
||||
appVersion: "1.0.61"
|
||||
version: 1.0.91
|
||||
appVersion: "1.0.91"
|
||||
@@ -197,6 +197,11 @@ spec:
|
||||
labels:
|
||||
app.kubernetes.io/component: {{ $name }}-postgres
|
||||
spec:
|
||||
securityContext:
|
||||
# Run the image entrypoint as postgres so it does not invoke gosu.
|
||||
runAsUser: 999
|
||||
runAsGroup: 999
|
||||
fsGroup: 999
|
||||
{{ include "mixingx-sso.tierAffinity" (dict "role" $role "root" $root) | nindent 6 }}
|
||||
{{- with $.Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
@@ -206,6 +211,10 @@ spec:
|
||||
- name: postgres
|
||||
image: {{ $root.Values.sharedInfra.postgres.image | default "docker.io/library/postgres:17" }}
|
||||
imagePullPolicy: IfNotPresent
|
||||
command: ["docker-entrypoint.sh", "postgres"]
|
||||
securityContext:
|
||||
# Temporary compatibility workaround for checkpoint signal failures on affected k3s nodes.
|
||||
privileged: true
|
||||
env:
|
||||
- name: POSTGRES_PASSWORD
|
||||
value: "{{ $root.Values.sharedInfra.postgres.password }}"
|
||||
@@ -219,6 +228,15 @@ spec:
|
||||
- name: tcp
|
||||
containerPort: {{ $root.Values.sharedInfra.postgres.port }}
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- sh
|
||||
- -ec
|
||||
- >-
|
||||
exec pg_isready -q -h 127.0.0.1 -p {{ $root.Values.sharedInfra.postgres.port }} -U "$POSTGRES_USER" -d "$POSTGRES_DB"
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 3
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /var/lib/postgresql/data
|
||||
|
||||
@@ -2,5 +2,5 @@ apiVersion: v2
|
||||
name: mixingx-ultra
|
||||
description: "MixingX Ultra dashboard standalone release: ultra backend, ultra web, and ultra PostgreSQL."
|
||||
type: application
|
||||
version: 1.0.61
|
||||
appVersion: "1.0.61"
|
||||
version: 1.0.91
|
||||
appVersion: "1.0.91"
|
||||
@@ -200,6 +200,11 @@ spec:
|
||||
labels:
|
||||
app.kubernetes.io/component: {{ $name }}-postgres
|
||||
spec:
|
||||
securityContext:
|
||||
# Run the image entrypoint as postgres so it does not invoke gosu.
|
||||
runAsUser: 999
|
||||
runAsGroup: 999
|
||||
fsGroup: 999
|
||||
{{ include "mixingx-ultra.tierAffinity" (dict "role" $role "root" $root) | nindent 6 }}
|
||||
{{- with $.Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
@@ -209,6 +214,10 @@ spec:
|
||||
- name: postgres
|
||||
image: {{ $root.Values.sharedInfra.postgres.image | default "docker.io/library/postgres:17" }}
|
||||
imagePullPolicy: IfNotPresent
|
||||
command: ["docker-entrypoint.sh", "postgres"]
|
||||
securityContext:
|
||||
# Temporary compatibility workaround for checkpoint signal failures on affected k3s nodes.
|
||||
privileged: true
|
||||
env:
|
||||
- name: POSTGRES_PASSWORD
|
||||
value: "{{ $root.Values.sharedInfra.postgres.password }}"
|
||||
@@ -222,6 +231,15 @@ spec:
|
||||
- name: tcp
|
||||
containerPort: {{ $root.Values.sharedInfra.postgres.port }}
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- sh
|
||||
- -ec
|
||||
- >-
|
||||
exec pg_isready -q -h 127.0.0.1 -p {{ $root.Values.sharedInfra.postgres.port }} -U "$POSTGRES_USER" -d "$POSTGRES_DB"
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 3
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /var/lib/postgresql/data
|
||||
|
||||
Reference in new issue
Block a user