skillhub/deploy/k8s/base/frontend-deployment.yaml
philsun 34f244e7a4 feat(web): support configurable base-path deployment
Signed-off-by: philsun <xinyi.sun@daocloud.io>
2026-08-05 12:50:26 +08:00

43 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: skillhub-web
labels:
app.kubernetes.io/name: skillhub-web
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: skillhub-web
template:
metadata:
labels:
app.kubernetes.io/name: skillhub-web
spec:
containers:
- name: web
image: ghcr.io/iflytek/skillhub-web:edge
imagePullPolicy: IfNotPresent
env:
- name: SKILLHUB_API_UPSTREAM
value: http://skillhub-server:8080
# Leave empty so a fixed-base image keeps its baked base; set to e.g. /skillhub/ to override.
- name: SKILLHUB_WEB_BASE_PATH
value: ""
- name: SKILLHUB_WEB_API_BASE_URL
value: ""
ports:
- containerPort: 80
name: http
readinessProbe:
httpGet:
path: /nginx-health
port: http
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /nginx-health
port: http
initialDelaySeconds: 10
periodSeconds: 15