40 lines
800 B
YAML
40 lines
800 B
YAML
# web-deployment.yaml
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: kaneo-web
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: kaneo-web
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: kaneo-web
|
|
spec:
|
|
containers:
|
|
- name: web
|
|
image: ghcr.io/usekaneo/web:latest
|
|
ports:
|
|
- containerPort: 5173
|
|
envFrom:
|
|
- configMapRef:
|
|
name: kaneo-env
|
|
# If the web app needs the API URL, ensure env var points to the API Service:
|
|
# env:
|
|
# - name: VITE_API_BASE_URL
|
|
# value: "http://kaneo-api:1337"
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: kaneo-web
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: kaneo-web
|
|
ports:
|
|
- port: 5173
|
|
targetPort: 5173
|