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:
nameOverride: accounts
containerPort: 8080
service:
port: 80 port: 80
existingSecretName: accounts-env global:
env: existingSecretName: accounts-env
repository: ghcr.io/x-evor/accounts
# Preview tracks consume the rolling `latest` image from the repo-local GHCR build workflow.
tag: latest
env:
PORT: "8080" PORT: "8080"
SERVICE_NAME: accounts SERVICE_NAME: accounts
HEALTHCHECK_PATH: /healthz HEALTHCHECK_PATH: /healthz
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /healthz path: /healthz
port: http port: http
initialDelaySeconds: 10 initialDelaySeconds: 10
periodSeconds: 10 periodSeconds: 10
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /healthz path: /healthz
port: http port: http
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 20 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:
APP_ENV: pre
DB_SCHEMA: core_pre
resources:
requests: requests:
cpu: 100m cpu: 100m
memory: 128Mi memory: 128Mi
limits: limits:
cpu: 500m cpu: 500m
memory: 384Mi memory: 384Mi
pdb: pdb:
minAvailable: 1 minAvailable: 1
env:
APP_ENV: pre
DB_SCHEMA: core_pre

View File

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

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:
nameOverride: console
containerPort: 3000
service:
port: 80 port: 80
existingSecretName: console-env global:
env: existingSecretName: console-env
repository: ghcr.io/x-evor/console
# Preview tracks consume the rolling `latest` image from the repo-local GHCR build workflow.
tag: latest
env:
PORT: "3000" PORT: "3000"
SERVICE_NAME: console SERVICE_NAME: console
HEALTHCHECK_PATH: /healthz HEALTHCHECK_PATH: /
readinessProbe: DOCS_SERVICE_URL: https://docs.svc.plus
NEXT_PUBLIC_DOCS_BASE_URL: https://docs.svc.plus
external-service:
- docs.svc.plus
- xworkmate.svc.plus
- openclaw-gateway.svc.plus
readinessProbe:
httpGet: httpGet:
path: /healthz path: /
port: http port: http
initialDelaySeconds: 10 initialDelaySeconds: 10
periodSeconds: 10 periodSeconds: 10
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /healthz path: /
port: http port: http
initialDelaySeconds: 30 initialDelaySeconds: 30
periodSeconds: 20 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:
APP_ENV: pre
ACCOUNTS_BASE_URL: https://accounts-pre.svc.plus
resources:
requests: requests:
cpu: 100m cpu: 100m
memory: 128Mi memory: 128Mi
limits: limits:
cpu: 500m cpu: 500m
memory: 384Mi memory: 384Mi
pdb: pdb:
minAvailable: 1 minAvailable: 1
env:
APP_ENV: pre
ACCOUNTS_BASE_URL: https://accounts-pre.svc.plus

View File

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