- Add Gitea Actions workflow for automated build & deploy - Add K8s manifests: webui, travel-svc, medicine-svc, sandbox-svc - Update kustomization for localhost:5000 registry - Add ingress for gooseek.ru and api.gooseek.ru - Learning cabinet with onboarding, courses, sandbox integration - Medicine service with symptom analysis and doctor matching - Travel service with itinerary planning - Server setup scripts (NVIDIA/CUDA, K3s, Gitea runner) Made-with: Cursor
69 lines
1.4 KiB
YAML
69 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: learning-svc
|
|
namespace: gooseek
|
|
labels:
|
|
app: learning-svc
|
|
app.kubernetes.io/name: learning-svc
|
|
app.kubernetes.io/part-of: gooseek
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: learning-svc
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: learning-svc
|
|
spec:
|
|
containers:
|
|
- name: learning-svc
|
|
image: gooseek/backend:latest
|
|
env:
|
|
- name: SERVICE
|
|
value: "learning-svc"
|
|
- name: PORT
|
|
value: "3034"
|
|
envFrom:
|
|
- configMapRef:
|
|
name: gooseek-config
|
|
- secretRef:
|
|
name: gooseek-secrets
|
|
ports:
|
|
- containerPort: 3034
|
|
name: http
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 3034
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 20
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 3034
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 15
|
|
resources:
|
|
requests:
|
|
cpu: 250m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 512Mi
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: learning-svc
|
|
namespace: gooseek
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: learning-svc
|
|
ports:
|
|
- port: 3034
|
|
targetPort: 3034
|
|
name: http
|