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
spec:
interval: 10m0s
url: oci://ghcr.io/x-evor/app-service
url: oci://ghcr.io/x-evor/accounts-chart
ref:
semver: "0.1.0"
layerSelector:

View File

@ -1,22 +1,26 @@
nameOverride: accounts
containerPort: 8080
service:
port: 80
existingSecretName: accounts-env
env:
PORT: "8080"
SERVICE_NAME: accounts
HEALTHCHECK_PATH: /healthz
readinessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 10
periodSeconds: 10
livenessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 30
periodSeconds: 20
nameOverride: accounts
containerPort: 8080
service:
port: 80
global:
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"
SERVICE_NAME: accounts
HEALTHCHECK_PATH: /healthz
readinessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 10
periodSeconds: 10
livenessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 30
periodSeconds: 20

View File

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

View File

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

View File

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

View File

@ -1,22 +1,32 @@
nameOverride: console
containerPort: 3000
service:
port: 80
existingSecretName: console-env
env:
PORT: "3000"
SERVICE_NAME: console
HEALTHCHECK_PATH: /healthz
readinessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 10
periodSeconds: 10
livenessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 30
periodSeconds: 20
nameOverride: console
containerPort: 3000
service:
port: 80
global:
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"
SERVICE_NAME: console
HEALTHCHECK_PATH: /
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:
path: /
port: http
initialDelaySeconds: 10
periodSeconds: 10
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 30
periodSeconds: 20

View File

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

View File

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