feat(gitops): switch core apps to dedicated service charts

This commit is contained in:
Haitao Pan 2026-04-02 17:59:59 +08:00
parent 0541f7ad0b
commit c65fe12c56
8 changed files with 124 additions and 108 deletions

View File

@ -4,7 +4,7 @@ metadata:
name: accounts-chart name: accounts-chart
spec: spec:
interval: 10m0s interval: 10m0s
url: oci://ghcr.io/x-evor/app-service url: oci://ghcr.io/x-evor/accounts-chart
ref: ref:
semver: "0.1.0" semver: "0.1.0"
layerSelector: layerSelector:

View File

@ -1,22 +1,26 @@
nameOverride: accounts
containerPort: 8080
service: service:
port: 80 nameOverride: accounts
existingSecretName: accounts-env containerPort: 8080
env: service:
PORT: "8080" port: 80
SERVICE_NAME: accounts global:
HEALTHCHECK_PATH: /healthz existingSecretName: accounts-env
readinessProbe: repository: ghcr.io/x-evor/accounts
httpGet: # Preview tracks consume the rolling `latest` image from the repo-local GHCR build workflow.
path: /healthz tag: latest
port: http env:
initialDelaySeconds: 10 PORT: "8080"
periodSeconds: 10 SERVICE_NAME: accounts
livenessProbe: HEALTHCHECK_PATH: /healthz
httpGet: readinessProbe:
path: /healthz httpGet:
port: http path: /healthz
initialDelaySeconds: 30 port: http
periodSeconds: 20 initialDelaySeconds: 10
periodSeconds: 10
livenessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 30
periodSeconds: 20

View File

@ -1,16 +1,16 @@
replicaCount: 1 service:
image: replicaCount: 1
repository: ghcr.io/x-evor/accounts global:
tag: latest tag: latest
resources: env:
requests: APP_ENV: pre
cpu: 100m DB_SCHEMA: core_pre
memory: 128Mi resources:
limits: requests:
cpu: 500m cpu: 100m
memory: 384Mi memory: 128Mi
pdb: limits:
minAvailable: 1 cpu: 500m
env: memory: 384Mi
APP_ENV: pre pdb:
DB_SCHEMA: core_pre minAvailable: 1

View File

@ -1,16 +1,17 @@
replicaCount: 2 service:
image: replicaCount: 2
repository: ghcr.io/x-evor/accounts global:
tag: release # Production consumes an explicitly published stable tag such as `release`.
resources: tag: release
requests: env:
cpu: 250m APP_ENV: production
memory: 256Mi DB_SCHEMA: core_prod
limits: resources:
cpu: 1 requests:
memory: 768Mi cpu: 250m
pdb: memory: 256Mi
minAvailable: 1 limits:
env: cpu: 1
APP_ENV: production memory: 768Mi
DB_SCHEMA: core_prod pdb:
minAvailable: 1

View File

@ -4,7 +4,7 @@ metadata:
name: console-chart name: console-chart
spec: spec:
interval: 10m0s interval: 10m0s
url: oci://ghcr.io/x-evor/app-service url: oci://ghcr.io/x-evor/console-chart
ref: ref:
semver: "0.1.0" semver: "0.1.0"
layerSelector: layerSelector:

View File

@ -1,22 +1,32 @@
nameOverride: console
containerPort: 3000
service: service:
port: 80 nameOverride: console
existingSecretName: console-env containerPort: 3000
env: service:
PORT: "3000" port: 80
SERVICE_NAME: console global:
HEALTHCHECK_PATH: /healthz existingSecretName: console-env
readinessProbe: repository: ghcr.io/x-evor/console
httpGet: # Preview tracks consume the rolling `latest` image from the repo-local GHCR build workflow.
path: /healthz tag: latest
port: http env:
initialDelaySeconds: 10 PORT: "3000"
periodSeconds: 10 SERVICE_NAME: console
livenessProbe: HEALTHCHECK_PATH: /
httpGet: DOCS_SERVICE_URL: https://docs.svc.plus
path: /healthz NEXT_PUBLIC_DOCS_BASE_URL: https://docs.svc.plus
port: http external-service:
initialDelaySeconds: 30 - docs.svc.plus
periodSeconds: 20 - xworkmate.svc.plus
- openclaw-gateway.svc.plus
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 10
periodSeconds: 10
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 30
periodSeconds: 20

View File

@ -1,16 +1,16 @@
replicaCount: 1 service:
image: replicaCount: 1
repository: ghcr.io/x-evor/console global:
tag: latest tag: latest
resources: env:
requests: APP_ENV: pre
cpu: 100m ACCOUNTS_BASE_URL: https://accounts-pre.svc.plus
memory: 128Mi resources:
limits: requests:
cpu: 500m cpu: 100m
memory: 384Mi memory: 128Mi
pdb: limits:
minAvailable: 1 cpu: 500m
env: memory: 384Mi
APP_ENV: pre pdb:
ACCOUNTS_BASE_URL: https://accounts-pre.svc.plus minAvailable: 1

View File

@ -1,16 +1,17 @@
replicaCount: 2 service:
image: replicaCount: 2
repository: ghcr.io/x-evor/console global:
tag: release # Production consumes an explicitly published stable tag such as `release`.
resources: tag: release
requests: env:
cpu: 250m APP_ENV: production
memory: 256Mi ACCOUNTS_BASE_URL: https://accounts.svc.plus
limits: resources:
cpu: 1 requests:
memory: 768Mi cpu: 250m
pdb: memory: 256Mi
minAvailable: 1 limits:
env: cpu: 1
APP_ENV: production memory: 768Mi
ACCOUNTS_BASE_URL: https://accounts.svc.plus pdb:
minAvailable: 1