[codex] add K3s update center (#314)

* add k3s update center

* fix update center status timeouts

* Polish update center settings UI

* Document k3s update center

* Refocus update center docs for users

* Clarify k3s migration path in docs
This commit is contained in:
Cita
2026-03-29 17:43:49 +08:00
committed by GitHub
parent dcfd45ea65
commit 11583c51b9
30 changed files with 3819 additions and 7 deletions
+88
View File
@@ -0,0 +1,88 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: metapi-deploy-helper
namespace: ai
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: metapi-deploy-helper-admin
namespace: ai
subjects:
- kind: ServiceAccount
name: metapi-deploy-helper
namespace: ai
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: admin
---
apiVersion: v1
kind: Secret
metadata:
name: metapi-deploy-helper-auth
namespace: ai
type: Opaque
stringData:
DEPLOY_HELPER_TOKEN: replace-with-a-shared-long-random-token
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: metapi-deploy-helper
namespace: ai
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: metapi-deploy-helper
template:
metadata:
labels:
app.kubernetes.io/name: metapi-deploy-helper
spec:
serviceAccountName: metapi-deploy-helper
containers:
- name: helper
image: 1467078763/metapi:latest
imagePullPolicy: Always
command: ["npm", "run", "start:deploy-helper"]
ports:
- containerPort: 9850
name: http
env:
- name: DEPLOY_HELPER_HOST
value: 0.0.0.0
- name: DEPLOY_HELPER_PORT
value: "9850"
- name: DEPLOY_HELPER_TOKEN
valueFrom:
secretKeyRef:
name: metapi-deploy-helper-auth
key: DEPLOY_HELPER_TOKEN
readinessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 15
periodSeconds: 20
---
apiVersion: v1
kind: Service
metadata:
name: metapi-deploy-helper
namespace: ai
spec:
selector:
app.kubernetes.io/name: metapi-deploy-helper
ports:
- name: http
port: 9850
targetPort: http